; ; cocos2d::CCParticleSystemQuad::allocMemory from 0x18006a360 to 0x18006a45b (251 bytes) ; ; 4 xrefs: ; > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa25 ; > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x18006ab27 ; > @ 0x1801438a8 ; > @ 0x1801b3c9c ; ; 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, 0x18006a360 push rdi ; +0x5, 0x18006a365 sub rsp, 20h ; +0x6, 0x18006a366 mov rbx, rcx ; +0xa, 0x18006a36a xor edi, edi ; +0xd, 0x18006a36d mov rcx, [rcx+318h]; Block ; +0xf, 0x18006a36f test rcx, rcx ; +0x16, 0x18006a376 jz short loc_18006A388 ; +0x19, 0x18006a379 call cs:__imp_free ; +0x1b, 0x18006a37b mov [rbx+318h], rdi ; +0x21, 0x18006a381 mov rcx, [rbx+320h]; Block ; +0x28, 0x18006a388 test rcx, rcx ; +0x2f, 0x18006a38f jz short loc_18006A3A1 ; +0x32, 0x18006a392 call cs:__imp_free ; +0x34, 0x18006a394 mov [rbx+320h], rdi ; +0x3a, 0x18006a39a mov eax, [rbx+298h] ; +0x41, 0x18006a3a1 lea rcx, [rax+rax*2] ; +0x47, 0x18006a3a7 shl rcx, 5; Size ; +0x4b, 0x18006a3ab call cs:__imp_malloc ; +0x4f, 0x18006a3af mov [rbx+318h], rax ; +0x55, 0x18006a3b5 mov eax, [rbx+298h] ; +0x5c, 0x18006a3bc lea ecx, [rax+rax*2] ; +0x62, 0x18006a3c2 add ecx, ecx ; +0x65, 0x18006a3c5 add rcx, rcx; Size ; +0x67, 0x18006a3c7 call cs:__imp_malloc ; +0x6a, 0x18006a3ca mov rcx, [rbx+318h]; void * ; +0x70, 0x18006a3d0 mov [rbx+320h], rax ; +0x77, 0x18006a3d7 test rcx, rcx ; +0x7e, 0x18006a3de jz short loc_18006A435 ; +0x81, 0x18006a3e1 test rax, rax ; +0x83, 0x18006a3e3 jz short loc_18006A428 ; +0x86, 0x18006a3e6 mov eax, [rbx+298h] ; +0x88, 0x18006a3e8 xor edx, edx; Val ; +0x8e, 0x18006a3ee lea r8, [rax+rax*2] ; +0x90, 0x18006a3f0 shl r8, 5; Size ; +0x94, 0x18006a3f4 call memset ; +0x98, 0x18006a3f8 mov eax, [rbx+298h] ; +0x9d, 0x18006a3fd xor edx, edx; Val ; +0xa3, 0x18006a403 lea ecx, [rax+rax*2] ; +0xa5, 0x18006a405 lea r8d, [rcx+rcx] ; +0xa8, 0x18006a408 mov rcx, [rbx+320h]; void * ; +0xac, 0x18006a40c add r8, r8; Size ; +0xb3, 0x18006a413 call memset ; +0xb6, 0x18006a416 mov al, 1 ; +0xbb, 0x18006a41b mov rbx, [rsp+28h+arg_0] ; +0xbd, 0x18006a41d add rsp, 20h ; +0xc2, 0x18006a422 pop rdi ; +0xc6, 0x18006a426 retn ; +0xc7, 0x18006a427 call cs:__imp_free ; +0xc8, 0x18006a428 mov [rbx+318h], rdi ; +0xce, 0x18006a42e mov rcx, [rbx+320h]; Block ; +0xd5, 0x18006a435 test rcx, rcx ; +0xdc, 0x18006a43c jz short loc_18006A44E ; +0xdf, 0x18006a43f call cs:__imp_free ; +0xe1, 0x18006a441 mov [rbx+320h], rdi ; +0xe7, 0x18006a447 mov rbx, [rsp+28h+arg_0] ; +0xee, 0x18006a44e xor al, al ; +0xf3, 0x18006a453 add rsp, 20h ; +0xf5, 0x18006a455 pop rdi ; +0xf9, 0x18006a459 retn ; +0xfa, 0x18006a45a