{"type": "func", "start": 5372137216, "end": 5372137376, "name": "GJBaseGameLayer::syncBGTextures", "pseudocode": "// \n// GJBaseGameLayer::syncBGTextures from 0x140344f00 to 0x140344fa0 (160 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x1403fefcf\n// > LevelEditorLayer::onStopPlaytest @ 0x14040013b\n// > PlayLayer::resetLevel @ 0x140519b47\n// > <???> @ 0x14091fe80\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 11:30:41 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::syncBGTextures(__int64 a1)\n{\n  int v2; // eax\n  int v3; // edx\n  int v4; // eax\n  unsigned int v5; // edx\n  __int64 v6; // rcx\n  int v7; // eax\n  int *v8; // rcx\n  int v9; // edx\n\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 56LL))(*(_QWORD *)(a1 + 4320));\n  v3 = *(_DWORD *)(a1 + 2132);\n  if ( v2 != v3 )\n    GJBaseGameLayer::createBackground(a1, v3);\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 56LL))(*(_QWORD *)(a1 + 4336));\n  v5 = *(_DWORD *)(a1 + 2136);\n  if ( v4 != v5 )\n    GJBaseGameLayer::createGroundLayer(a1, v5, *(_DWORD *)(*(_QWORD *)(a1 + 3528) + 432LL));\n  v6 = *(_QWORD *)(a1 + 4352);\n  if ( v6 )\n  {\n    v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 56LL))(v6);\n    v8 = (int *)(a1 + 2140);\n    v9 = *(_DWORD *)(a1 + 2140);\n    if ( v7 != v9 )\n    {\nLABEL_11:\n      GJBaseGameLayer::createMiddleground(a1, v9);\n      return;\n    }\n  }\n  else\n  {\n    v8 = (int *)(a1 + 2140);\n  }\n  if ( !*(_QWORD *)(a1 + 4352) )\n  {\n    v9 = *v8;\n    if ( *v8 > 0 )\n      goto LABEL_11;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::syncBGTextures from 0x140344f00 to 0x140344fa0 (160 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x1403fefcf\n; > LevelEditorLayer::onStopPlaytest @ 0x14040013b\n; > PlayLayer::resetLevel @ 0x140519b47\n; > <???> @ 0x14091fe80\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 11:30:41 +0000\n; \npush    rbx                                                            ; +0x0, 0x140344f00\nsub     rsp, 20h                                                       ; +0x2, 0x140344f02\nmov     rbx, rcx                                                       ; +0x6, 0x140344f06\nmov     rcx, [rcx+10E0h]                                               ; +0x9, 0x140344f09\nmov     rax, [rcx]                                                     ; +0x10, 0x140344f10\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140344f13\nmov     edx, [rbx+854h]                                                ; +0x16, 0x140344f16\ncmp     eax, edx                                                       ; +0x1c, 0x140344f1c\njz      short loc_140344F28                                            ; +0x1e, 0x140344f1e\nmov     rcx, rbx                                                       ; +0x20, 0x140344f20\ncall    GJBaseGameLayer__createBackground                              ; +0x23, 0x140344f23\nmov     rcx, [rbx+10F0h]                                               ; +0x28, 0x140344f28\nmov     rax, [rcx]                                                     ; +0x2f, 0x140344f2f\ncall    qword ptr [rax+38h]                                            ; +0x32, 0x140344f32\nmov     edx, [rbx+858h]                                                ; +0x35, 0x140344f35\ncmp     eax, edx                                                       ; +0x3b, 0x140344f3b\njz      short loc_140344F55                                            ; +0x3d, 0x140344f3d\nmov     r8, [rbx+0DC8h]                                                ; +0x3f, 0x140344f3f\nmov     rcx, rbx                                                       ; +0x46, 0x140344f46\nmov     r8d, [r8+1B0h]                                                 ; +0x49, 0x140344f49\ncall    GJBaseGameLayer__createGroundLayer                             ; +0x50, 0x140344f50\nmov     rcx, [rbx+1100h]                                               ; +0x55, 0x140344f55\ntest    rcx, rcx                                                       ; +0x5c, 0x140344f5c\njz      short loc_140344F76                                            ; +0x5f, 0x140344f5f\nmov     rax, [rcx]                                                     ; +0x61, 0x140344f61\ncall    qword ptr [rax+38h]                                            ; +0x64, 0x140344f64\nlea     rcx, [rbx+85Ch]                                                ; +0x67, 0x140344f67\nmov     edx, [rcx]                                                     ; +0x6e, 0x140344f6e\ncmp     eax, edx                                                       ; +0x70, 0x140344f70\njnz     short loc_140344F8D                                            ; +0x72, 0x140344f72\njmp     short loc_140344F7D                                            ; +0x74, 0x140344f74\nlea     rcx, [rbx+85Ch]                                                ; +0x76, 0x140344f76\ncmp     qword ptr [rbx+1100h], 0                                       ; +0x7d, 0x140344f7d\njnz     short loc_140344F9A                                            ; +0x85, 0x140344f85\nmov     edx, [rcx]                                                     ; +0x87, 0x140344f87\ntest    edx, edx                                                       ; +0x89, 0x140344f89\njle     short loc_140344F9A                                            ; +0x8b, 0x140344f8b\nmov     rcx, rbx                                                       ; +0x8d, 0x140344f8d\nadd     rsp, 20h                                                       ; +0x90, 0x140344f90\npop     rbx                                                            ; +0x94, 0x140344f94\njmp     GJBaseGameLayer__createMiddleground                            ; +0x95, 0x140344f95\nadd     rsp, 20h                                                       ; +0x9a, 0x140344f9a\npop     rbx                                                            ; +0x9e, 0x140344f9e\nretn                                                                   ; +0x9f, 0x140344f9f", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x1403fefcf", "LevelEditorLayer::onStopPlaytest @ 0x14040013b", "PlayLayer::resetLevel @ 0x140519b47", "<???> @ 0x14091fe80"], "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"}