{"type": "func", "start": 4297126996, "end": 4297127200, "name": "LevelOptionsLayer2::init", "pseudocode": "// \n// LevelOptionsLayer2::init from 0x10020f454 to 0x10020f520 (204 bytes)\n// \n// 1 xrefs:\n// > LevelOptionsLayer2::create @ 0x10020f20c\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:01:02 +0000\n// \n\n__int64 __fastcall LevelOptionsLayer2::init(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x19\n  __int64 v4; // x0\n  __int64 v5; // x21\n  float v7; // [xsp+0h] [xbp-30h] BYREF\n  __int64 v8; // [xsp+8h] [xbp-28h] BYREF\n\n  v3 = LevelOptionsLayer::init(a1, a2);\n  if ( (_DWORD)v3 )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v4, &v8);\n    v5 = cocos2d::CCLabelBMFont::create_1(\"Legacy Options\", \"goldFont.fnt\");\n    (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.7);\n    sub_1000262BC(\n      &v7,\n      *(float *)&v8 * 0.5,\n      (float)((float)(*((float *)&v8 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -20.0);\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL))(v5, &v7);\n    (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v5, 1);\n  }\n  return v3;\n}", "assembly": "; \n; LevelOptionsLayer2::init from 0x10020f454 to 0x10020f520 (204 bytes)\n; \n; 1 xrefs:\n; > LevelOptionsLayer2::create @ 0x10020f20c\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:01:02 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10020f454\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10020f458\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10020f45c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10020f460\nADD             X29, SP, #0x30                                         ; +0x10, 0x10020f464\nMOV             X20, X0                                                ; +0x14, 0x10020f468\nBL              LevelOptionsLayer__init                                ; +0x18, 0x10020f46c\nMOV             X19, X0                                                ; +0x1c, 0x10020f470\nCBZ             W0, loc_10020F508                                      ; +0x20, 0x10020f474\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x24, 0x10020f478\nADD             X8, SP, #0x30+var_28                                   ; +0x28, 0x10020f47c\nBL              cocos2d__CCDirector__getWinSize                        ; +0x2c, 0x10020f480\nADRL            X0, aLegacyOptions; \"Legacy Options\"                   ; +0x30, 0x10020f484\nADRL            X1, aGoldfontFnt; \"goldFont.fnt\"                       ; +0x38, 0x10020f48c\nBL              cocos2d__CCLabelBMFont__create_1                       ; +0x40, 0x10020f494\nMOV             X21, X0                                                ; +0x44, 0x10020f498\nLDR             X8, [X0]                                               ; +0x48, 0x10020f49c\nLDR             X8, [X8,#0xA0]                                         ; +0x4c, 0x10020f4a0\nADRP            X9, #dword_10075BD20@PAGE                              ; +0x50, 0x10020f4a4\nLDR             S0, [X9,#dword_10075BD20@PAGEOFF]                      ; +0x54, 0x10020f4a8\nBLR             X8                                                     ; +0x58, 0x10020f4ac\nFMOV            S1, #0.5                                               ; +0x5c, 0x10020f4b0\nLDP             S0, S2, [SP,#0x30+var_28]                              ; +0x60, 0x10020f4b4\nFMUL            S0, S0, S1                                             ; +0x64, 0x10020f4b8\nFMUL            S2, S2, S1                                             ; +0x68, 0x10020f4bc\nLDR             S3, [X20,#0x2E0]                                       ; +0x6c, 0x10020f4c0\nFMUL            S1, S3, S1                                             ; +0x70, 0x10020f4c4\nFADD            S1, S2, S1                                             ; +0x74, 0x10020f4c8\nFMOV            S2, #-20.0                                             ; +0x78, 0x10020f4cc\nFADD            S1, S1, S2                                             ; +0x7c, 0x10020f4d0\nMOV             X0, SP                                                 ; +0x80, 0x10020f4d4\nBL              sub_1000262BC                                          ; +0x84, 0x10020f4d8\nLDR             X8, [X21]                                              ; +0x88, 0x10020f4dc\nLDR             X8, [X8,#0xB8]                                         ; +0x8c, 0x10020f4e0\nMOV             X1, SP                                                 ; +0x90, 0x10020f4e4\nMOV             X0, X21                                                ; +0x94, 0x10020f4e8\nBLR             X8                                                     ; +0x98, 0x10020f4ec\nLDR             X0, [X20,#0x248]                                       ; +0x9c, 0x10020f4f0\nLDR             X8, [X0]                                               ; +0xa0, 0x10020f4f4\nLDR             X8, [X8,#0x1D0]                                        ; +0xa4, 0x10020f4f8\nMOV             X1, X21                                                ; +0xa8, 0x10020f4fc\nMOV             W2, #1                                                 ; +0xac, 0x10020f500\nBLR             X8                                                     ; +0xb0, 0x10020f504\nMOV             X0, X19                                                ; +0xb4, 0x10020f508\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb8, 0x10020f50c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xbc, 0x10020f510\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc0, 0x10020f514\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc4, 0x10020f518\nRET                                                                    ; +0xc8, 0x10020f51c", "xrefs": ["LevelOptionsLayer2::create @ 0x10020f20c"], "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"}