; ; cocos2d::CCParticleSystem::initWithTotalParticles from 0x180068bd0 to 0x180068ce6 (278 bytes) ; ; 4 xrefs: ; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa19 ; > @ 0x1800ff5b8 ; > @ 0x1801438a8 ; > @ 0x1801b3be8 ; ; 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_0], rbx ; +0x0, 0x180068bd0 mov [rsp+arg_8], rsi ; +0x5, 0x180068bd5 push rdi ; +0xa, 0x180068bda sub rsp, 20h ; +0xb, 0x180068bdb mov rbx, rcx ; +0xf, 0x180068bdf mov [rcx+298h], edx ; +0x12, 0x180068be2 mov rcx, [rcx+1A8h]; Block ; +0x18, 0x180068be8 movzx esi, r8b ; +0x1f, 0x180068bef mov edi, edx ; +0x23, 0x180068bf3 test rcx, rcx ; +0x25, 0x180068bf5 jz short loc_180068C0B ; +0x28, 0x180068bf8 call cs:__imp_free ; +0x2a, 0x180068bfa mov qword ptr [rbx+1A8h], 0 ; +0x30, 0x180068c00 mov ecx, [rbx+298h]; Count ; +0x3b, 0x180068c0b mov edx, 94h; Size ; +0x41, 0x180068c11 call cs:calloc ; +0x46, 0x180068c16 mov [rbx+1A8h], rax ; +0x4c, 0x180068c1c test rax, rax ; +0x53, 0x180068c23 jnz short loc_180068C42 ; +0x56, 0x180068c26 mov rcx, rbx; this ; +0x58, 0x180068c28 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x5b, 0x180068c2b xor al, al ; +0x60, 0x180068c30 mov rbx, [rsp+28h+arg_0] ; +0x62, 0x180068c32 mov rsi, [rsp+28h+arg_8] ; +0x67, 0x180068c37 add rsp, 20h ; +0x6c, 0x180068c3c pop rdi ; +0x70, 0x180068c40 retn ; +0x71, 0x180068c41 cmp qword ptr [rbx+1B8h], 0 ; +0x72, 0x180068c42 mov [rbx+1C8h], edi ; +0x7a, 0x180068c4a jz short loc_180068C7E ; +0x80, 0x180068c50 xor edx, edx ; +0x82, 0x180068c52 cmp [rbx+298h], edx ; +0x84, 0x180068c54 jbe short loc_180068C7E ; +0x8a, 0x180068c5a nop dword ptr [rax+00h] ; +0x8c, 0x180068c5c mov eax, edx ; +0x90, 0x180068c60 imul rcx, rax, 94h ; +0x92, 0x180068c62 mov rax, [rbx+1A8h] ; +0x99, 0x180068c69 mov [rcx+rax+48h], edx ; +0xa0, 0x180068c70 inc edx ; +0xa4, 0x180068c74 cmp edx, [rbx+298h] ; +0xa6, 0x180068c76 jb short loc_180068C60 ; +0xac, 0x180068c7c mov byte ptr [rbx+1CCh], 1 ; +0xae, 0x180068c7e mov dword ptr [rbx+2A8h], 1 ; +0xb5, 0x180068c85 mov dword ptr [rbx+2ACh], 303h ; +0xbf, 0x180068c8f mov dword ptr [rbx+2B4h], 0 ; +0xc9, 0x180068c99 mov dword ptr [rbx+2BCh], 0 ; +0xd3, 0x180068ca3 mov byte ptr [rbx+2B8h], 0 ; +0xdd, 0x180068cad mov byte ptr [rbx+1C4h], 0 ; +0xe4, 0x180068cb4 test sil, sil ; +0xeb, 0x180068cbb jnz short loc_180068CD4 ; +0xee, 0x180068cbe mov edx, 1; int ; +0xf0, 0x180068cc0 mov rcx, rbx; this ; +0xf5, 0x180068cc5 call ?scheduleUpdateWithPriority@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::scheduleUpdateWithPriority(int) ; +0xf8, 0x180068cc8 mov byte ptr [rbx+230h], 1 ; +0xfd, 0x180068ccd mov rbx, [rsp+28h+arg_0] ; +0x104, 0x180068cd4 mov al, 1 ; +0x109, 0x180068cd9 mov rsi, [rsp+28h+arg_8] ; +0x10b, 0x180068cdb add rsp, 20h ; +0x110, 0x180068ce0 pop rdi ; +0x114, 0x180068ce4 retn ; +0x115, 0x180068ce5