{"type": "func", "start": 4705372, "end": 4705500, "name": "GJGameLoadingLayer::create", "pseudocode": "// \n// GJGameLoadingLayer::create from 0x47cc5c to 0x47ccdc (128 bytes)\n// \n// 1 xrefs:\n// > GJGameLoadingLayer::transitionToLoadingLayer @ 0x47ccf6\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 *GJGameLoadingLayer::create(GJGameLevel *a1, bool a2)\n{\n  GJGameLoadingLayer *v4; // r4\n  GJGameLoadingLayer_vtbl *v5; // r3\n  GJGameLoadingLayer *v6; // r0\n\n  v4 = (GJGameLoadingLayer *)operator new(0x144u);\n  cocos2d::CCLayer::CCLayer(v4);\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGameLoadingLayer_vtbl *)&off_A69360;\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A695A0;\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A695D8;\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A695E4;\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A695F4;\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A69604;\n  v4->m_level = nullptr;\n  v4->m_editor = 0;\n  if ( GJGameLoadingLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    v5 = v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v6 = v4;\n    v4 = nullptr;\n    v5->~GJGameLoadingLayer_0(v6);\n  }\n  return v4;\n}", "assembly": "; \n; GJGameLoadingLayer::create from 0x47cc5c to 0x47ccdc (128 bytes)\n; \n; 1 xrefs:\n; > GJGameLoadingLayer::transitionToLoadingLayer @ 0x47ccf6\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            {R4-R6,LR}                                             ; +0x0, 0x47cc5c\nMOV             R6, R0                                                 ; +0x2, 0x47cc5e\nMOV.W           R0, #0x144; unsigned int                               ; +0x4, 0x47cc60\nMOV             R5, R1                                                 ; +0x8, 0x47cc64\nBL              _Znwj; operator new(uint)                              ; +0xa, 0x47cc66\nMOV             R4, R0                                                 ; +0xe, 0x47cc6a\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x10, 0x47cc6c\nLDR             R3, =(_ZTV18GJGameLoadingLayer_ptr - 0x47CC7A)         ; +0x14, 0x47cc70\nMOV             R0, R4; this                                           ; +0x16, 0x47cc72\nMOV             R1, R6; GJGameLevel *                                  ; +0x18, 0x47cc74\nADD             R3, PC; _ZTV18GJGameLoadingLayer_ptr                   ; +0x1a, 0x47cc76\nLDR             R3, [R3]; `vtable for'GJGameLoadingLayer ...           ; +0x1c, 0x47cc78\nADD.W           R2, R3, #8                                             ; +0x1e, 0x47cc7a\nSTR             R2, [R4]                                               ; +0x22, 0x47cc7e\nADD.W           R2, R3, #0x248                                         ; +0x24, 0x47cc80\nSTR.W           R2, [R4,#0x108]                                        ; +0x28, 0x47cc84\nADD.W           R2, R3, #0x280                                         ; +0x2c, 0x47cc88\nSTR.W           R2, [R4,#0x10C]                                        ; +0x30, 0x47cc8c\nADD.W           R2, R3, #0x28C                                         ; +0x34, 0x47cc90\nSTR.W           R2, [R4,#0x110]                                        ; +0x38, 0x47cc94\nADD.W           R2, R3, #0x29C                                         ; +0x3c, 0x47cc98\nADD.W           R3, R3, #0x2AC                                         ; +0x40, 0x47cc9c\nSTR.W           R2, [R4,#0x114]                                        ; +0x44, 0x47cca0\nMOV             R2, R5; bool                                           ; +0x48, 0x47cca4\nSTR.W           R3, [R4,#0x118]                                        ; +0x4a, 0x47cca6\nMOVS            R3, #0                                                 ; +0x4e, 0x47ccaa\nSTR.W           R3, [R4,#0x13C]                                        ; +0x50, 0x47ccac\nSTRB.W          R3, [R4,#0x140]                                        ; +0x54, 0x47ccb0\nBL              _ZN18GJGameLoadingLayer4initEP11GJGameLevelb; GJGameLoadingLayer::init(GJGameLevel *,bool) ; +0x58, 0x47ccb4\nMOV             R5, R0                                                 ; +0x5c, 0x47ccb8\nCBZ             R0, loc_47CCCE                                         ; +0x5e, 0x47ccba\nMOV             R0, R4; this                                           ; +0x60, 0x47ccbc\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x62, 0x47ccbe\nB               loc_47CCD8                                             ; +0x66, 0x47ccc2\nMOV             R0, R4; p                                              ; +0x68, 0x47ccc4\nBL              _ZdlPv; operator delete(void *)                        ; +0x6a, 0x47ccc6\nBL              __cxa_end_cleanup                                      ; +0x6e, 0x47ccca\nLDR             R3, [R4]                                               ; +0x72, 0x47ccce\nMOV             R0, R4                                                 ; +0x74, 0x47ccd0\nMOV             R4, R5                                                 ; +0x76, 0x47ccd2\nLDR             R3, [R3,#8]                                            ; +0x78, 0x47ccd4\nBLX             R3                                                     ; +0x7a, 0x47ccd6\nMOV             R0, R4                                                 ; +0x7c, 0x47ccd8\nPOP             {R4-R6,PC}                                             ; +0x7e, 0x47ccda", "xrefs": ["GJGameLoadingLayer::transitionToLoadingLayer @ 0x47ccf6"], "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"}