{"type": "func", "start": 4714888, "end": 4714996, "name": "GJBaseGameLayer::modifyGroupPhysics", "pseudocode": "// \n// GJBaseGameLayer::modifyGroupPhysics from 0x47f188 to 0x47f1f4 (108 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fae\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fc8\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\nvoid GJBaseGameLayer::modifyGroupPhysics(GJBaseGameLayer *a1, AdvancedFollowEditObject *a2, cocos2d::CCArray *a3)\n{\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r4\n  std::unordered_map<int, GameObjectPhysics> *p_m_gameObjectPhysics; // r9\n  cocos2d::CCObject **v8; // r5\n  int v9; // r3\n  int v10; // t1\n  int v11; // r2\n  _DWORD v12[2]; // [sp+0h] [bp-8h] BYREF\n\n  v12[0] = a1;\n  v12[1] = a2;\n  if ( a3 )\n  {\n    data = a3->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      p_m_gameObjectPhysics = &a1->m_gameState.m_gameObjectPhysics;\n      v8 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v8 )\n      {\n        v10 = (int)*arr++;\n        v9 = v10;\n        if ( !v10 )\n          break;\n        v12[0] = *(_DWORD *)(v9 + 772);\n        v11 = std::_Hashtable<int,std::pair<int const,GameObjectPhysics>,std::allocator<std::pair<int const,GameObjectPhysics>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(\n                p_m_gameObjectPhysics,\n                v12);\n        if ( v11 )\n          GJBaseGameLayer::modifyObjectPhysics(a1, a2, (GameObjectPhysics *)(v11 + 8));\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::modifyGroupPhysics from 0x47f188 to 0x47f1f4 (108 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fae\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fc8\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.W          {R0,R1,R4-R10,LR}                                      ; +0x0, 0x47f188\nMOV             R7, R1                                                 ; +0x4, 0x47f18c\nLDR             R1, =(__stack_chk_guard_ptr - 0x47F196)                ; +0x6, 0x47f18e\nMOV             R6, R0                                                 ; +0x8, 0x47f190\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xa, 0x47f192\nLDR             R1, [R1]; __stack_chk_guard                            ; +0xc, 0x47f194\nLDR             R3, [R1]                                               ; +0xe, 0x47f196\nMOV             R8, R1                                                 ; +0x10, 0x47f198\nSTR             R3, [SP,#8+var_4]                                      ; +0x12, 0x47f19a\nCBZ             R2, loc_47F1E0                                         ; +0x14, 0x47f19c\nLDR             R2, [R2,#0x34]                                         ; +0x16, 0x47f19e\nLDR             R3, [R2]                                               ; +0x18, 0x47f1a0\nCBZ             R3, loc_47F1E0                                         ; +0x1a, 0x47f1a2\nADD.W           R3, R3, #0x40000000                                    ; +0x1c, 0x47f1a4\nLDR             R4, [R2,#0xC]                                          ; +0x20, 0x47f1a8\nSUBS            R3, #1                                                 ; +0x22, 0x47f1aa\nADD.W           R9, R0, #0x3A4                                         ; +0x24, 0x47f1ac\nMOV             R10, SP                                                ; +0x28, 0x47f1b0\nADD.W           R5, R4, R3,LSL#2                                       ; +0x2a, 0x47f1b2\nCMP             R4, R5                                                 ; +0x2e, 0x47f1b6\nBHI             loc_47F1E0                                             ; +0x30, 0x47f1b8\nLDR.W           R3, [R4],#4                                            ; +0x32, 0x47f1ba\nCBZ             R3, loc_47F1E0                                         ; +0x36, 0x47f1be\nLDR.W           R3, [R3,#0x304]                                        ; +0x38, 0x47f1c0\nMOV             R0, R9                                                 ; +0x3c, 0x47f1c4\nMOV             R1, R10                                                ; +0x3e, 0x47f1c6\nSTR             R3, [SP,#8+var_8]                                      ; +0x40, 0x47f1c8\nBL              _ZNSt10_HashtableIiSt4pairIKi17GameObjectPhysicsESaIS3_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,GameObjectPhysics>,std::allocator<std::pair<int const,GameObjectPhysics>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) ; +0x42, 0x47f1ca\nMOV             R2, R0                                                 ; +0x46, 0x47f1ce\nCMP             R0, #0                                                 ; +0x48, 0x47f1d0\nBEQ             loc_47F1B6                                             ; +0x4a, 0x47f1d2\nMOV             R0, R6                                                 ; +0x4c, 0x47f1d4\nMOV             R1, R7                                                 ; +0x4e, 0x47f1d6\nADDS            R2, #8                                                 ; +0x50, 0x47f1d8\nBL              _ZN15GJBaseGameLayer19modifyObjectPhysicsEP24AdvancedFollowEditObjectR17GameObjectPhysics; GJBaseGameLayer::modifyObjectPhysics(AdvancedFollowEditObject *,GameObjectPhysics &) ; +0x52, 0x47f1da\nB               loc_47F1B6                                             ; +0x56, 0x47f1de\nLDR             R2, [SP,#8+var_4]                                      ; +0x58, 0x47f1e0\nLDR.W           R3, [R8]                                               ; +0x5a, 0x47f1e2\nCMP             R2, R3                                                 ; +0x5e, 0x47f1e6\nBEQ             loc_47F1EE                                             ; +0x60, 0x47f1e8\nBLX             __stack_chk_fail                                       ; +0x62, 0x47f1ea\nADD             SP, SP, #8                                             ; +0x66, 0x47f1ee\nPOP.W           {R4-R10,PC}                                            ; +0x68, 0x47f1f0", "xrefs": ["GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fae", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x480fc8"], "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"}