{"type": "func", "start": 5371850256, "end": 5371850416, "name": "LevelInfoLayer::onLevelOptions", "pseudocode": "// \n// LevelInfoLayer::onLevelOptions from 0x1402fee10 to 0x1402feeb0 (160 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f9479\n// > <???> @ 0x1406d42ec\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\nvoid LevelInfoLayer::onLevelOptions(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  char v2; // al\n  GJGameLevel *m_level; // rdx\n  bool v5; // bl\n  GameLevelOptionsLayer *v6; // rax\n  _BYTE v7[16]; // [rsp+28h] [rbp-30h] BYREF\n  __int64 v8; // [rsp+38h] [rbp-20h]\n\n  v2 = 0;\n  v5 = true;\n  if ( !a1->m_isBusy )\n  {\n    m_level = a1->m_level;\n    if ( m_level->m_levelType != SearchResult )\n    {\n      sub_14003BDB0((__int64)v7, (__int64)&m_level->m_levelString);\n      v2 = 3;\n      if ( v8 )\n        v5 = false;\n    }\n  }\n  if ( (v2 & 1) != 0 )\n    sub_14003A830((__int64)v7);\n  if ( !v5 )\n  {\n    v6 = GameLevelOptionsLayer::create(a1->m_level);\n    v6->show(v6);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLevelOptions from 0x1402fee10 to 0x1402feeb0 (160 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f9479\n; > <???> @ 0x1406d42ec\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_8], rbx                                               ; +0x0, 0x1402fee10\npush    rdi                                                            ; +0x5, 0x1402fee15\nsub     rsp, 50h                                                       ; +0x6, 0x1402fee16\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402fee1a\nxor     rax, rsp                                                       ; +0x11, 0x1402fee21\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x1402fee24\nxor     eax, eax                                                       ; +0x19, 0x1402fee29\nmov     rdi, rcx                                                       ; +0x1b, 0x1402fee2b\nmov     [rsp+58h+var_38], eax                                          ; +0x1e, 0x1402fee2e\ncmp     [rcx+1E0h], al                                                 ; +0x22, 0x1402fee32\njnz     short loc_1402FEE6C                                            ; +0x28, 0x1402fee38\nmov     rdx, [rcx+1F0h]                                                ; +0x2a, 0x1402fee3a\ncmp     dword ptr [rdx+454h], 4                                        ; +0x31, 0x1402fee41\njz      short loc_1402FEE6C                                            ; +0x38, 0x1402fee48\nadd     rdx, 198h                                                      ; +0x3a, 0x1402fee4a\nlea     rcx, [rsp+58h+var_30]                                          ; +0x41, 0x1402fee51\ncall    sub_14003BDB0                                                  ; +0x46, 0x1402fee56\ncmp     [rsp+58h+var_20], 0                                            ; +0x4b, 0x1402fee5b\nmov     eax, 3                                                         ; +0x51, 0x1402fee61\njz      short loc_1402FEE6C                                            ; +0x56, 0x1402fee66\nxor     bl, bl                                                         ; +0x58, 0x1402fee68\njmp     short loc_1402FEE6E                                            ; +0x5a, 0x1402fee6a\nmov     bl, 1                                                          ; +0x5c, 0x1402fee6c\ntest    al, 1                                                          ; +0x5e, 0x1402fee6e\njz      short loc_1402FEE7C                                            ; +0x60, 0x1402fee70\nlea     rcx, [rsp+58h+var_30]                                          ; +0x62, 0x1402fee72\ncall    sub_14003A830                                                  ; +0x67, 0x1402fee77\ntest    bl, bl                                                         ; +0x6c, 0x1402fee7c\njnz     short loc_1402FEE98                                            ; +0x6e, 0x1402fee7e\nmov     rcx, [rdi+1F0h]                                                ; +0x70, 0x1402fee80\ncall    GameLevelOptionsLayer__create                                  ; +0x77, 0x1402fee87\nmov     rcx, rax                                                       ; +0x7c, 0x1402fee8c\nmov     rdx, [rax]                                                     ; +0x7f, 0x1402fee8f\ncall    qword ptr [rdx+410h]                                           ; +0x82, 0x1402fee92\nmov     rcx, [rsp+58h+var_10]                                          ; +0x88, 0x1402fee98\nxor     rcx, rsp; StackCookie                                          ; +0x8d, 0x1402fee9d\ncall    __security_check_cookie                                        ; +0x90, 0x1402feea0\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x95, 0x1402feea5\nadd     rsp, 50h                                                       ; +0x9a, 0x1402feeaa\npop     rdi                                                            ; +0x9e, 0x1402feeae\nretn                                                                   ; +0x9f, 0x1402feeaf", "xrefs": ["LevelInfoLayer::init @ 0x1402f9479", "<???> @ 0x1406d42ec"], "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"}