;;; Arachnus_CryOfPain ;;;
08023E30 (T)  push    r14
08023E32 (T)  bl      8011934h                  ; Execute subroutine Enemy_CheckAnimationLoopCurrentFrame
08023E36 (T)  cmp     r0,0h                     ;\
08023E38 (T)  beq     8023E76h                  ;} If returned 0 (more animation): return
08023E3A (T)  mov     r0,1Ah                    ;\
08023E3C (T)  bl      8012858h                  ;} Count flame projectiles alive
08023E40 (T)  cmp     r0,0h                     ;\
08023E42 (T)  beq     8023E54h                  ;} If no flame projectiles alive: branch to 8023E54h
08023E44 (T)  ldr     r0,=30007F0h              ;\
08023E46 (T)  ldrb    r0,[r0]                   ;|
08023E48 (T)  cmp     r0,7h                     ;} If [30007F0] <= 7: branch to 8023E5Ch
08023E4A (T)  bls     8023E5Ch                  ;/
08023E4C (T)  b       8023E6Ch                  ; Branch to 8023E6Ch
08023E4E      dw      00000h
08023E50      dd      0030007F0h

; No flame projectiles alive
08023E54 (T)  ldr     r0,=30007F0h              ;\
08023E56 (T)  ldrb    r0,[r0]                   ;|
08023E58 (T)  cmp     r0,0Ah                    ;} If [30007F0] > 0Ah:
08023E5A (T)  bls     8023E68h                  ;/

; No flame projectiles alive and [30007F0] > 0Ah or [30007F0] <= 7
08023E5C (T)  bl      80239E0h                  ; Execute subroutine Arachnus_SetSlash
08023E60 (T)  b       8023E76h                  ; Return
08023E62      dw      00000h
08023E64      dd      0030007F0h

; No flame projectiles alive and [30007F0] <= 0Ah
08023E68 (T)  cmp     r0,6h                     ;\
08023E6A (T)  bls     8023E72h                  ;} If [30007F0] > 6:

; No flame projectiles alive and 6 < [30007F0] <= 0Ah or flame projectiles alive and [30007F0] > 7
08023E6C (T)  bl      8023950h                  ; Execute subroutine Arachnus_SetRoll
08023E70 (T)  b       8023E76h                  ; Return

; No flame projectiles alive and [30007F0] <= 6
08023E72 (T)  bl      8023854h                  ; Execute subroutine Arachnus_SetFlame

08023E76 (T)  pop     r0
08023E78 (T)  bx      r0