{"type": "func", "start": 6442860848, "end": 6442860959, "name": "cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ", "pseudocode": "// \n// cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180064130 to 0x18006419f (111 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006368a\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bda68\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:52 +0000\n// \n\n__int64 __fastcall cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ(cocos2d::CCArray **this, 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 + 26));\n  if ( !v5 )\n    return v5;\n  while ( 1 )\n  {\n    v6 = cocos2d::CCArray::stringAtIndex(*(this + 26), v4);\n    if ( (*(int (__fastcall **)(struct cocos2d::CCString *))(*(_QWORD *)v6 + 96LL))(v6) > a2 )\n      break;\n    if ( ++v4 >= v5 )\n      return v5;\n  }\n  return v4;\n}", "assembly": "; \n; cocos2d::CCParticleBatchNode::searchNewPositionInChildrenForZ from 0x180064130 to 0x18006419f (111 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006368a\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bda68\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180064130\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180064135\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18006413a\npush    rdi                                                            ; +0xf, 0x18006413f\nsub     rsp, 20h                                                       ; +0x10, 0x180064140\nmov     rsi, rcx                                                       ; +0x14, 0x180064144\nmov     ebp, edx                                                       ; +0x17, 0x180064147\nmov     rcx, [rcx+0D0h]; this                                          ; +0x19, 0x180064149\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x20, 0x180064150\nxor     ebx, ebx                                                       ; +0x25, 0x180064155\nmov     edi, eax                                                       ; +0x27, 0x180064157\ntest    eax, eax                                                       ; +0x29, 0x180064159\njz      short loc_180064184                                            ; +0x2b, 0x18006415b\nnop     dword ptr [rax]                                                ; +0x2d, 0x18006415d\nmov     rcx, [rsi+0D0h]; this                                          ; +0x30, 0x180064160\nmov     edx, ebx; unsigned int                                         ; +0x37, 0x180064167\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x39, 0x180064169\nmov     rcx, [rax]                                                     ; +0x3e, 0x18006416e\nmov     rdx, [rcx+60h]                                                 ; +0x41, 0x180064171\nmov     rcx, rax                                                       ; +0x45, 0x180064175\ncall    rdx                                                            ; +0x48, 0x180064178\ncmp     eax, ebp                                                       ; +0x4a, 0x18006417a\njg      short loc_18006419B                                            ; +0x4c, 0x18006417c\ninc     ebx                                                            ; +0x4e, 0x18006417e\ncmp     ebx, edi                                                       ; +0x50, 0x180064180\njb      short loc_180064160                                            ; +0x52, 0x180064182\nmov     eax, edi                                                       ; +0x54, 0x180064184\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x180064186\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x5b, 0x18006418b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x60, 0x180064190\nadd     rsp, 20h                                                       ; +0x65, 0x180064195\npop     rdi                                                            ; +0x69, 0x180064199\nretn                                                                   ; +0x6a, 0x18006419a\nmov     eax, ebx                                                       ; +0x6b, 0x18006419b\njmp     short loc_180064186                                            ; +0x6d, 0x18006419d", "xrefs": ["cocos2d::CCParticleBatchNode::addChildHelper @ 0x18006368a", "<???> @ 0x18014cf68", "<???> @ 0x1801bda68"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}