{"type": "func", "start": 6443096768, "end": 6443096806, "name": "sub_18009DAC0", "pseudocode": "// \n// sub_18009DAC0 from 0x18009dac0 to 0x18009dae6 (38 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCArray::exchangeObject @ 0x180006e59\n// > cocos2d::CCArray::exchangeObject @ 0x180006e6c\n// > cocos2d::CCArray::indexOfObject @ 0x180006ef4\n// > cocos2d::CCActionManager::removeAction @ 0x18003846f\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 sub_18009DAC0(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  _QWORD *v3; // r8\n\n  result = 0;\n  v3 = *(_QWORD **)(a1 + 16);\n  if ( !*(_DWORD *)a1 )\n    return 0xFFFFFFFFLL;\n  while ( *v3 != a2 )\n  {\n    result = (unsigned int)(result + 1);\n    ++v3;\n    if ( (unsigned int)result >= *(_DWORD *)a1 )\n      return 0xFFFFFFFFLL;\n  }\n  return result;\n}", "assembly": "; \n; sub_18009DAC0 from 0x18009dac0 to 0x18009dae6 (38 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCArray::exchangeObject @ 0x180006e59\n; > cocos2d::CCArray::exchangeObject @ 0x180006e6c\n; > cocos2d::CCArray::indexOfObject @ 0x180006ef4\n; > cocos2d::CCActionManager::removeAction @ 0x18003846f\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     r9d, [rcx]                                                     ; +0x0, 0x18009dac0\nxor     eax, eax                                                       ; +0x3, 0x18009dac3\nmov     r8, [rcx+10h]                                                  ; +0x5, 0x18009dac5\ntest    r9d, r9d                                                       ; +0x9, 0x18009dac9\njz      short loc_18009DAE0                                            ; +0xc, 0x18009dacc\nxchg    ax, ax                                                         ; +0xe, 0x18009dace\ncmp     [r8], rdx                                                      ; +0x10, 0x18009dad0\njz      short locret_18009DAE5                                         ; +0x13, 0x18009dad3\ninc     eax                                                            ; +0x15, 0x18009dad5\nadd     r8, 8                                                          ; +0x17, 0x18009dad7\ncmp     eax, r9d                                                       ; +0x1b, 0x18009dadb\njb      short loc_18009DAD0                                            ; +0x1e, 0x18009dade\nmov     eax, 0FFFFFFFFh                                                ; +0x20, 0x18009dae0\nretn                                                                   ; +0x25, 0x18009dae5", "xrefs": ["cocos2d::CCArray::exchangeObject @ 0x180006e59", "cocos2d::CCArray::exchangeObject @ 0x180006e6c", "cocos2d::CCArray::indexOfObject @ 0x180006ef4", "cocos2d::CCActionManager::removeAction @ 0x18003846f"], "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"}