{"type": "func", "start": 4297715384, "end": 4297715568, "name": "GJBaseGameLayer::syncBGTextures", "pseudocode": "// \n// GJBaseGameLayer::syncBGTextures from 0x10029eeb8 to 0x10029ef70 (184 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::resetLevel @ 0x10014bf30\n// > LevelEditorLayer::onPlaytest @ 0x100404a40\n// > LevelEditorLayer::onStopPlaytest @ 0x1004052ac\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:02:12 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::syncBGTextures(__int64 a1)\n{\n  int v2; // w0\n  int v3; // w1\n  int v4; // w0\n  int v5; // w1\n  __int64 result; // x0\n  int v7; // w1\n\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3944) + 64LL))(*(_QWORD *)(a1 + 3944));\n  v3 = *(_DWORD *)(a1 + 1900);\n  if ( v2 != v3 )\n    GJBaseGameLayer::createBackground(a1, v3);\n  v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3960) + 64LL))(*(_QWORD *)(a1 + 3960));\n  v5 = *(_DWORD *)(a1 + 1904);\n  if ( v4 != v5 )\n    GJBaseGameLayer::createGroundLayer(a1, v5, *(unsigned int *)(*(_QWORD *)(a1 + 3272) + 424LL));\n  result = *(_QWORD *)(a1 + 3976);\n  if ( !result )\n  {\n    v7 = *(_DWORD *)(a1 + 1908);\n    goto LABEL_10;\n  }\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 64LL))(result);\n  v7 = *(_DWORD *)(a1 + 1908);\n  if ( (_DWORD)result == v7 )\n  {\n    if ( *(_QWORD *)(a1 + 3976) )\n      return result;\n    v7 = result;\nLABEL_10:\n    if ( v7 < 1 )\n      return result;\n  }\n  return GJBaseGameLayer::createMiddleground(a1, v7);\n}", "assembly": "; \n; GJBaseGameLayer::syncBGTextures from 0x10029eeb8 to 0x10029ef70 (184 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::resetLevel @ 0x10014bf30\n; > LevelEditorLayer::onPlaytest @ 0x100404a40\n; > LevelEditorLayer::onStopPlaytest @ 0x1004052ac\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:02:12 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10029eeb8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10029eebc\nADD             X29, SP, #0x10                                         ; +0x8, 0x10029eec0\nMOV             X19, X0                                                ; +0xc, 0x10029eec4\nLDR             X0, [X0,#0xF68]                                        ; +0x10, 0x10029eec8\nLDR             X8, [X0]                                               ; +0x14, 0x10029eecc\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x10029eed0\nBLR             X8                                                     ; +0x1c, 0x10029eed4\nLDR             W1, [X19,#0x76C]                                       ; +0x20, 0x10029eed8\nCMP             W0, W1                                                 ; +0x24, 0x10029eedc\nB.EQ            loc_10029EEEC                                          ; +0x28, 0x10029eee0\nMOV             X0, X19                                                ; +0x2c, 0x10029eee4\nBL              GJBaseGameLayer__createBackground                      ; +0x30, 0x10029eee8\nLDR             X0, [X19,#0xF78]                                       ; +0x34, 0x10029eeec\nLDR             X8, [X0]                                               ; +0x38, 0x10029eef0\nLDR             X8, [X8,#0x40]                                         ; +0x3c, 0x10029eef4\nBLR             X8                                                     ; +0x40, 0x10029eef8\nLDR             W1, [X19,#0x770]                                       ; +0x44, 0x10029eefc\nCMP             W0, W1                                                 ; +0x48, 0x10029ef00\nB.EQ            loc_10029EF18                                          ; +0x4c, 0x10029ef04\nLDR             X8, [X19,#0xCC8]                                       ; +0x50, 0x10029ef08\nLDR             W2, [X8,#0x1A8]                                        ; +0x54, 0x10029ef0c\nMOV             X0, X19                                                ; +0x58, 0x10029ef10\nBL              GJBaseGameLayer__createGroundLayer                     ; +0x5c, 0x10029ef14\nLDR             X0, [X19,#0xF88]                                       ; +0x60, 0x10029ef18\nCBZ             X0, loc_10029EF48                                      ; +0x64, 0x10029ef1c\nLDR             X8, [X0]                                               ; +0x68, 0x10029ef20\nLDR             X8, [X8,#0x40]                                         ; +0x6c, 0x10029ef24\nBLR             X8                                                     ; +0x70, 0x10029ef28\nLDR             W1, [X19,#0x774]                                       ; +0x74, 0x10029ef2c\nCMP             W0, W1                                                 ; +0x78, 0x10029ef30\nB.NE            loc_10029EF54                                          ; +0x7c, 0x10029ef34\nLDR             X8, [X19,#0xF88]                                       ; +0x80, 0x10029ef38\nCBNZ            X8, loc_10029EF64                                      ; +0x84, 0x10029ef3c\nMOV             X1, X0                                                 ; +0x88, 0x10029ef40\nB               loc_10029EF4C                                          ; +0x8c, 0x10029ef44\nLDR             W1, [X19,#0x774]                                       ; +0x90, 0x10029ef48\nCMP             W1, #1                                                 ; +0x94, 0x10029ef4c\nB.LT            loc_10029EF64                                          ; +0x98, 0x10029ef50\nMOV             X0, X19                                                ; +0x9c, 0x10029ef54\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa0, 0x10029ef58\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa4, 0x10029ef5c\nB               GJBaseGameLayer__createMiddleground                    ; +0xa8, 0x10029ef60\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x10029ef64\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x10029ef68\nRET                                                                    ; +0xb4, 0x10029ef6c", "xrefs": ["PlayLayer::resetLevel @ 0x10014bf30", "LevelEditorLayer::onPlaytest @ 0x100404a40", "LevelEditorLayer::onStopPlaytest @ 0x1004052ac"], "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"}