{"type": "func", "start": 4298635292, "end": 4298635640, "name": "GameLevelOptionsLayer::init", "pseudocode": "// \n// GameLevelOptionsLayer::init from 0x10037f81c to 0x10037f978 (348 bytes)\n// \n// 1 xrefs:\n// > GameLevelOptionsLayer::create @ 0x10037f7d0\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:03:29 +0000\n// \n\n__int64 __fastcall GameLevelOptionsLayer::init(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x20\n  __int64 v4; // x0\n  char *v5; // x21\n  __int64 v6; // x22\n  float v8; // [xsp+8h] [xbp-68h] BYREF\n  __int64 v9; // [xsp+10h] [xbp-60h] BYREF\n  void *__p[2]; // [xsp+18h] [xbp-58h] BYREF\n  char v11; // [xsp+2Fh] [xbp-41h]\n  void *v12[2]; // [xsp+30h] [xbp-40h] BYREF\n  char v13; // [xsp+47h] [xbp-29h]\n  __int64 v14; // [xsp+48h] [xbp-28h] BYREF\n\n  *(_DWORD *)(a1 + 1012) = 1110704128;\n  *(_DWORD *)(a1 + 1032) = 1053609165;\n  if ( a2 )\n  {\n    *(_QWORD *)(a1 + 1128) = a2;\n    cocos2d::CCObject::retain(a2);\n  }\n  v3 = GJOptionsLayer::init(a1, 2, 280.0);\n  if ( (_DWORD)v3 )\n  {\n    SetupTriggerPopup::preSetup((_BYTE *)a1);\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v4, &v14);\n    sub_100009900(v12, \"Level Options\");\n    sub_100009900(\n      __p,\n      \"Adjust visual and gameplay settings for this level. These changes <cl>only</c> affect how <cg>you</c> experience t\"\n      \"he level and <cr>do not</c> impact <cy>other players</c>.\");\n    v5 = InfoAlertButton::create((__int64)v12, (__int64)__p, 0.8);\n    if ( v11 < 0 )\n      operator delete(__p[0]);\n    if ( v13 < 0 )\n      operator delete(v12[0]);\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v5);\n    v6 = *(_QWORD *)(a1 + 552);\n    sub_1000262BC(\n      &v8,\n      (float)((float)(*(float *)&v14 * 0.5) + (float)(*(float *)(a1 + 732) * 0.5)) + -18.0,\n      (float)((float)(*((float *)&v14 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) + -18.0);\n    cocos2d::CCNode::convertToNodeSpace(v6, (__int64)&v8, &v9);\n    (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v9);\n    SetupTriggerPopup::postSetup((_BYTE *)a1);\n  }\n  return v3;\n}", "assembly": "; \n; GameLevelOptionsLayer::init from 0x10037f81c to 0x10037f978 (348 bytes)\n; \n; 1 xrefs:\n; > GameLevelOptionsLayer::create @ 0x10037f7d0\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:03:29 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x10037f81c\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x10037f820\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x10037f824\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x10037f828\nADD             X29, SP, #0x70                                         ; +0x10, 0x10037f82c\nMOV             X19, X0                                                ; +0x14, 0x10037f830\nMOV             W8, #0x42340000                                        ; +0x18, 0x10037f834\nSTR             W8, [X0,#0x3F4]                                        ; +0x1c, 0x10037f838\nMOV             W8, #0x3ECCCCCD                                        ; +0x20, 0x10037f83c\nSTR             W8, [X0,#0x408]                                        ; +0x28, 0x10037f844\nCBZ             X1, loc_10037F858                                      ; +0x2c, 0x10037f848\nSTR             X1, [X19,#0x468]                                       ; +0x30, 0x10037f84c\nMOV             X0, X1                                                 ; +0x34, 0x10037f850\nBL              cocos2d__CCObject__retain                              ; +0x38, 0x10037f854\nMOV             W8, #0x438C0000                                        ; +0x3c, 0x10037f858\nFMOV            S0, W8                                                 ; +0x40, 0x10037f85c\nMOV             X0, X19                                                ; +0x44, 0x10037f860\nMOV             W1, #2                                                 ; +0x48, 0x10037f864\nBL              GJOptionsLayer__init                                   ; +0x4c, 0x10037f868\nMOV             X20, X0                                                ; +0x50, 0x10037f86c\nCBZ             W0, loc_10037F960                                      ; +0x54, 0x10037f870\nMOV             X0, X19                                                ; +0x58, 0x10037f874\nBL              SetupTriggerPopup__preSetup                            ; +0x5c, 0x10037f878\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x60, 0x10037f87c\nSUB             X8, X29, #-var_28                                      ; +0x64, 0x10037f880\nBL              cocos2d__CCDirector__getWinSize                        ; +0x68, 0x10037f884\nADRL            X1, aLevelOptions; \"Level Options\"                     ; +0x6c, 0x10037f888\nADD             X0, SP, #0x70+var_40; int                              ; +0x74, 0x10037f890\nBL              sub_100009900                                          ; +0x78, 0x10037f894\nADRL            X1, aAdjustVisualAn; \"Adjust visual and gameplay settings for\"... ; +0x7c, 0x10037f898\nADD             X0, SP, #0x70+__p; int                                 ; +0x84, 0x10037f8a0\nBL              sub_100009900                                          ; +0x88, 0x10037f8a4\nADRP            X8, #dword_10075BCE0@PAGE                              ; +0x8c, 0x10037f8a8\nLDR             S0, [X8,#dword_10075BCE0@PAGEOFF]                      ; +0x90, 0x10037f8ac\nADD             X0, SP, #0x70+var_40                                   ; +0x94, 0x10037f8b0\nADD             X1, SP, #0x70+__p                                      ; +0x98, 0x10037f8b4\nBL              InfoAlertButton__create                                ; +0x9c, 0x10037f8b8\nMOV             X21, X0                                                ; +0xa0, 0x10037f8bc\nLDRSB           W8, [SP,#0x70+var_41]                                  ; +0xa4, 0x10037f8c0\nTBZ             W8, #0x1F, loc_10037F8D0                               ; +0xa8, 0x10037f8c4\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xac, 0x10037f8c8\nBL              __ZdlPv; operator delete(void *)                       ; +0xb0, 0x10037f8cc\nLDRSB           W8, [SP,#0x70+var_29]                                  ; +0xb4, 0x10037f8d0\nTBZ             W8, #0x1F, loc_10037F8E0                               ; +0xb8, 0x10037f8d4\nLDR             X0, [SP,#0x70+var_40]; __p                             ; +0xbc, 0x10037f8d8\nBL              __ZdlPv; operator delete(void *)                       ; +0xc0, 0x10037f8dc\nLDR             X0, [X19,#0x228]                                       ; +0xc4, 0x10037f8e0\nLDR             X8, [X0]                                               ; +0xc8, 0x10037f8e4\nLDR             X8, [X8,#0x1C8]                                        ; +0xcc, 0x10037f8e8\nMOV             X1, X21                                                ; +0xd0, 0x10037f8ec\nBLR             X8                                                     ; +0xd4, 0x10037f8f0\nLDR             X22, [X19,#0x228]                                      ; +0xd8, 0x10037f8f4\nFMOV            S1, #0.5                                               ; +0xdc, 0x10037f8f8\nLDP             S0, S2, [X29,#var_28]                                  ; +0xe0, 0x10037f8fc\nFMUL            S0, S0, S1                                             ; +0xe4, 0x10037f900\nLDR             S3, [X19,#0x2DC]                                       ; +0xe8, 0x10037f904\nFMUL            S3, S3, S1                                             ; +0xec, 0x10037f908\nFADD            S0, S0, S3                                             ; +0xf0, 0x10037f90c\nFMOV            S3, #-18.0                                             ; +0xf4, 0x10037f910\nFADD            S0, S0, S3                                             ; +0xf8, 0x10037f914\nFMUL            S2, S2, S1                                             ; +0xfc, 0x10037f918\nLDR             S4, [X19,#0x2E0]                                       ; +0x100, 0x10037f91c\nFMUL            S1, S4, S1                                             ; +0x104, 0x10037f920\nFADD            S1, S2, S1                                             ; +0x108, 0x10037f924\nFADD            S1, S1, S3                                             ; +0x10c, 0x10037f928\nADD             X0, SP, #0x70+var_68                                   ; +0x110, 0x10037f92c\nBL              sub_1000262BC                                          ; +0x114, 0x10037f930\nADD             X8, SP, #0x70+var_60                                   ; +0x118, 0x10037f934\nADD             X1, SP, #0x70+var_68                                   ; +0x11c, 0x10037f938\nMOV             X0, X22                                                ; +0x120, 0x10037f93c\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x124, 0x10037f940\nLDR             X8, [X21]                                              ; +0x128, 0x10037f944\nLDR             X8, [X8,#0xB8]                                         ; +0x12c, 0x10037f948\nADD             X1, SP, #0x70+var_60                                   ; +0x130, 0x10037f94c\nMOV             X0, X21                                                ; +0x134, 0x10037f950\nBLR             X8                                                     ; +0x138, 0x10037f954\nMOV             X0, X19                                                ; +0x13c, 0x10037f958\nBL              SetupTriggerPopup__postSetup                           ; +0x140, 0x10037f95c\nMOV             X0, X20                                                ; +0x144, 0x10037f960\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x148, 0x10037f964\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x14c, 0x10037f968\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x150, 0x10037f96c\nADD             SP, SP, #0x80                                          ; +0x154, 0x10037f970\nRET                                                                    ; +0x158, 0x10037f974", "xrefs": ["GameLevelOptionsLayer::create @ 0x10037f7d0"], "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"}