{"type": "func", "start": 4657340, "end": 4657414, "name": "GJBaseGameLayer::tryGetGroupParent", "pseudocode": "// \n// GJBaseGameLayer::tryGetGroupParent from 0x4710bc to 0x471106 (74 bytes)\n// \n// 0 xrefs:\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\nGameObject *GJBaseGameLayer::tryGetGroupParent(GJBaseGameLayer *a1, int a2)\n{\n  GameObject *v4; // r4\n  cocos2d::CCArray *Group; // r0\n  cocos2d::ccArray *data; // r2\n  int v7; // r3\n  cocos2d::CCObject **arr; // r2\n  cocos2d::CCObject **v9; // r3\n  GameObject *v10; // r1\n  GameObject *v11; // t1\n\n  v4 = (GameObject *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, a2);\n  if ( !v4 )\n  {\n    Group = GJBaseGameLayer::getGroup(a1, a2);\n    if ( Group )\n    {\n      data = Group->data;\n      if ( data->num )\n      {\n        v7 = data->num + 0x40000000;\n        arr = data->arr;\n        v9 = &arr[v7 - 1];\n        while ( arr <= v9 )\n        {\n          v11 = (GameObject *)*arr++;\n          v10 = v11;\n          if ( !v11 || v10->m_hasGroupParent )\n            return v10;\n        }\n      }\n    }\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::tryGetGroupParent from 0x4710bc to 0x471106 (74 bytes)\n; \n; 0 xrefs:\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            {R4-R6,LR}                                             ; +0x0, 0x4710bc\nMOV             R5, R0                                                 ; +0x2, 0x4710be\nLDR.W           R0, [R0,#0x9B0]; this                                  ; +0x4, 0x4710c0\nMOV             R6, R1                                                 ; +0x8, 0x4710c4\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0xa, 0x4710c6\nMOV             R4, R0                                                 ; +0xe, 0x4710ca\nCBNZ            R0, loc_471102                                         ; +0x10, 0x4710cc\nMOV             R0, R5; this                                           ; +0x12, 0x4710ce\nMOV             R1, R6; int                                            ; +0x14, 0x4710d0\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x16, 0x4710d2\nCBZ             R0, loc_471102                                         ; +0x1a, 0x4710d6\nLDR             R2, [R0,#0x34]                                         ; +0x1c, 0x4710d8\nLDR             R3, [R2]                                               ; +0x1e, 0x4710da\nCBZ             R3, loc_471102                                         ; +0x20, 0x4710dc\nADD.W           R3, R3, #0x40000000                                    ; +0x22, 0x4710de\nLDR             R2, [R2,#0xC]                                          ; +0x26, 0x4710e2\nSUBS            R3, #1                                                 ; +0x28, 0x4710e4\nADD.W           R3, R2, R3,LSL#2                                       ; +0x2a, 0x4710e6\nCMP             R2, R3                                                 ; +0x2e, 0x4710ea\nBHI             loc_471102                                             ; +0x30, 0x4710ec\nLDR.W           R1, [R2],#4                                            ; +0x32, 0x4710ee\nCBNZ            R1, loc_4710F8                                         ; +0x36, 0x4710f2\nMOV             R4, R1                                                 ; +0x38, 0x4710f4\nB               loc_471102                                             ; +0x3a, 0x4710f6\nLDRB.W          R0, [R1,#0x3E6]                                        ; +0x3c, 0x4710f8\nCMP             R0, #0                                                 ; +0x40, 0x4710fc\nBEQ             loc_4710EA                                             ; +0x42, 0x4710fe\nB               loc_4710F4                                             ; +0x44, 0x471100\nMOV             R0, R4                                                 ; +0x46, 0x471102\nPOP             {R4-R6,PC}                                             ; +0x48, 0x471104", "xrefs": [], "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"}