{"type": "func", "start": 4297557452, "end": 4297557532, "name": "GJBaseGameLayer::swapGround", "pseudocode": "// \n// GJBaseGameLayer::swapGround from 0x1002785cc to 0x10027861c (80 bytes)\n// \n// 1 xrefs:\n// > ArtTriggerGameObject::triggerObject @ 0x10043e1f8\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:01:51 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::swapGround(__int64 result, __int64 a2)\n{\n  __int64 v3; // x0\n\n  *(_DWORD *)(result + 1904) = a2;\n  if ( (*(_BYTE *)(result + 12605) & 1) == 0 )\n  {\n    result = GameManager::sharedState(result);\n    if ( *(_DWORD *)(result + 984) != (_DWORD)a2 )\n    {\n      v3 = GameManager::sharedState(result);\n      return sub_1003B57D0(v3, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::swapGround from 0x1002785cc to 0x10027861c (80 bytes)\n; \n; 1 xrefs:\n; > ArtTriggerGameObject::triggerObject @ 0x10043e1f8\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:01:51 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002785cc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002785d0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002785d4\nSTR             W1, [X0,#0x770]                                        ; +0xc, 0x1002785d8\nMOV             W8, #0x313D                                            ; +0x10, 0x1002785dc\nLDRB            W8, [X0,X8]                                            ; +0x14, 0x1002785e0\nTBNZ            W8, #0, loc_1002785FC                                  ; +0x18, 0x1002785e4\nMOV             X19, X1                                                ; +0x1c, 0x1002785e8\nBL              GameManager__sharedState                               ; +0x20, 0x1002785ec\nLDR             W8, [X0,#0x3D8]                                        ; +0x24, 0x1002785f0\nCMP             W8, W19                                                ; +0x28, 0x1002785f4\nB.NE            loc_100278608                                          ; +0x2c, 0x1002785f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x1002785fc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x100278600\nRET                                                                    ; +0x38, 0x100278604\nBL              GameManager__sharedState                               ; +0x3c, 0x100278608\nMOV             X1, X19                                                ; +0x40, 0x10027860c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x44, 0x100278610\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x48, 0x100278614\nB               sub_1003B57D0                                          ; +0x4c, 0x100278618", "xrefs": ["ArtTriggerGameObject::triggerObject @ 0x10043e1f8"], "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"}