{"type": "func", "start": 4297556716, "end": 4297556828, "name": "GJBaseGameLayer::swapBackground", "pseudocode": "// \n// GJBaseGameLayer::swapBackground from 0x1002782ec to 0x10027835c (112 bytes)\n// \n// 1 xrefs:\n// > ArtTriggerGameObject::triggerObject @ 0x10043e1e8\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::swapBackground(__int64 result, __int64 a2)\n{\n  __int64 v3; // x20\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  *(_DWORD *)(result + 1900) = a2;\n  if ( (*(_BYTE *)(result + 12605) & 1) == 0 )\n  {\n    v3 = result;\n    v4 = GameManager::sharedState(result);\n    if ( *(_DWORD *)(v4 + 980) == (_DWORD)a2 )\n    {\n      GJBaseGameLayer::createBackground(v3, a2);\n      return GJBaseGameLayer::updateLevelColors(v3);\n    }\n    else\n    {\n      v5 = GameManager::sharedState(v4);\n      return sub_1003B524C(v5, a2);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::swapBackground from 0x1002782ec to 0x10027835c (112 bytes)\n; \n; 1 xrefs:\n; > ArtTriggerGameObject::triggerObject @ 0x10043e1e8\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, 0x1002782ec\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002782f0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002782f4\nSTR             W1, [X0,#0x76C]                                        ; +0xc, 0x1002782f8\nMOV             W8, #0x313D                                            ; +0x10, 0x1002782fc\nLDRB            W8, [X0,X8]                                            ; +0x14, 0x100278300\nTBZ             W8, #0, loc_100278314                                  ; +0x18, 0x100278304\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x1c, 0x100278308\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x20, 0x10027830c\nRET                                                                    ; +0x24, 0x100278310\nMOV             X19, X1                                                ; +0x28, 0x100278314\nMOV             X20, X0                                                ; +0x2c, 0x100278318\nBL              GameManager__sharedState                               ; +0x30, 0x10027831c\nLDR             W8, [X0,#0x3D4]                                        ; +0x34, 0x100278320\nCMP             W8, W19                                                ; +0x38, 0x100278324\nB.NE            loc_100278348                                          ; +0x3c, 0x100278328\nMOV             X0, X20                                                ; +0x40, 0x10027832c\nMOV             X1, X19                                                ; +0x44, 0x100278330\nBL              GJBaseGameLayer__createBackground                      ; +0x48, 0x100278334\nMOV             X0, X20                                                ; +0x4c, 0x100278338\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x10027833c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x100278340\nB               GJBaseGameLayer__updateLevelColors                     ; +0x58, 0x100278344\nBL              GameManager__sharedState                               ; +0x5c, 0x100278348\nMOV             X1, X19                                                ; +0x60, 0x10027834c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x100278350\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x100278354\nB               sub_1003B524C                                          ; +0x6c, 0x100278358", "xrefs": ["ArtTriggerGameObject::triggerObject @ 0x10043e1e8"], "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"}