{"type": "func", "start": 4297037664, "end": 4297037800, "name": "GJBaseGameLayer::modifyGroupPhysics", "pseudocode": "// \n// GJBaseGameLayer::modifyGroupPhysics from 0x1001f9760 to 0x1001f97e8 (136 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9608\n// > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9670\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 __fastcall GJBaseGameLayer::modifyGroupPhysics(\n        GJBaseGameLayer *a1,\n        AdvancedFollowEditObject *a2,\n        cocos2d::CCArray *a3)\n{\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x21\n  unsigned __int64 v8; // x22\n  __int64 *v9; // x0\n  unsigned int m_uReference; // [xsp+Ch] [xbp-24h] BYREF\n\n  if ( a3 )\n  {\n    data = a3->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v8 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        if ( !*arr )\n          break;\n        m_uReference = (*arr)[16].m_uReference;\n        v9 = sub_100018814(\n               &a1->m_gameState.m_gameObjectPhysics.__table_.__bucket_list_.__ptr_.__value_,\n               (int *)&m_uReference);\n        if ( v9 )\n          GJBaseGameLayer::modifyObjectPhysics(a1, a2, (GameObjectPhysics *)(v9 + 3));\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v8 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::modifyGroupPhysics from 0x1001f9760 to 0x1001f97e8 (136 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9608\n; > GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9670\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\nCBZ             X2, locret_1001F97E4                                   ; +0x0, 0x1001f9760\nSUB             SP, SP, #0x40                                          ; +0x4, 0x1001f9764\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x8, 0x1001f9768\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0xc, 0x1001f976c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x10, 0x1001f9770\nADD             X29, SP, #0x30                                         ; +0x14, 0x1001f9774\nLDR             X9, [X2,#0x38]                                         ; +0x18, 0x1001f9778\nLDR             W8, [X9]                                               ; +0x1c, 0x1001f977c\nCBZ             W8, loc_1001F97D4                                      ; +0x20, 0x1001f9780\nMOV             X19, X1                                                ; +0x24, 0x1001f9784\nMOV             X20, X0                                                ; +0x28, 0x1001f9788\nLDR             X21, [X9,#0x10]                                        ; +0x2c, 0x1001f978c\nADD             X8, X21, X8,LSL#3                                      ; +0x30, 0x1001f9790\nSUB             X22, X8, #8                                            ; +0x34, 0x1001f9794\nLDR             X8, [X21]                                              ; +0x38, 0x1001f9798\nCBZ             X8, loc_1001F97D4                                      ; +0x3c, 0x1001f979c\nLDR             W8, [X8,#0x394]                                        ; +0x40, 0x1001f97a0\nSTR             W8, [SP,#0x30+var_24]                                  ; +0x44, 0x1001f97a4\nADD             X0, X20, #0x430                                        ; +0x48, 0x1001f97a8\nADD             X1, SP, #0x30+var_24                                   ; +0x4c, 0x1001f97ac\nBL              sub_100018814                                          ; +0x50, 0x1001f97b0\nCBZ             X0, loc_1001F97C8                                      ; +0x54, 0x1001f97b4\nADD             X2, X0, #0x18                                          ; +0x58, 0x1001f97b8\nMOV             X0, X20                                                ; +0x5c, 0x1001f97bc\nMOV             X1, X19                                                ; +0x60, 0x1001f97c0\nBL              GJBaseGameLayer__modifyObjectPhysics                   ; +0x64, 0x1001f97c4\nADD             X21, X21, #8                                           ; +0x68, 0x1001f97c8\nCMP             X21, X22                                               ; +0x6c, 0x1001f97cc\nB.LS            loc_1001F9798                                          ; +0x70, 0x1001f97d0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x74, 0x1001f97d4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x78, 0x1001f97d8\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x7c, 0x1001f97dc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x80, 0x1001f97e0\nRET                                                                    ; +0x84, 0x1001f97e4", "xrefs": ["GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9608", "GJBaseGameLayer::triggerAdvancedFollowEditCommand @ 0x1001f9670"], "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"}