; ; cocos2d::CCAnimate::initWithAnimation from 0x1800352b0 to 0x180035410 (352 bytes) ; ; 5 xrefs: ; > cocos2d::CCAnimate::copyWithZone @ 0x180031b11 ; > cocos2d::CCAnimate::create @ 0x180033586 ; > cocos2d::CCAnimate::reverse @ 0x180035ad5 ; > @ 0x1801438a8 ; > @ 0x1801b0750 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800352b0 mov [rsp+arg_10], rsi ; +0x5, 0x1800352b5 push rdi ; +0xa, 0x1800352ba sub rsp, 50h ; +0xb, 0x1800352bb mov rax, [rdx] ; +0xf, 0x1800352bf mov rdi, rcx ; +0x12, 0x1800352c2 movaps [rsp+58h+var_18], xmm6 ; +0x15, 0x1800352c5 mov rcx, rdx ; +0x1a, 0x1800352ca movaps [rsp+58h+var_28], xmm7 ; +0x1d, 0x1800352cd mov rbx, rdx ; +0x22, 0x1800352d2 movaps [rsp+58h+var_38], xmm8 ; +0x25, 0x1800352d5 call qword ptr [rax+48h] ; +0x2b, 0x1800352db mov eax, [rbx+54h] ; +0x2e, 0x1800352de xorps xmm1, xmm1 ; +0x31, 0x1800352e1 movaps xmm8, xmm0 ; +0x34, 0x1800352e4 xorps xmm6, xmm6 ; +0x38, 0x1800352e8 cvtsi2ss xmm1, rax ; +0x3b, 0x1800352eb mulss xmm1, xmm8 ; +0x40, 0x1800352f0 ucomiss xmm1, xmm6 ; +0x45, 0x1800352f5 movss dword ptr [rdi+50h], xmm1 ; +0x48, 0x1800352f8 jp short loc_180035308 ; +0x4d, 0x1800352fd jnz short loc_180035308 ; +0x4f, 0x1800352ff mov dword ptr [rdi+50h], 34000000h ; +0x51, 0x180035301 xor esi, esi ; +0x58, 0x180035308 mov byte ptr [rdi+5Ch], 1 ; +0x5a, 0x18003530a mov [rdi+58h], esi ; +0x5e, 0x18003530e mov [rdi+70h], esi ; +0x61, 0x180035311 cmp [rdi+60h], rbx ; +0x64, 0x180035314 jz short loc_180035334 ; +0x68, 0x180035318 mov rcx, rbx; this ; +0x6a, 0x18003531a call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6d, 0x18003531d mov rcx, [rdi+60h]; this ; +0x72, 0x180035322 test rcx, rcx ; +0x76, 0x180035326 jz short loc_180035330 ; +0x79, 0x180035329 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x18003532b mov [rdi+60h], rbx ; +0x80, 0x180035330 mov [rdi+78h], rsi ; +0x84, 0x180035334 mov [rdi+80h], esi ; +0x88, 0x180035338 mov rcx, [rbx+48h]; this ; +0x8e, 0x18003533e call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x180035342 mov rcx, [rdi+68h] ; +0x97, 0x180035347 mov edx, eax ; +0x9b, 0x18003534b mov [rsp+58h+arg_0], rdx ; +0x9d, 0x18003534d mov rax, [rcx+10h] ; +0xa2, 0x180035352 sub rax, [rcx] ; +0xa6, 0x180035356 sar rax, 2 ; +0xa9, 0x180035359 cmp rdx, rax ; +0xad, 0x18003535d jbe short loc_18003536C ; +0xb0, 0x180035360 lea rdx, [rsp+58h+arg_0] ; +0xb2, 0x180035362 call sub_1800308E0 ; +0xb7, 0x180035367 movaps xmm7, xmm8 ; +0xbc, 0x18003536c divss xmm7, dword ptr [rbx+38h] ; +0xc0, 0x180035370 mov rbx, [rbx+48h] ; +0xc5, 0x180035375 test rbx, rbx ; +0xc9, 0x180035379 jz short loc_1800353EE ; +0xcc, 0x18003537c mov rbx, [rbx+38h] ; +0xce, 0x18003537e mov eax, [rbx] ; +0xd2, 0x180035382 test eax, eax ; +0xd4, 0x180035384 jz short loc_1800353EE ; +0xd6, 0x180035386 mov rbx, [rbx+10h] ; +0xd8, 0x180035388 lea rsi, [rax-1] ; +0xdc, 0x18003538c lea rsi, [rbx+rsi*8] ; +0xe0, 0x180035390 cmp rbx, rsi ; +0xe4, 0x180035394 ja short loc_1800353EE ; +0xe7, 0x180035397 nop dword ptr [rax+00000000h] ; +0xe9, 0x180035399 mov rax, [rbx] ; +0xf0, 0x1800353a0 test rax, rax ; +0xf3, 0x1800353a3 jz short loc_1800353EE ; +0xf6, 0x1800353a6 mov rcx, [rdi+68h] ; +0xf8, 0x1800353a8 movaps xmm0, xmm7 ; +0xfc, 0x1800353ac mulss xmm0, xmm6 ; +0xff, 0x1800353af addss xmm6, dword ptr [rax+40h] ; +0x103, 0x1800353b3 mov rdx, [rcx+8] ; +0x108, 0x1800353b8 divss xmm0, xmm8 ; +0x10c, 0x1800353bc movss dword ptr [rsp+58h+arg_0], xmm0 ; +0x111, 0x1800353c1 cmp rdx, [rcx+10h] ; +0x117, 0x1800353c7 jz short loc_1800353DB ; +0x11b, 0x1800353cb lea rax, [rdx+4] ; +0x11d, 0x1800353cd movss dword ptr [rdx], xmm0 ; +0x121, 0x1800353d1 mov [rcx+8], rax ; +0x125, 0x1800353d5 jmp short loc_1800353E5 ; +0x129, 0x1800353d9 lea r8, [rsp+58h+arg_0] ; +0x12b, 0x1800353db call sub_180030780 ; +0x130, 0x1800353e0 add rbx, 8 ; +0x135, 0x1800353e5 cmp rbx, rsi ; +0x139, 0x1800353e9 jbe short loc_1800353A0 ; +0x13c, 0x1800353ec mov rbx, [rsp+58h+arg_8] ; +0x13e, 0x1800353ee mov al, 1 ; +0x143, 0x1800353f3 mov rsi, [rsp+58h+arg_10] ; +0x145, 0x1800353f5 movaps xmm6, [rsp+58h+var_18] ; +0x14a, 0x1800353fa movaps xmm7, [rsp+58h+var_28] ; +0x14f, 0x1800353ff movaps xmm8, [rsp+58h+var_38] ; +0x154, 0x180035404 add rsp, 50h ; +0x15a, 0x18003540a pop rdi ; +0x15e, 0x18003540e retn ; +0x15f, 0x18003540f