{"type": "func", "start": 5373006640, "end": 5373006779, "name": "SetupCollisionTriggerPopup::onEnableGroup", "pseudocode": "// \n// SetupCollisionTriggerPopup::onEnableGroup from 0x140419330 to 0x1404193bb (139 bytes)\n// \n// 6 xrefs:\n// > SetupCollisionTriggerPopup::init @ 0x140418f40\n// > SetupCountTriggerPopup::init @ 0x14041bfd7\n// > SetupInstantCountPopup::init @ 0x140423027\n// > <???> @ 0x14069fe10\n// > <???> @ 0x14069fe20\n// > <???> @ 0x1406d90bc\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// Merged with: SetupCollisionTriggerPopup::onEnableGroup, SetupCountTriggerPopup::onEnableGroup, SetupInstantCountPopup::onEnableGroup\nint __fastcall SetupCollisionTriggerPopup::onEnableGroup(__int64 a1)\n{\n  bool v2; // cl\n  __int64 v3; // rax\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  v2 = *(_BYTE *)(a1 + 972) == 0;\n  *(_BYTE *)(a1 + 972) = v2;\n  v3 = *(_QWORD *)(a1 + 656);\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1653) = v2;\n  }\n  else\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 664);\n    if ( v4 )\n    {\n      v5 = 0;\n      for ( LODWORD(v3) = cocos2d::CCArray::count(v4);\n            v5 < (unsigned int)v3;\n            LODWORD(v3) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)) )\n      {\n        v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v5++);\n        BYTE1(v6[29].m_eObjType) = *(_BYTE *)(a1 + 972);\n      }\n    }\n  }\n  return v3;\n}", "assembly": "; \n; SetupCollisionTriggerPopup::onEnableGroup from 0x140419330 to 0x1404193bb (139 bytes)\n; \n; 6 xrefs:\n; > SetupCollisionTriggerPopup::init @ 0x140418f40\n; > SetupCountTriggerPopup::init @ 0x14041bfd7\n; > SetupInstantCountPopup::init @ 0x140423027\n; > <???> @ 0x14069fe10\n; > <???> @ 0x14069fe20\n; > <???> @ 0x1406d90bc\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\npush    rbx                                                            ; +0x0, 0x140419330\nsub     rsp, 20h                                                       ; +0x2, 0x140419332\ncmp     byte ptr [rcx+3CCh], 0                                         ; +0x6, 0x140419336\nmov     rbx, rcx                                                       ; +0xd, 0x14041933d\nsetz    al                                                             ; +0x10, 0x140419340\nmovzx   ecx, al                                                        ; +0x13, 0x140419343\nmov     [rbx+3CCh], al                                                 ; +0x16, 0x140419346\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14041934c\ntest    rax, rax                                                       ; +0x23, 0x140419353\njz      short loc_140419364                                            ; +0x26, 0x140419356\nmov     [rax+675h], cl                                                 ; +0x28, 0x140419358\nadd     rsp, 20h                                                       ; +0x2e, 0x14041935e\npop     rbx                                                            ; +0x32, 0x140419362\nretn                                                                   ; +0x33, 0x140419363\nmov     rcx, [rbx+298h]                                                ; +0x34, 0x140419364\ntest    rcx, rcx                                                       ; +0x3b, 0x14041936b\njz      short loc_1404193B5                                            ; +0x3e, 0x14041936e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x140419370\nxor     edi, edi                                                       ; +0x45, 0x140419375\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x140419377\ntest    eax, eax                                                       ; +0x4d, 0x14041937d\njz      short loc_1404193B0                                            ; +0x4f, 0x14041937f\nmov     rcx, [rbx+298h]                                                ; +0x51, 0x140419381\nmov     edx, edi                                                       ; +0x58, 0x140419388\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x14041938a\nmovzx   ecx, byte ptr [rbx+3CCh]                                       ; +0x60, 0x140419390\ninc     edi                                                            ; +0x67, 0x140419397\nmov     [rax+675h], cl                                                 ; +0x69, 0x140419399\nmov     rcx, [rbx+298h]                                                ; +0x6f, 0x14041939f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x1404193a6\ncmp     edi, eax                                                       ; +0x7c, 0x1404193ac\njb      short loc_140419381                                            ; +0x7e, 0x1404193ae\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x1404193b0\nadd     rsp, 20h                                                       ; +0x85, 0x1404193b5\npop     rbx                                                            ; +0x89, 0x1404193b9\nretn                                                                   ; +0x8a, 0x1404193ba", "xrefs": ["SetupCollisionTriggerPopup::init @ 0x140418f40", "SetupCountTriggerPopup::init @ 0x14041bfd7", "SetupInstantCountPopup::init @ 0x140423027", "<???> @ 0x14069fe10", "<???> @ 0x14069fe20", "<???> @ 0x1406d90bc"], "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"}