{"type": "func", "start": 8771800, "end": 8771968, "name": "GJBaseGameLayer::tryGetGroupParent", "pseudocode": "// \n// GJBaseGameLayer::tryGetGroupParent from 0x85d8d8 to 0x85d980 (168 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xbfec8\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; // x19\n  cocos2d::CCArray *Group; // x0\n  cocos2d::ccArray *data; // x0\n  unsigned int num; // w1\n  GameObject **arr; // x0\n  GameObject **v10; // x3\n  GameObject *v11; // x1\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      num = data->num;\n      if ( data->num )\n      {\n        arr = (GameObject **)data->arr;\n        v10 = &arr[num - 1];\n        if ( arr <= v10 )\n        {\n          v11 = *arr;\n          if ( *arr )\n          {\n            while ( !v11->m_hasGroupParent )\n            {\n              if ( v10 < ++arr )\n                return v4;\n              v11 = *arr;\n              if ( !*arr )\n                return nullptr;\n            }\n            return v11;\n          }\n        }\n      }\n    }\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::tryGetGroupParent from 0x85d8d8 to 0x85d980 (168 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xbfec8\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85d8d8\nSXTW            X1, W1; __int64                                        ; +0x4, 0x85d8dc\nMOV             X29, SP                                                ; +0x8, 0x85d8e0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x85d8e4\nMOV             X21, X0                                                ; +0x10, 0x85d8e8\nLDR             X0, [X0,#0xFB0]; this                                  ; +0x14, 0x85d8ec\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x18, 0x85d8f0\nMOV             X20, X1                                                ; +0x1c, 0x85d8f4\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x20, 0x85d8f8\nMOV             X19, X0                                                ; +0x24, 0x85d8fc\nCBZ             X0, loc_85D918                                         ; +0x28, 0x85d900\nMOV             X0, X19                                                ; +0x2c, 0x85d904\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x30, 0x85d908\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x34, 0x85d90c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x38, 0x85d910\nRET                                                                    ; +0x3c, 0x85d914\nMOV             X0, X21; this                                          ; +0x40, 0x85d918\nMOV             W1, W20; int                                           ; +0x44, 0x85d91c\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x48, 0x85d920\nCBZ             X0, loc_85D904                                         ; +0x4c, 0x85d924\nLDR             X0, [X0,#0x38]                                         ; +0x50, 0x85d928\nLDR             W1, [X0]                                               ; +0x54, 0x85d92c\nCBZ             W1, loc_85D904                                         ; +0x58, 0x85d930\nLDR             X0, [X0,#0x10]                                         ; +0x5c, 0x85d934\nMOV             X3, #0xFFFFFFFFFFFFFFF8                                ; +0x60, 0x85d938\nADD             X3, X3, W1,UXTW#3                                      ; +0x64, 0x85d93c\nADD             X3, X0, X3                                             ; +0x68, 0x85d940\nCMP             X0, X3                                                 ; +0x6c, 0x85d944\nB.HI            loc_85D904                                             ; +0x70, 0x85d948\nLDR             X1, [X0]                                               ; +0x74, 0x85d94c\nCBZ             X1, loc_85D904                                         ; +0x78, 0x85d950\nLDRB            W2, [X1,#0x46E]                                        ; +0x7c, 0x85d954\nCBNZ            W2, loc_85D978                                         ; +0x80, 0x85d958\nADD             X0, X0, #8                                             ; +0x84, 0x85d95c\nCMP             X3, X0                                                 ; +0x88, 0x85d960\nB.CC            loc_85D904                                             ; +0x8c, 0x85d964\nLDR             X1, [X0]                                               ; +0x90, 0x85d968\nCBNZ            X1, loc_85D954                                         ; +0x94, 0x85d96c\nMOV             X19, #0                                                ; +0x98, 0x85d970\nB               loc_85D904                                             ; +0x9c, 0x85d974\nMOV             X19, X1                                                ; +0xa0, 0x85d978\nB               loc_85D904                                             ; +0xa4, 0x85d97c", "xrefs": ["<???> @ 0xbfec8"], "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"}