{"type": "func", "start": 4705176, "end": 4705356, "name": "GJGameLoadingLayer::init", "pseudocode": "// \n// GJGameLoadingLayer::init from 0x47cb98 to 0x47cc4c (180 bytes)\n// \n// 1 xrefs:\n// > GJGameLoadingLayer::create @ 0x47ccb4\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 GJGameLoadingLayer::init(GJGameLoadingLayer *a1, GJGameLevel *a2, bool a3)\n{\n  _BOOL4 v6; // r7\n  cocos2d::CCDirector *v7; // r0\n  cocos2d::CCLabelBMFont *v8; // r4\n  void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  cocos2d::CCSize v12; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v13; // [sp+Ch] [bp-Ch] 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(&v12, v7);\n    v8 = cocos2d::CCLabelBMFont::create();\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v8->setScale)(v8, 1060320051);\n    a1->addChild_0(a1, v8, 1);\n    setAnchorPoint = v8->setAnchorPoint;\n    cocos2d::CCPoint::CCPoint(&v13, 1.0, 0.0);\n    setAnchorPoint(v8, &v13);\n    setPosition = v8->setPosition;\n    cocos2d::CCPoint::CCPoint(&v13, v12.width - 20.0, 20.0);\n    setPosition(v8, &v13);\n  }\n  return v6;\n}", "assembly": "; \n; GJGameLoadingLayer::init from 0x47cb98 to 0x47cc4c (180 bytes)\n; \n; 1 xrefs:\n; > GJGameLoadingLayer::create @ 0x47ccb4\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.W          {R4-R8,LR}                                             ; +0x0, 0x47cb98\nSUB             SP, SP, #0x18                                          ; +0x4, 0x47cb9c\nLDR             R6, =(__stack_chk_guard_ptr - 0x47CBAA)                ; +0x6, 0x47cb9e\nMOV             R5, R0                                                 ; +0x8, 0x47cba0\nMOV             R4, R1                                                 ; +0xa, 0x47cba2\nMOV             R8, R2                                                 ; +0xc, 0x47cba4\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x47cba6\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x47cba8\nLDR             R3, [R6]                                               ; +0x12, 0x47cbaa\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x14, 0x47cbac\nBL              _ZN7cocos2d7CCLayer4initEv; cocos2d::CCLayer::init(void) ; +0x16, 0x47cbae\nMOV             R7, R0                                                 ; +0x1a, 0x47cbb2\nCMP             R0, #0                                                 ; +0x1c, 0x47cbb4\nBEQ             loc_47CC38                                             ; +0x1e, 0x47cbb6\nCBZ             R4, loc_47CBC4                                         ; +0x20, 0x47cbb8\nSTR.W           R4, [R5,#0x13C]                                        ; +0x22, 0x47cbba\nMOV             R0, R4; this                                           ; +0x26, 0x47cbbe\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x47cbc0\nSTRB.W          R8, [R5,#0x140]                                        ; +0x2c, 0x47cbc4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0x47cbc8\nMOV             R1, R0                                                 ; +0x34, 0x47cbcc\nADD             R0, SP, #0x18+var_14; this                             ; +0x36, 0x47cbce\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x38, 0x47cbd0\nLDR             R0, =(aLoading_0 - 0x47CBDC); \"Loading...\"             ; +0x3c, 0x47cbd4\nLDR             R1, =(aBigfontFnt - 0x47CBDE); \"bigFont.fnt\"           ; +0x3e, 0x47cbd6\nADD             R0, PC; \"Loading...\"                                   ; +0x40, 0x47cbd8\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x42, 0x47cbda\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x44, 0x47cbdc\nLDR             R1, =0x3F333333                                        ; +0x48, 0x47cbe0\nLDR             R3, [R0]                                               ; +0x4a, 0x47cbe2\nMOV             R4, R0                                                 ; +0x4c, 0x47cbe4\nLDR             R3, [R3,#0x50]                                         ; +0x4e, 0x47cbe6\nBLX             R3                                                     ; +0x50, 0x47cbe8\nLDR             R3, [R5]                                               ; +0x52, 0x47cbea\nMOV             R0, R5                                                 ; +0x54, 0x47cbec\nMOV             R1, R4                                                 ; +0x56, 0x47cbee\nMOVS            R2, #1                                                 ; +0x58, 0x47cbf0\nADD             R5, SP, #0x18+var_C                                    ; +0x5a, 0x47cbf2\nLDR.W           R3, [R3,#0xE0]                                         ; +0x5c, 0x47cbf4\nBLX             R3                                                     ; +0x60, 0x47cbf8\nLDR             R3, [R4]                                               ; +0x62, 0x47cbfa\nMOVS            R2, #0; float                                          ; +0x64, 0x47cbfc\nMOV.W           R1, #0x3F800000; float                                 ; +0x66, 0x47cbfe\nMOV             R0, R5; this                                           ; +0x6a, 0x47cc02\nLDR.W           R8, [R3,#0x8C]                                         ; +0x6c, 0x47cc04\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x70, 0x47cc08\nMOV             R0, R4                                                 ; +0x74, 0x47cc0c\nMOV             R1, R5                                                 ; +0x76, 0x47cc0e\nBLX             R8                                                     ; +0x78, 0x47cc10\nVMOV.F32        S15, #20.0                                             ; +0x7a, 0x47cc12\nVLDR            S14, [SP,#0x18+var_14]                                 ; +0x7e, 0x47cc16\nMOV             R0, R5; this                                           ; +0x82, 0x47cc1a\nLDR             R3, [R4]                                               ; +0x84, 0x47cc1c\nLDR.W           R8, [R3,#0x5C]                                         ; +0x86, 0x47cc1e\nVSUB.F32        S14, S14, S15                                          ; +0x8a, 0x47cc22\nVMOV            R2, S15; float                                         ; +0x8e, 0x47cc26\nVMOV            R1, S14; float                                         ; +0x92, 0x47cc2a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x96, 0x47cc2e\nMOV             R0, R4                                                 ; +0x9a, 0x47cc32\nMOV             R1, R5                                                 ; +0x9c, 0x47cc34\nBLX             R8                                                     ; +0x9e, 0x47cc36\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa0, 0x47cc38\nMOV             R0, R7                                                 ; +0xa2, 0x47cc3a\nLDR             R3, [R6]                                               ; +0xa4, 0x47cc3c\nCMP             R2, R3                                                 ; +0xa6, 0x47cc3e\nBEQ             loc_47CC46                                             ; +0xa8, 0x47cc40\nBLX             __stack_chk_fail                                       ; +0xaa, 0x47cc42\nADD             SP, SP, #0x18                                          ; +0xae, 0x47cc46\nPOP.W           {R4-R8,PC}                                             ; +0xb0, 0x47cc48", "xrefs": ["GJGameLoadingLayer::create @ 0x47ccb4"], "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"}