{"type": "func", "start": 6442851600, "end": 6442851708, "name": "cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180061d10 to 0x180061d7c (108 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006127a\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3714\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(\n        cocos2d::CCParticleBatchNode *this,\n        int a2)\n{\n  unsigned int v4; // ebx\n  unsigned int v5; // edi\n  struct cocos2d::CCString *v6; // rax\n\n  v4 = 0;\n  v5 = cocos2d::CCArray::count(this->m_pChildren);\n  if ( !v5 )\n    return v5;\n  while ( 1 )\n  {\n    v6 = cocos2d::CCArray::stringAtIndex(this->m_pChildren, v4);\n    if ( ((int (__fastcall *)(struct cocos2d::CCString *))v6->__vftable[1].acceptVisitor)(v6) > a2 )\n      break;\n    if ( ++v4 >= v5 )\n      return v5;\n  }\n  return v4;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180061d10 to 0x180061d7c (108 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006127a\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3714\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180061d10\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180061d15\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180061d1a\npush    rdi                                                            ; +0xf, 0x180061d1f\nsub     rsp, 20h                                                       ; +0x10, 0x180061d20\nmov     rsi, rcx                                                       ; +0x14, 0x180061d24\nmov     ebp, edx                                                       ; +0x17, 0x180061d27\nmov     rcx, [rcx+0D0h]; this                                          ; +0x19, 0x180061d29\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x20, 0x180061d30\nxor     ebx, ebx                                                       ; +0x25, 0x180061d35\nmov     edi, eax                                                       ; +0x27, 0x180061d37\ntest    eax, eax                                                       ; +0x29, 0x180061d39\njz      short loc_180061D61                                            ; +0x2b, 0x180061d3b\nnop     dword ptr [rax]                                                ; +0x2d, 0x180061d3d\nmov     rcx, [rsi+0D0h]; this                                          ; +0x30, 0x180061d40\nmov     edx, ebx; unsigned int                                         ; +0x37, 0x180061d47\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x39, 0x180061d49\nmov     rcx, rax                                                       ; +0x3e, 0x180061d4e\nmov     rdx, [rax]                                                     ; +0x41, 0x180061d51\ncall    qword ptr [rdx+60h]                                            ; +0x44, 0x180061d54\ncmp     eax, ebp                                                       ; +0x47, 0x180061d57\njg      short loc_180061D78                                            ; +0x49, 0x180061d59\ninc     ebx                                                            ; +0x4b, 0x180061d5b\ncmp     ebx, edi                                                       ; +0x4d, 0x180061d5d\njb      short loc_180061D40                                            ; +0x4f, 0x180061d5f\nmov     eax, edi                                                       ; +0x51, 0x180061d61\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x53, 0x180061d63\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x58, 0x180061d68\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5d, 0x180061d6d\nadd     rsp, 20h                                                       ; +0x62, 0x180061d72\npop     rdi                                                            ; +0x66, 0x180061d76\nretn                                                                   ; +0x67, 0x180061d77\nmov     eax, ebx                                                       ; +0x68, 0x180061d78\njmp     short loc_180061D63                                            ; +0x6a, 0x180061d7a", "xrefs": ["cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006127a", "<???> @ 0x1801438a8", "<???> @ 0x1801b3714"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}