{"type": "func", "start": 5371838208, "end": 5371838312, "name": "LevelInfoLayer::levelUpdateFinished", "pseudocode": "// \n// LevelInfoLayer::levelUpdateFinished from 0x1402fbf00 to 0x1402fbf68 (104 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140586d80\n// > <???> @ 0x1406d419c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nvoid LevelInfoLayer::levelUpdateFinished(LevelInfoLayer *a1, GJGameLevel *a2, UpdateResponse a3)\n{\n  __int64 v3; // rax\n\n  v3 = *(_QWORD *)&a1->m_obPosition.y;\n  if ( !v3 || *(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332) == a2->m_levelID.random - a2->m_levelID.seed )\n  {\n    if ( !BYTE4(a1->m_pChildren) )\n      LevelInfoLayer::showUpdateAlert(a1, a3);\n    ((void (__fastcall *)(CustomSongWidget **, GJGameLevel *, _QWORD))a1[-1].m_songWidget->__vftable)(\n      &a1[-1].m_songWidget,\n      a2,\n      *(_QWORD *)&a3);\n    BYTE4(a1->m_pChildren) = 0;\n  }\n}", "assembly": "; \n; LevelInfoLayer::levelUpdateFinished from 0x1402fbf00 to 0x1402fbf68 (104 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140586d80\n; > <???> @ 0x1406d419c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402fbf00\npush    rdi                                                            ; +0x5, 0x1402fbf05\nsub     rsp, 20h                                                       ; +0x6, 0x1402fbf06\nmov     rax, [rcx+50h]                                                 ; +0xa, 0x1402fbf0a\nmov     rdi, rdx                                                       ; +0xe, 0x1402fbf0e\nmov     rbx, rcx                                                       ; +0x11, 0x1402fbf11\ntest    rax, rax                                                       ; +0x14, 0x1402fbf14\njz      short loc_1402FBF38                                            ; +0x17, 0x1402fbf17\nmov     r9d, [rax+148h]                                                ; +0x19, 0x1402fbf19\nsub     r9d, [rax+14Ch]                                                ; +0x20, 0x1402fbf20\nmov     eax, [rdx+148h]                                                ; +0x27, 0x1402fbf27\nsub     eax, [rdx+14Ch]                                                ; +0x2d, 0x1402fbf2d\ncmp     r9d, eax                                                       ; +0x33, 0x1402fbf33\njnz     short loc_1402FBF5D                                            ; +0x36, 0x1402fbf36\ncmp     byte ptr [rcx+0D4h], 0                                         ; +0x38, 0x1402fbf38\njnz     short loc_1402FBF49                                            ; +0x3f, 0x1402fbf3f\nmov     edx, r8d                                                       ; +0x41, 0x1402fbf41\ncall    LevelInfoLayer__showUpdateAlert                                ; +0x44, 0x1402fbf44\nmov     rax, [rbx-8]                                                   ; +0x49, 0x1402fbf49\nlea     rcx, [rbx-8]                                                   ; +0x4d, 0x1402fbf4d\nmov     rdx, rdi                                                       ; +0x51, 0x1402fbf51\ncall    qword ptr [rax]                                                ; +0x54, 0x1402fbf54\nmov     byte ptr [rbx+0D4h], 0                                         ; +0x56, 0x1402fbf56\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5d, 0x1402fbf5d\nadd     rsp, 20h                                                       ; +0x62, 0x1402fbf62\npop     rdi                                                            ; +0x66, 0x1402fbf66\nretn                                                                   ; +0x67, 0x1402fbf67", "xrefs": ["<???> @ 0x140586d80", "<???> @ 0x1406d419c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}