{"type": "func", "start": 4297646956, "end": 4297647228, "name": "GJBaseGameLayer::setGroupParent", "pseudocode": "// \n// GJBaseGameLayer::setGroupParent from 0x10028e36c to 0x10028e47c (272 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::promoteGroupParent @ 0x10028e548\n// > GJBaseGameLayer::addToGroupParents @ 0x10028e908\n// > GJBaseGameLayer::loadGroupParentsFromString @ 0x10028ec78\n// \n// This function is hookable on this platform (idp: arm, 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:02:02 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::setGroupParent(__int64 a1, __int64 a2, int a3)\n{\n  __int64 v6; // x0\n  __int64 v7; // x22\n  __int64 v8; // x0\n  __int64 v9; // x22\n  __int64 v10; // x21\n  _DWORD *v11; // x0\n\n  if ( a2 && a3 >= 1 )\n  {\n    cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a3);\n    if ( v6 )\n    {\n      v7 = v6;\n      if ( (sub_1002E7638(v6) & 1) != 0 )\n        return;\n    }\n    else\n    {\n      v7 = sub_1002E736C(0);\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3688), v7, (unsigned int)a3);\n    }\n    sub_1002E74E0(v7, a2);\n    cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3696), *(unsigned int *)(a2 + 916));\n    v9 = v8;\n    if ( !v8 )\n    {\n      v9 = sub_1002E736C(0);\n      cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3696), v9, *(unsigned int *)(a2 + 916));\n    }\n    if ( (unsigned int)sub_1002E757C(v9) )\n    {\n      v10 = 0;\n      while ( *(_DWORD *)(sub_1002E75A0(v9, v10) + 56) != a3 )\n      {\n        v10 = (unsigned int)(v10 + 1);\n        if ( (unsigned int)v10 >= (unsigned int)sub_1002E757C(v9) )\n          goto LABEL_13;\n      }\n    }\n    else\n    {\nLABEL_13:\n      v11 = sub_100145068(a3);\n      sub_1002E74E0(v9, v11);\n    }\n    *(_BYTE *)(a2 + 1170) = 1;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::setGroupParent from 0x10028e36c to 0x10028e47c (272 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::promoteGroupParent @ 0x10028e548\n; > GJBaseGameLayer::addToGroupParents @ 0x10028e908\n; > GJBaseGameLayer::loadGroupParentsFromString @ 0x10028ec78\n; \n; This function is hookable on this platform (idp: arm, 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:02:02 +0000\n; \nCBZ             X1, locret_10028E478                                   ; +0x0, 0x10028e36c\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x4, 0x10028e370\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x8, 0x10028e374\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0xc, 0x10028e378\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x10, 0x10028e37c\nADD             X29, SP, #0x30                                         ; +0x14, 0x10028e380\nMOV             X20, X2                                                ; +0x18, 0x10028e384\nCMP             W2, #1                                                 ; +0x1c, 0x10028e388\nB.LT            loc_10028E468                                          ; +0x20, 0x10028e38c\nMOV             X19, X1                                                ; +0x24, 0x10028e390\nMOV             X21, X0                                                ; +0x28, 0x10028e394\nLDR             X0, [X0,#0xE68]                                        ; +0x2c, 0x10028e398\nMOV             W23, W20                                               ; +0x30, 0x10028e39c\nMOV             X1, X23                                                ; +0x34, 0x10028e3a0\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x38, 0x10028e3a4\nCBZ             X0, loc_10028E3C0                                      ; +0x3c, 0x10028e3a8\nMOV             X22, X0                                                ; +0x40, 0x10028e3ac\nMOV             X1, X19                                                ; +0x44, 0x10028e3b0\nBL              sub_1002E7638                                          ; +0x48, 0x10028e3b4\nTBZ             W0, #0, loc_10028E3D8                                  ; +0x4c, 0x10028e3b8\nB               loc_10028E468                                          ; +0x50, 0x10028e3bc\nBL              sub_1002E736C                                          ; +0x54, 0x10028e3c0\nMOV             X22, X0                                                ; +0x58, 0x10028e3c4\nLDR             X0, [X21,#0xE68]                                       ; +0x5c, 0x10028e3c8\nMOV             X1, X22                                                ; +0x60, 0x10028e3cc\nMOV             X2, X23                                                ; +0x64, 0x10028e3d0\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x68, 0x10028e3d4\nMOV             X0, X22                                                ; +0x6c, 0x10028e3d8\nMOV             X1, X19                                                ; +0x70, 0x10028e3dc\nBL              sub_1002E74E0                                          ; +0x74, 0x10028e3e0\nLDR             X0, [X21,#0xE70]                                       ; +0x78, 0x10028e3e4\nLDR             W1, [X19,#0x394]                                       ; +0x7c, 0x10028e3e8\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x80, 0x10028e3ec\nMOV             X22, X0                                                ; +0x84, 0x10028e3f0\nCBNZ            X0, loc_10028E410                                      ; +0x88, 0x10028e3f4\nBL              sub_1002E736C                                          ; +0x8c, 0x10028e3f8\nMOV             X22, X0                                                ; +0x90, 0x10028e3fc\nLDR             X0, [X21,#0xE70]                                       ; +0x94, 0x10028e400\nLDR             W2, [X19,#0x394]                                       ; +0x98, 0x10028e404\nMOV             X1, X22                                                ; +0x9c, 0x10028e408\nBL              cocos2d__CCDictionary__setObject_1                     ; +0xa0, 0x10028e40c\nMOV             X0, X22                                                ; +0xa4, 0x10028e410\nBL              sub_1002E757C                                          ; +0xa8, 0x10028e414\nCBZ             W0, loc_10028E44C                                      ; +0xac, 0x10028e418\nMOV             W21, #0                                                ; +0xb0, 0x10028e41c\nMOV             X0, X22                                                ; +0xb4, 0x10028e420\nMOV             X1, X21                                                ; +0xb8, 0x10028e424\nBL              sub_1002E75A0                                          ; +0xbc, 0x10028e428\nLDR             W8, [X0,#0x38]                                         ; +0xc0, 0x10028e42c\nCMP             W8, W20                                                ; +0xc4, 0x10028e430\nB.EQ            loc_10028E460                                          ; +0xc8, 0x10028e434\nADD             W21, W21, #1                                           ; +0xcc, 0x10028e438\nMOV             X0, X22                                                ; +0xd0, 0x10028e43c\nBL              sub_1002E757C                                          ; +0xd4, 0x10028e440\nCMP             W21, W0                                                ; +0xd8, 0x10028e444\nB.CC            loc_10028E420                                          ; +0xdc, 0x10028e448\nMOV             X0, X20                                                ; +0xe0, 0x10028e44c\nBL              sub_100145068                                          ; +0xe4, 0x10028e450\nMOV             X1, X0                                                 ; +0xe8, 0x10028e454\nMOV             X0, X22                                                ; +0xec, 0x10028e458\nBL              sub_1002E74E0                                          ; +0xf0, 0x10028e45c\nMOV             W8, #1                                                 ; +0xf4, 0x10028e460\nSTRB            W8, [X19,#0x492]                                       ; +0xf8, 0x10028e464\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xfc, 0x10028e468\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x100, 0x10028e46c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x104, 0x10028e470\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x108, 0x10028e474\nRET                                                                    ; +0x10c, 0x10028e478", "xrefs": ["GJBaseGameLayer::promoteGroupParent @ 0x10028e548", "GJBaseGameLayer::addToGroupParents @ 0x10028e908", "GJBaseGameLayer::loadGroupParentsFromString @ 0x10028ec78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}