{"type": "func", "start": 4295952416, "end": 4295952502, "name": "GJBaseGameLayer::swapBackground", "pseudocode": "// \n// GJBaseGameLayer::swapBackground from 0x1000f0820 to 0x1000f0876 (86 bytes)\n// \n// 1 xrefs:\n// > ArtTriggerGameObject::triggerObject @ 0x1001ce98b\n// \n// This function is hookable on this platform (idp: pc, 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 12:21:11 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::swapBackground(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rdx\n  __int64 v4; // rax\n  double v5; // xmm0_8\n  __int64 v6; // rax\n\n  *(_DWORD *)(a1 + 1900) = a2;\n  if ( !*(_BYTE *)(a1 + 12605) )\n  {\n    GameManager::sharedState(a1, a2, a3);\n    if ( *(_DWORD *)(v4 + 980) == (_DWORD)a2 )\n    {\n      GJBaseGameLayer::createBackground(a1, (unsigned int)a2, v3);\n      GJBaseGameLayer::updateLevelColors(a1);\n    }\n    else\n    {\n      *(_QWORD *)&v5 = GameManager::sharedState(a1, a2, v3).u64[0];\n      GameManager::loadBackgroundAsync(v6, (unsigned int)a2, v5);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::swapBackground from 0x1000f0820 to 0x1000f0876 (86 bytes)\n; \n; 1 xrefs:\n; > ArtTriggerGameObject::triggerObject @ 0x1001ce98b\n; \n; This function is hookable on this platform (idp: pc, 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 12:21:11 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000f0820\nmov     rbp, rsp                                                       ; +0x1, 0x1000f0821\npush    r14                                                            ; +0x4, 0x1000f0824\npush    rbx                                                            ; +0x6, 0x1000f0826\nmov     [rdi+76Ch], esi                                                ; +0x7, 0x1000f0827\ncmp     byte ptr [rdi+313Dh], 0                                        ; +0xd, 0x1000f082d\njz      short loc_1000F083B                                            ; +0x14, 0x1000f0834\npop     rbx                                                            ; +0x16, 0x1000f0836\npop     r14                                                            ; +0x17, 0x1000f0837\npop     rbp                                                            ; +0x19, 0x1000f0839\nretn                                                                   ; +0x1a, 0x1000f083a\nmov     ebx, esi                                                       ; +0x1b, 0x1000f083b\nmov     r14, rdi                                                       ; +0x1d, 0x1000f083d\ncall    GameManager__sharedState                                       ; +0x20, 0x1000f0840\ncmp     [rax+3D4h], ebx                                                ; +0x25, 0x1000f0845\njnz     short loc_1000F0863                                            ; +0x2b, 0x1000f084b\nmov     rdi, r14                                                       ; +0x2d, 0x1000f084d\nmov     esi, ebx                                                       ; +0x30, 0x1000f0850\ncall    GJBaseGameLayer__createBackground                              ; +0x32, 0x1000f0852\nmov     rdi, r14                                                       ; +0x37, 0x1000f0857\npop     rbx                                                            ; +0x3a, 0x1000f085a\npop     r14                                                            ; +0x3b, 0x1000f085b\npop     rbp                                                            ; +0x3d, 0x1000f085d\njmp     GJBaseGameLayer__updateLevelColors                             ; +0x3e, 0x1000f085e\ncall    GameManager__sharedState                                       ; +0x43, 0x1000f0863\nmov     rdi, rax                                                       ; +0x48, 0x1000f0868\nmov     esi, ebx                                                       ; +0x4b, 0x1000f086b\npop     rbx                                                            ; +0x4d, 0x1000f086d\npop     r14                                                            ; +0x4e, 0x1000f086e\npop     rbp                                                            ; +0x50, 0x1000f0870\njmp     GameManager__loadBackgroundAsync                               ; +0x51, 0x1000f0871", "xrefs": ["ArtTriggerGameObject::triggerObject @ 0x1001ce98b"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}