; ; cocos2d::CCParticleSystemQuad::setTotalParticles from 0x18006ad50 to 0x18006aee7 (407 bytes) ; ; 14 xrefs: ; > @ 0x1800facc8 ; > @ 0x1800fb338 ; > @ 0x1800fb9a8 ; > @ 0x1800fc018 ; > @ 0x1800fc688 ; > @ 0x1800fccf8 ; > @ 0x1800fd368 ; > @ 0x1800fd9d8 ; > @ 0x1800fe048 ; > @ 0x1800fe6b8 ; > @ 0x1800fed28 ; > @ 0x180100010 ; > @ 0x1801438a8 ; > @ 0x1801b3d80 ; ; 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, 0x18006ad50 mov [rsp+arg_8], rbp ; +0x5, 0x18006ad55 mov [rsp+arg_10], rsi ; +0xa, 0x18006ad5a mov [rsp+arg_18], rdi ; +0xf, 0x18006ad5f push r12 ; +0x14, 0x18006ad64 push r14 ; +0x16, 0x18006ad66 push r15 ; +0x18, 0x18006ad68 sub rsp, 20h ; +0x1a, 0x18006ad6a mov rbx, rcx ; +0x1e, 0x18006ad6e mov edi, edx ; +0x21, 0x18006ad71 cmp edx, [rcx+1C8h] ; +0x23, 0x18006ad73 jbe loc_18006AEBA ; +0x29, 0x18006ad79 mov rcx, [rcx+1A8h]; Block ; +0x2f, 0x18006ad7f lea r14, [rdi+rdi*2] ; +0x36, 0x18006ad86 imul r12, rdi, 94h ; +0x3a, 0x18006ad8a lea r15, [rdi+rdi*2] ; +0x41, 0x18006ad91 shl r14, 5 ; +0x45, 0x18006ad95 mov rdx, r12; Size ; +0x49, 0x18006ad99 shl r15, 2 ; +0x4c, 0x18006ad9c call cs:realloc ; +0x50, 0x18006ada0 mov rcx, [rbx+318h]; Block ; +0x56, 0x18006ada6 mov rdx, r14; Size ; +0x5d, 0x18006adad mov rbp, rax ; +0x60, 0x18006adb0 call cs:realloc ; +0x63, 0x18006adb3 mov rcx, [rbx+320h]; Block ; +0x69, 0x18006adb9 mov rdx, r15; Size ; +0x70, 0x18006adc0 mov rsi, rax ; +0x73, 0x18006adc3 call cs:realloc ; +0x76, 0x18006adc6 test rbp, rbp ; +0x7c, 0x18006adcc jz loc_18006AEA0 ; +0x7f, 0x18006adcf test rsi, rsi ; +0x85, 0x18006add5 jz loc_18006AE99 ; +0x88, 0x18006add8 test rax, rax ; +0x8e, 0x18006adde jz loc_18006AE99 ; +0x91, 0x18006ade1 mov r8, r12; Size ; +0x97, 0x18006ade7 mov [rbx+1A8h], rbp ; +0x9a, 0x18006adea xor edx, edx; Val ; +0xa1, 0x18006adf1 mov [rbx+318h], rsi ; +0xa3, 0x18006adf3 mov rcx, rbp; void * ; +0xaa, 0x18006adfa mov [rbx+320h], rax ; +0xad, 0x18006adfd call memset ; +0xb4, 0x18006ae04 mov rcx, [rbx+318h]; void * ; +0xb9, 0x18006ae09 mov r8, r14; Size ; +0xc0, 0x18006ae10 xor edx, edx; Val ; +0xc3, 0x18006ae13 call memset ; +0xc5, 0x18006ae15 mov rcx, [rbx+320h]; void * ; +0xca, 0x18006ae1a mov r8, r15; Size ; +0xd1, 0x18006ae21 xor edx, edx; Val ; +0xd4, 0x18006ae24 call memset ; +0xd6, 0x18006ae26 cmp qword ptr [rbx+1B8h], 0 ; +0xdb, 0x18006ae2b mov [rbx+1C8h], edi ; +0xe3, 0x18006ae33 mov [rbx+298h], edi ; +0xe9, 0x18006ae39 jz short loc_18006AE6E ; +0xef, 0x18006ae3f xor edx, edx ; +0xf1, 0x18006ae41 test edi, edi ; +0xf3, 0x18006ae43 jz short loc_18006AE6E ; +0xf5, 0x18006ae45 nop word ptr [rax+rax+00000000h] ; +0xf7, 0x18006ae47 mov eax, edx ; +0x100, 0x18006ae50 imul rcx, rax, 94h ; +0x102, 0x18006ae52 mov rax, [rbx+1A8h] ; +0x109, 0x18006ae59 mov [rcx+rax+48h], edx ; +0x110, 0x18006ae60 inc edx ; +0x114, 0x18006ae64 cmp edx, [rbx+298h] ; +0x116, 0x18006ae66 jb short loc_18006AE50 ; +0x11c, 0x18006ae6c mov rcx, rbx; this ; +0x11e, 0x18006ae6e call ?initIndices@CCParticleSystemQuad@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystemQuad::initIndices(void) ; +0x121, 0x18006ae71 mov rcx, rbx; this ; +0x126, 0x18006ae76 call ?setupVBO@CCParticleSystemQuad@cocos2d@@AEAAXXZ; cocos2d::CCParticleSystemQuad::setupVBO(void) ; +0x129, 0x18006ae79 cmp qword ptr [rbx+2A0h], 0 ; +0x12e, 0x18006ae7e jz short loc_18006AEC0 ; +0x136, 0x18006ae86 lea rdx, [rbx+330h]; struct cocos2d::CCRect * ; +0x138, 0x18006ae88 mov rcx, rbx; this ; +0x13f, 0x18006ae8f call ?initTexCoordsWithRect@CCParticleSystemQuad@cocos2d@@QEAAXAEBVCCRect@2@@Z; cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(cocos2d::CCRect const &) ; +0x142, 0x18006ae92 jmp short loc_18006AEC0 ; +0x147, 0x18006ae97 mov [rbx+1A8h], rbp ; +0x149, 0x18006ae99 test rsi, rsi ; +0x150, 0x18006aea0 jz short loc_18006AEAC ; +0x153, 0x18006aea3 mov [rbx+318h], rsi ; +0x155, 0x18006aea5 test rax, rax ; +0x15c, 0x18006aeac jz short loc_18006AEC8 ; +0x15f, 0x18006aeaf mov [rbx+320h], rax ; +0x161, 0x18006aeb1 jmp short loc_18006AEC8 ; +0x168, 0x18006aeb8 mov [rcx+298h], edi ; +0x16a, 0x18006aeba mov rcx, rbx; this ; +0x170, 0x18006aec0 call ?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x173, 0x18006aec3 mov rbx, [rsp+38h+arg_0] ; +0x178, 0x18006aec8 mov rbp, [rsp+38h+arg_8] ; +0x17d, 0x18006aecd mov rsi, [rsp+38h+arg_10] ; +0x182, 0x18006aed2 mov rdi, [rsp+38h+arg_18] ; +0x187, 0x18006aed7 add rsp, 20h ; +0x18c, 0x18006aedc pop r15 ; +0x190, 0x18006aee0 pop r14 ; +0x192, 0x18006aee2 pop r12 ; +0x194, 0x18006aee4 retn ; +0x196, 0x18006aee6