{"type": "func", "start": 4296430368, "end": 4296430557, "name": "GJGameLoadingLayer::create", "pseudocode": "// \n// GJGameLoadingLayer::create from 0x100165320 to 0x1001653dd (189 bytes)\n// \n// 0 xrefs:\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\nGJGameLoadingLayer *__fastcall GJGameLoadingLayer::create(GJGameLevel *a1, bool a2)\n{\n  GJGameLoadingLayer *v2; // rbx\n\n  v2 = (GJGameLoadingLayer *)operator new(0x1A8u);\n  cocos2d::CCLayer::CCLayer(v2);\n  v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGameLoadingLayer_vtbl *)off_1008C1B10;\n  v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1008C1F90;\n  v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1008C2000;\n  v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1008C2018;\n  v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1008C2038;\n  v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1008C2058;\n  v2->m_level = nullptr;\n  v2->m_editor = 0;\n  if ( GJGameLoadingLayer::init(v2, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJGameLoadingLayer *))v2->~GJGameLoadingLayer_0)(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; GJGameLoadingLayer::create from 0x100165320 to 0x1001653dd (189 bytes)\n; \n; 0 xrefs:\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, 0x100165320\nmov     rbp, rsp                                                       ; +0x1, 0x100165321\npush    r15                                                            ; +0x4, 0x100165324\npush    r14                                                            ; +0x6, 0x100165326\npush    rbx                                                            ; +0x8, 0x100165328\npush    rax                                                            ; +0x9, 0x100165329\nmov     r15d, esi                                                      ; +0xa, 0x10016532a\nmov     r14, rdi                                                       ; +0xd, 0x10016532d\nmov     edi, 1A8h; __sz                                                ; +0x10, 0x100165330\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x100165335\nmov     rbx, rax                                                       ; +0x1a, 0x10016533a\nmov     rdi, rax                                                       ; +0x1d, 0x10016533d\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x20, 0x100165340\nlea     rax, off_1008C1B10                                             ; +0x25, 0x100165345\nmov     [rbx], rax                                                     ; +0x2c, 0x10016534c\nlea     rax, off_1008C1F90                                             ; +0x2f, 0x10016534f\nmov     [rbx+140h], rax                                                ; +0x36, 0x100165356\nlea     rax, off_1008C2000                                             ; +0x3d, 0x10016535d\nmov     [rbx+148h], rax                                                ; +0x44, 0x100165364\nlea     rax, off_1008C2018                                             ; +0x4b, 0x10016536b\nmov     [rbx+150h], rax                                                ; +0x52, 0x100165372\nlea     rax, off_1008C2038                                             ; +0x59, 0x100165379\nmov     [rbx+158h], rax                                                ; +0x60, 0x100165380\nlea     rax, off_1008C2058                                             ; +0x67, 0x100165387\nmov     [rbx+160h], rax                                                ; +0x6e, 0x10016538e\nmov     qword ptr [rbx+198h], 0                                        ; +0x75, 0x100165395\nmov     byte ptr [rbx+1A0h], 0                                         ; +0x80, 0x1001653a0\nmovzx   edx, r15b                                                      ; +0x87, 0x1001653a7\nmov     rdi, rbx                                                       ; +0x8b, 0x1001653ab\nmov     rsi, r14                                                       ; +0x8e, 0x1001653ae\ncall    GJGameLoadingLayer__init                                       ; +0x91, 0x1001653b1\ntest    al, al                                                         ; +0x96, 0x1001653b6\njz      short loc_1001653C4                                            ; +0x98, 0x1001653b8\nmov     rdi, rbx                                                       ; +0x9a, 0x1001653ba\ncall    cocos2d__CCObject__autorelease                                 ; +0x9d, 0x1001653bd\njmp     short loc_1001653CF                                            ; +0xa2, 0x1001653c2\nmov     rax, [rbx]                                                     ; +0xa4, 0x1001653c4\nmov     rdi, rbx                                                       ; +0xa7, 0x1001653c7\ncall    qword ptr [rax+10h]                                            ; +0xaa, 0x1001653ca\nxor     ebx, ebx                                                       ; +0xad, 0x1001653cd\nmov     rax, rbx                                                       ; +0xaf, 0x1001653cf\nadd     rsp, 8                                                         ; +0xb2, 0x1001653d2\npop     rbx                                                            ; +0xb6, 0x1001653d6\npop     r14                                                            ; +0xb7, 0x1001653d7\npop     r15                                                            ; +0xb9, 0x1001653d9\npop     rbp                                                            ; +0xbb, 0x1001653db\nretn                                                                   ; +0xbc, 0x1001653dc", "xrefs": [], "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"}