// // LevelBrowserLayer::onSafeMode from 0x100497f44 to 0x100498054 (272 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x1004966e8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:05:57 +0000 // __int64 __fastcall LevelBrowserLayer::onSafeMode(__int64 a1, __int64 a2) { __int64 result; // x0 __int64 v4; // x21 int v5; // w9 int v6; // w8 int v8; // w10 int v9; // w11 bool v10; // zf unsigned int v11; // w8 unsigned int v12; // w10 __int64 v13; // x0 char *v14; // x1 result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)result != dword_1009D45D0 ) { v4 = 0; dword_1009D45D0 = result; do { sub_100047BF8(*(_QWORD *)(a1 + 8 * v4 + 808), v4 == dword_1009D45D0); ++v4; } while ( v4 != 3 ); v5 = *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL); v6 = 1; if ( v5 != 22 && v5 != 33 ) { if ( v5 == 23 || v5 == 34 ) v6 = 2; else v6 = 0; } if ( v6 == 2 ) v8 = 23; else v8 = 21; if ( v6 == 2 ) v9 = 34; else v9 = 32; v10 = v6 == 1; if ( v6 == 1 ) v11 = 22; else v11 = v8; if ( v10 ) v12 = 33; else v12 = v9; if ( dword_1009D45D0 == 2 ) v13 = v11; else v13 = v12; v14 = GJSearchObject::create_2(v13); v14[404] = dword_1009D45D0 == 1; LevelBrowserLayer::loadPage(a1, v14); return LevelBrowserLayer::updateBackgroundColor(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source