{"type": "func", "start": 4296431232, "end": 4296431476, "name": "GJGameLoadingLayer::init", "pseudocode": "// \n// GJGameLoadingLayer::init from 0x100165680 to 0x100165774 (244 bytes)\n// \n// 2 xrefs:\n// > GJGameLoadingLayer::transitionToLoadingLayer @ 0x1001652a3\n// > GJGameLoadingLayer::create @ 0x1001653b1\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  bool result; // al\n  bool v5; // r12\n  cocos2d::CCLabelBMFont *v6; // r14\n  float v7; // [rsp+0h] [rbp-30h] BYREF\n  _BYTE v8[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  result = cocos2d::CCLayer::init(a1);\n  if ( result )\n  {\n    v5 = result;\n    if ( a2 )\n    {\n      a1->m_level = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n    a1->m_editor = a3;\n    cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v7);\n    v6 = cocos2d::CCLabelBMFont::create_3(\"Loading...\", \"bigFont.fnt\");\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->setScale)(v6, 0.69999999);\n    ((void (__fastcall *)(GJGameLoadingLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v6, 1);\n    sub_10028CBE0(v8, 1.0, 0.0);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v6->setAnchorPoint)(v6, v8);\n    sub_10028CBE0(v8, v7 + -20.0, 20.0);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v6->setPosition)(v6, v8);\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJGameLoadingLayer::init from 0x100165680 to 0x100165774 (244 bytes)\n; \n; 2 xrefs:\n; > GJGameLoadingLayer::transitionToLoadingLayer @ 0x1001652a3\n; > GJGameLoadingLayer::create @ 0x1001653b1\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\npush    rbp                                                            ; +0x0, 0x100165680\nmov     rbp, rsp                                                       ; +0x1, 0x100165681\npush    r15                                                            ; +0x4, 0x100165684\npush    r14                                                            ; +0x6, 0x100165686\npush    r12                                                            ; +0x8, 0x100165688\npush    rbx                                                            ; +0xa, 0x10016568a\nsub     rsp, 10h                                                       ; +0xb, 0x10016568b\nmov     r14d, edx                                                      ; +0xf, 0x10016568f\nmov     r15, rsi                                                       ; +0x12, 0x100165692\nmov     rbx, rdi                                                       ; +0x15, 0x100165695\ncall    cocos2d__CCLayer__init                                         ; +0x18, 0x100165698\ntest    al, al                                                         ; +0x1d, 0x10016569d\njz      loc_100165767                                                  ; +0x1f, 0x10016569f\nmov     r12d, eax                                                      ; +0x25, 0x1001656a5\ntest    r15, r15                                                       ; +0x28, 0x1001656a8\njz      short loc_1001656BC                                            ; +0x2b, 0x1001656ab\nmov     [rbx+198h], r15                                                ; +0x2d, 0x1001656ad\nmov     rdi, r15                                                       ; +0x34, 0x1001656b4\ncall    cocos2d__CCObject__retain                                      ; +0x37, 0x1001656b7\nmov     [rbx+1A0h], r14b                                               ; +0x3c, 0x1001656bc\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x43, 0x1001656c3\nlea     rdi, [rbp+var_30]                                              ; +0x48, 0x1001656c8\nmov     rsi, rax                                                       ; +0x4c, 0x1001656cc\ncall    cocos2d__CCDirector__getWinSize                                ; +0x4f, 0x1001656cf\nlea     rdi, aLoading; \"Loading...\"                                    ; +0x54, 0x1001656d4\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x5b, 0x1001656db\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x62, 0x1001656e2\nmov     r14, rax                                                       ; +0x67, 0x1001656e7\nmov     rax, [rax]                                                     ; +0x6a, 0x1001656ea\nmovss   xmm0, cs:dword_100814FC4                                       ; +0x6d, 0x1001656ed\nmov     rdi, r14                                                       ; +0x75, 0x1001656f5\ncall    qword ptr [rax+0A0h]                                           ; +0x78, 0x1001656f8\nmov     rax, [rbx]                                                     ; +0x7e, 0x1001656fe\nmov     rdi, rbx                                                       ; +0x81, 0x100165701\nmov     rsi, r14                                                       ; +0x84, 0x100165704\nmov     edx, 1                                                         ; +0x87, 0x100165707\ncall    qword ptr [rax+1C0h]                                           ; +0x8c, 0x10016570c\nlea     rbx, [rbp+var_28]                                              ; +0x92, 0x100165712\nmovss   xmm0, cs:alpha                                                 ; +0x96, 0x100165716\nxorps   xmm1, xmm1                                                     ; +0x9e, 0x10016571e\nmov     rdi, rbx                                                       ; +0xa1, 0x100165721\ncall    sub_10028CBE0                                                  ; +0xa4, 0x100165724\nmov     rax, [r14]                                                     ; +0xa9, 0x100165729\nmov     rdi, r14                                                       ; +0xac, 0x10016572c\nmov     rsi, rbx                                                       ; +0xaf, 0x10016572f\ncall    qword ptr [rax+118h]                                           ; +0xb2, 0x100165732\nmovss   xmm0, [rbp+var_30]                                             ; +0xb8, 0x100165738\naddss   xmm0, cs:dword_100815074                                       ; +0xbd, 0x10016573d\nmovss   xmm1, cs:dword_100814FF0                                       ; +0xc5, 0x100165745\nmov     rdi, rbx                                                       ; +0xcd, 0x10016574d\ncall    sub_10028CBE0                                                  ; +0xd0, 0x100165750\nmov     rax, [r14]                                                     ; +0xd5, 0x100165755\nmov     rdi, r14                                                       ; +0xd8, 0x100165758\nmov     rsi, rbx                                                       ; +0xdb, 0x10016575b\ncall    qword ptr [rax+0B8h]                                           ; +0xde, 0x10016575e\nmov     eax, r12d                                                      ; +0xe4, 0x100165764\nadd     rsp, 10h                                                       ; +0xe7, 0x100165767\npop     rbx                                                            ; +0xeb, 0x10016576b\npop     r12                                                            ; +0xec, 0x10016576c\npop     r14                                                            ; +0xee, 0x10016576e\npop     r15                                                            ; +0xf0, 0x100165770\npop     rbp                                                            ; +0xf2, 0x100165772\nretn                                                                   ; +0xf3, 0x100165773", "xrefs": ["GJGameLoadingLayer::transitionToLoadingLayer @ 0x1001652a3", "GJGameLoadingLayer::create @ 0x1001653b1"], "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"}