{"type": "func", "start": 4296297776, "end": 4296298020, "name": "GJGameLoadingLayer::init", "pseudocode": "// \n// GJGameLoadingLayer::init from 0x100144d30 to 0x100144e24 (244 bytes)\n// \n// 2 xrefs:\n// > GJGameLoadingLayer::transitionToLoadingLayer @ 0x100144953\n// > GJGameLoadingLayer::create @ 0x100144a61\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:57 +0000\n// \n\n__int64 __fastcall GJGameLoadingLayer::init(__int64 a1, __int64 a2, char a3)\n{\n  _BYTE *v4; // rbx\n  __int64 result; // rax\n  unsigned int v6; // r12d\n  __int64 v7; // rax\n  __int64 v8; // r14\n  float v9; // [rsp+0h] [rbp-30h] BYREF\n  _BYTE v10[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  v4 = (_BYTE *)a1;\n  result = cocos2d::CCLayer::init();\n  if ( (_BYTE)result )\n  {\n    v6 = result;\n    if ( a2 )\n    {\n      *(_QWORD *)(a1 + 408) = a2;\n      a1 = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n    v4[416] = a3;\n    v7 = cocos2d::CCDirector::sharedDirector(a1, a2);\n    cocos2d::CCDirector::getWinSize(&v9, v7);\n    v8 = cocos2d::CCLabelBMFont::create_3(\"Loading...\", \"bigFont.fnt\");\n    (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.69999999);\n    (*(void (__fastcall **)(_BYTE *, __int64, __int64))(*(_QWORD *)v4 + 464LL))(v4, v8, 1);\n    sub_100278250(v10, 1.0, 0.0);\n    (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 296LL))(v8, v10);\n    sub_100278250(v10, v9 + -20.0, 20.0);\n    (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL))(v8, v10);\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; GJGameLoadingLayer::init from 0x100144d30 to 0x100144e24 (244 bytes)\n; \n; 2 xrefs:\n; > GJGameLoadingLayer::transitionToLoadingLayer @ 0x100144953\n; > GJGameLoadingLayer::create @ 0x100144a61\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x100144d30\nmov     rbp, rsp                                                       ; +0x1, 0x100144d31\npush    r15                                                            ; +0x4, 0x100144d34\npush    r14                                                            ; +0x6, 0x100144d36\npush    r12                                                            ; +0x8, 0x100144d38\npush    rbx                                                            ; +0xa, 0x100144d3a\nsub     rsp, 10h                                                       ; +0xb, 0x100144d3b\nmov     r14d, edx                                                      ; +0xf, 0x100144d3f\nmov     r15, rsi                                                       ; +0x12, 0x100144d42\nmov     rbx, rdi                                                       ; +0x15, 0x100144d45\ncall    cocos2d__CCLayer__init                                         ; +0x18, 0x100144d48\ntest    al, al                                                         ; +0x1d, 0x100144d4d\njz      loc_100144E17                                                  ; +0x1f, 0x100144d4f\nmov     r12d, eax                                                      ; +0x25, 0x100144d55\ntest    r15, r15                                                       ; +0x28, 0x100144d58\njz      short loc_100144D6C                                            ; +0x2b, 0x100144d5b\nmov     [rbx+198h], r15                                                ; +0x2d, 0x100144d5d\nmov     rdi, r15                                                       ; +0x34, 0x100144d64\ncall    cocos2d__CCObject__retain                                      ; +0x37, 0x100144d67\nmov     [rbx+1A0h], r14b                                               ; +0x3c, 0x100144d6c\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x43, 0x100144d73\nlea     rdi, [rbp+var_30]                                              ; +0x48, 0x100144d78\nmov     rsi, rax                                                       ; +0x4c, 0x100144d7c\ncall    cocos2d__CCDirector__getWinSize                                ; +0x4f, 0x100144d7f\nlea     rdi, aLoading; \"Loading...\"                                    ; +0x54, 0x100144d84\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x5b, 0x100144d8b\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x62, 0x100144d92\nmov     r14, rax                                                       ; +0x67, 0x100144d97\nmov     rax, [rax]                                                     ; +0x6a, 0x100144d9a\nmovss   xmm0, cs:dword_100A0374C                                       ; +0x6d, 0x100144d9d\nmov     rdi, r14                                                       ; +0x75, 0x100144da5\ncall    qword ptr [rax+0A0h]                                           ; +0x78, 0x100144da8\nmov     rax, [rbx]                                                     ; +0x7e, 0x100144dae\nmov     rdi, rbx                                                       ; +0x81, 0x100144db1\nmov     rsi, r14                                                       ; +0x84, 0x100144db4\nmov     edx, 1                                                         ; +0x87, 0x100144db7\ncall    qword ptr [rax+1D0h]                                           ; +0x8c, 0x100144dbc\nlea     rbx, [rbp+var_28]                                              ; +0x92, 0x100144dc2\nmovss   xmm0, cs:alpha                                                 ; +0x96, 0x100144dc6\nxorps   xmm1, xmm1                                                     ; +0x9e, 0x100144dce\nmov     rdi, rbx                                                       ; +0xa1, 0x100144dd1\ncall    sub_100278250                                                  ; +0xa4, 0x100144dd4\nmov     rax, [r14]                                                     ; +0xa9, 0x100144dd9\nmov     rdi, r14                                                       ; +0xac, 0x100144ddc\nmov     rsi, rbx                                                       ; +0xaf, 0x100144ddf\ncall    qword ptr [rax+128h]                                           ; +0xb2, 0x100144de2\nmovss   xmm0, [rbp+var_30]                                             ; +0xb8, 0x100144de8\naddss   xmm0, cs:dword_100A03598                                       ; +0xbd, 0x100144ded\nmovss   xmm1, cs:dword_100A0359C                                       ; +0xc5, 0x100144df5\nmov     rdi, rbx                                                       ; +0xcd, 0x100144dfd\ncall    sub_100278250                                                  ; +0xd0, 0x100144e00\nmov     rax, [r14]                                                     ; +0xd5, 0x100144e05\nmov     rdi, r14                                                       ; +0xd8, 0x100144e08\nmov     rsi, rbx                                                       ; +0xdb, 0x100144e0b\ncall    qword ptr [rax+0B8h]                                           ; +0xde, 0x100144e0e\nmov     eax, r12d                                                      ; +0xe4, 0x100144e14\nadd     rsp, 10h                                                       ; +0xe7, 0x100144e17\npop     rbx                                                            ; +0xeb, 0x100144e1b\npop     r12                                                            ; +0xec, 0x100144e1c\npop     r14                                                            ; +0xee, 0x100144e1e\npop     r15                                                            ; +0xf0, 0x100144e20\npop     rbp                                                            ; +0xf2, 0x100144e22\nretn                                                                   ; +0xf3, 0x100144e23", "xrefs": ["GJGameLoadingLayer::transitionToLoadingLayer @ 0x100144953", "GJGameLoadingLayer::create @ 0x100144a61"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}