{"type": "func", "start": 4297102244, "end": 4297102492, "name": "GJGameLoadingLayer::init", "pseudocode": "// \n// GJGameLoadingLayer::init from 0x1002093a4 to 0x10020949c (248 bytes)\n// \n// 1 xrefs:\n// > GJGameLoadingLayer::create @ 0x1002092c0\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\nbool __fastcall GJGameLoadingLayer::init(GJGameLoadingLayer *a1, GJGameLevel *a2, bool a3)\n{\n  _BOOL4 v6; // w19\n  cocos2d::CCDirector *v7; // x0\n  cocos2d::CCLabelBMFont *v8; // x21\n  __n128 v9; // q0\n  __n128 v10; // q1\n  __n128 v11; // q0\n  __n128 v12; // q1\n  _DWORD v14[4]; // [xsp+0h] [xbp-30h] BYREF\n\n  v6 = cocos2d::CCLayer::init(a1);\n  if ( v6 )\n  {\n    if ( a2 )\n    {\n      a1->m_level = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n    a1->m_editor = a3;\n    v7 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v7);\n    v8 = cocos2d::CCLabelBMFont::create_1(\"Loading...\", \"bigFont.fnt\");\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v8->setScale)(v8, 0.7);\n    v9 = ((__n128 (__fastcall *)(GJGameLoadingLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v8, 1);\n    v9.n128_u32[0] = 1.0;\n    v10.n128_u32[0] = 0;\n    sub_100022980(v9, v10, v14);\n    v11 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v8->setAnchorPoint)(v8, v14);\n    v11.n128_f32[0] = *(float *)&v14[2] + -20.0;\n    v12.n128_u32[0] = 20.0;\n    sub_100022980(v11, v12, v14);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v8->setPosition)(v8, v14);\n  }\n  return v6;\n}", "assembly": "; \n; GJGameLoadingLayer::init from 0x1002093a4 to 0x10020949c (248 bytes)\n; \n; 1 xrefs:\n; > GJGameLoadingLayer::create @ 0x1002092c0\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1002093a4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1002093a8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002093ac\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002093b0\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002093b4\nMOV             X21, X2                                                ; +0x14, 0x1002093b8\nMOV             X22, X1                                                ; +0x18, 0x1002093bc\nMOV             X20, X0                                                ; +0x1c, 0x1002093c0\nBL              cocos2d__CCLayer__init                                 ; +0x20, 0x1002093c4\nMOV             X19, X0                                                ; +0x24, 0x1002093c8\nCBZ             W0, loc_100209484                                      ; +0x28, 0x1002093cc\nCBZ             X22, loc_1002093E0                                     ; +0x2c, 0x1002093d0\nSTR             X22, [X20,#0x198]                                      ; +0x30, 0x1002093d4\nMOV             X0, X22                                                ; +0x34, 0x1002093d8\nBL              cocos2d__CCObject__retain                              ; +0x38, 0x1002093dc\nSTRB            W21, [X20,#0x1A0]                                      ; +0x3c, 0x1002093e0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x40, 0x1002093e4\nADD             X8, SP, #0x30+var_28                                   ; +0x44, 0x1002093e8\nBL              cocos2d__CCDirector__getWinSize                        ; +0x48, 0x1002093ec\nADRL            X0, aLoading_0; \"Loading...\"                           ; +0x4c, 0x1002093f0\nADRL            X1, aBigfontFnt; \"bigFont.fnt\"                         ; +0x54, 0x1002093f8\nBL              cocos2d__CCLabelBMFont__create_1                       ; +0x5c, 0x100209400\nMOV             X21, X0                                                ; +0x60, 0x100209404\nLDR             X8, [X0]                                               ; +0x64, 0x100209408\nLDR             X8, [X8,#0xA0]                                         ; +0x68, 0x10020940c\nADRP            X9, #dword_100635380@PAGE                              ; +0x6c, 0x100209410\nLDR             S0, [X9,#dword_100635380@PAGEOFF]                      ; +0x70, 0x100209414\nBLR             X8                                                     ; +0x74, 0x100209418\nLDR             X8, [X20]                                              ; +0x78, 0x10020941c\nLDR             X8, [X8,#0x1C0]                                        ; +0x7c, 0x100209420\nMOV             X0, X20                                                ; +0x80, 0x100209424\nMOV             X1, X21                                                ; +0x84, 0x100209428\nMOV             W2, #1                                                 ; +0x88, 0x10020942c\nBLR             X8                                                     ; +0x8c, 0x100209430\nMOV             X0, SP                                                 ; +0x90, 0x100209434\nFMOV            S0, #1.0                                               ; +0x94, 0x100209438\nFMOV            S1, WZR                                                ; +0x98, 0x10020943c\nBL              sub_100022980                                          ; +0x9c, 0x100209440\nLDR             X8, [X21]                                              ; +0xa0, 0x100209444\nLDR             X8, [X8,#0x118]                                        ; +0xa4, 0x100209448\nMOV             X1, SP                                                 ; +0xa8, 0x10020944c\nMOV             X0, X21                                                ; +0xac, 0x100209450\nBLR             X8                                                     ; +0xb0, 0x100209454\nLDR             S0, [SP,#0x30+var_28]                                  ; +0xb4, 0x100209458\nFMOV            S1, #-20.0                                             ; +0xb8, 0x10020945c\nFADD            S0, S0, S1                                             ; +0xbc, 0x100209460\nMOV             X0, SP                                                 ; +0xc0, 0x100209464\nFMOV            S1, #20.0                                              ; +0xc4, 0x100209468\nBL              sub_100022980                                          ; +0xc8, 0x10020946c\nLDR             X8, [X21]                                              ; +0xcc, 0x100209470\nLDR             X8, [X8,#0xB8]                                         ; +0xd0, 0x100209474\nMOV             X1, SP                                                 ; +0xd4, 0x100209478\nMOV             X0, X21                                                ; +0xd8, 0x10020947c\nBLR             X8                                                     ; +0xdc, 0x100209480\nMOV             X0, X19                                                ; +0xe0, 0x100209484\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xe4, 0x100209488\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xe8, 0x10020948c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xec, 0x100209490\nADD             SP, SP, #0x40 ; '@'                                    ; +0xf0, 0x100209494\nRET                                                                    ; +0xf4, 0x100209498", "xrefs": ["GJGameLoadingLayer::create @ 0x1002092c0"], "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"}