; ; AudioEffectsLayer::triggerEffect from 0x1004afa20 to 0x1004afb3d (285 bytes) ; ; 1 xrefs: ; > AudioEffectsLayer::audioStep @ 0x1004afa13 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; ucomiss xmm0, cs:alpha ; +0x0, 0x1004afa20 jnz short loc_1004AFA35 ; +0x7, 0x1004afa27 jp short loc_1004AFA35 ; +0x9, 0x1004afa29 movss xmm0, cs:dword_10081505C ; +0xb, 0x1004afa2b jmp short loc_1004AFA5D ; +0x13, 0x1004afa33 ucomiss xmm0, cs:dword_100815210 ; +0x15, 0x1004afa35 jnz short loc_1004AFA4A ; +0x1c, 0x1004afa3c jp short loc_1004AFA4A ; +0x1e, 0x1004afa3e movss xmm0, cs:flt_100815320 ; +0x20, 0x1004afa40 jmp short loc_1004AFA5D ; +0x28, 0x1004afa48 ucomiss xmm0, cs:dword_100814FE4 ; +0x2a, 0x1004afa4a jnz short loc_1004AFA5D ; +0x31, 0x1004afa51 jp short loc_1004AFA5D ; +0x33, 0x1004afa53 movss xmm0, cs:dword_1008152F4 ; +0x35, 0x1004afa55 mulss xmm0, cs:dword_10081541C ; +0x3d, 0x1004afa5d addss xmm0, dword ptr [rdi+244h] ; +0x45, 0x1004afa65 minss xmm0, cs:dword_100815670 ; +0x4d, 0x1004afa6d cmp byte ptr [rdi+240h], 0 ; +0x55, 0x1004afa75 jnz short loc_1004AFA88 ; +0x5c, 0x1004afa7c ucomiss xmm0, dword ptr [rdi+23Ch] ; +0x5e, 0x1004afa7e jnb short loc_1004AFA88 ; +0x65, 0x1004afa85 retn ; +0x67, 0x1004afa87 push rbp ; +0x68, 0x1004afa88 mov rbp, rsp ; +0x69, 0x1004afa89 push r15 ; +0x6c, 0x1004afa8c push r14 ; +0x6e, 0x1004afa8e push rbx ; +0x70, 0x1004afa90 push rax ; +0x71, 0x1004afa91 movss dword ptr [rdi+23Ch], xmm0 ; +0x72, 0x1004afa92 mov byte ptr [rdi+240h], 0 ; +0x7a, 0x1004afa9a mov rbx, rdi ; +0x81, 0x1004afaa1 xor esi, esi ; +0x84, 0x1004afaa4 movss dword ptr [rbp-1Ch], xmm0 ; +0x86, 0x1004afaa6 call cocos2d__CCNode__stopActionByTag ; +0x8b, 0x1004afaab movss xmm1, dword ptr [rbx+244h] ; +0x90, 0x1004afab0 lea r14, aAudioscale; "audioScale" ; +0x98, 0x1004afab8 movss xmm0, cs:dword_100815D20 ; +0x9f, 0x1004afabf mov rdi, r14; __s ; +0xa7, 0x1004afac7 movss xmm2, dword ptr [rbp-1Ch] ; +0xaa, 0x1004afaca call cocos2d__CCActionTween__create_1 ; +0xaf, 0x1004afacf mov r15, rax ; +0xb4, 0x1004afad4 movss xmm0, cs:dword_10081541C ; +0xb7, 0x1004afad7 movss xmm2, cs:dword_100815058 ; +0xbf, 0x1004afadf mov rdi, r14; __s ; +0xc7, 0x1004afae7 movss xmm1, dword ptr [rbp-1Ch] ; +0xca, 0x1004afaea call cocos2d__CCActionTween__create_1 ; +0xcf, 0x1004afaef mov r14, rax ; +0xd4, 0x1004afaf4 lea rsi, AudioEffectsLayer__goingDown ; +0xd7, 0x1004afaf7 mov rdi, rbx ; +0xde, 0x1004afafe xor edx, edx ; +0xe1, 0x1004afb01 call cocos2d__CCCallFunc__create ; +0xe3, 0x1004afb03 mov rdi, r15 ; +0xe8, 0x1004afb08 mov rsi, rax ; +0xeb, 0x1004afb0b mov rdx, r14 ; +0xee, 0x1004afb0e xor ecx, ecx ; +0xf1, 0x1004afb11 xor eax, eax ; +0xf3, 0x1004afb13 call sub_1003B5760 ; +0xf5, 0x1004afb15 mov r14, rax ; +0xfa, 0x1004afb1a mov rax, [rax] ; +0xfd, 0x1004afb1d mov rdi, r14 ; +0x100, 0x1004afb20 xor esi, esi ; +0x103, 0x1004afb23 call qword ptr [rax+48h] ; +0x105, 0x1004afb25 mov rdi, rbx ; +0x108, 0x1004afb28 mov rsi, r14 ; +0x10b, 0x1004afb2b add rsp, 8 ; +0x10e, 0x1004afb2e pop rbx ; +0x112, 0x1004afb32 pop r14 ; +0x113, 0x1004afb33 pop r15 ; +0x115, 0x1004afb35 pop rbp ; +0x117, 0x1004afb37 jmp cocos2d__CCNode__runAction ; +0x118, 0x1004afb38