{"type": "func", "start": 8832364, "end": 8832656, "name": "GJGameLoadingLayer::init", "pseudocode": "// \n// GJGameLoadingLayer::init from 0x86c56c to 0x86c690 (292 bytes)\n// \n// 2 xrefs:\n// > GJGameLoadingLayer::create @ 0x86c708\n// > <???> @ 0x59520\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  bool v5; // w23\n  cocos2d::CCDirector *v6; // x0\n  cocos2d::CCLabelBMFont *v7; // x21\n  void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  float v12; // [xsp+58h] [xbp+58h]\n  cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF\n\n  v5 = cocos2d::CCLayer::init(a1);\n  if ( v5 )\n  {\n    if ( a2 )\n    {\n      a1->m_level = a2;\n      cocos2d::CCObject::retain(a2);\n    }\n    a1->m_editor = a3;\n    v6 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v6);\n    v7 = cocos2d::CCLabelBMFont::create();\n    v7->setScale(v7, 0.7);\n    a1->addChild_0(a1, v7, 1);\n    setAnchorPoint = v7->setAnchorPoint;\n    cocos2d::CCPoint::CCPoint(&v13, 1.0, 0.0);\n    setAnchorPoint(v7, &v13);\n    setPosition = v7->setPosition;\n    cocos2d::CCPoint::CCPoint(&v13, v12 - 20.0, 20.0);\n    setPosition(v7, &v13);\n  }\n  return v5;\n}", "assembly": "; \n; GJGameLoadingLayer::init from 0x86c56c to 0x86c690 (292 bytes)\n; \n; 2 xrefs:\n; > GJGameLoadingLayer::create @ 0x86c708\n; > <???> @ 0x59520\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x86c56c\nMOV             X29, SP                                                ; +0x4, 0x86c570\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x86c574\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x86c578\nUXTB            W20, W2                                                ; +0x10, 0x86c57c\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x86c580\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x18, 0x86c584\nMOV             X22, X0                                                ; +0x1c, 0x86c588\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x86c58c\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x24, 0x86c590\nLDR             X2, [X2]                                               ; +0x28, 0x86c594\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x2c, 0x86c598\nBL              _ZN7cocos2d7CCLayer4initEv; cocos2d::CCLayer::init(void) ; +0x30, 0x86c59c\nUXTB            W0, W0                                                 ; +0x34, 0x86c5a0\nMOV             W23, W0                                                ; +0x38, 0x86c5a4\nCBZ             W0, loc_86C660                                         ; +0x3c, 0x86c5a8\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x40, 0x86c5ac\nCBZ             X1, loc_86C5C0                                         ; +0x44, 0x86c5b0\nSTR             X1, [X22,#0x198]                                       ; +0x48, 0x86c5b4\nMOV             X0, X1; this                                           ; +0x4c, 0x86c5b8\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x50, 0x86c5bc\nSTRB            W20, [X22,#0x1A0]                                      ; +0x54, 0x86c5c0\nADD             X20, X29, #0x70+var_10                                 ; +0x58, 0x86c5c4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5c, 0x86c5c8\nADD             X8, X29, #0x70+var_18                                  ; +0x60, 0x86c5cc\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x64, 0x86c5d0\nADRP            X0, #aLoading_0@PAGE; \"Loading...\"                     ; +0x68, 0x86c5d4\nADRL            X1, aBigfontFnt; \"bigFont.fnt\"                         ; +0x6c, 0x86c5d8\nADD             X0, X0, #aLoading_0@PAGEOFF; \"Loading...\"              ; +0x74, 0x86c5e0\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x78, 0x86c5e4\nLDR             X1, [X0]                                               ; +0x7c, 0x86c5e8\nLDR             S0, =0x3F333333                                        ; +0x80, 0x86c5ec\nMOV             X21, X0                                                ; +0x84, 0x86c5f0\nLDR             X1, [X1,#0xA0]                                         ; +0x88, 0x86c5f4\nBLR             X1                                                     ; +0x8c, 0x86c5f8\nLDR             X3, [X22]                                              ; +0x90, 0x86c5fc\nMOV             W2, #1                                                 ; +0x94, 0x86c600\nMOV             X0, X22                                                ; +0x98, 0x86c604\nMOV             X1, X21                                                ; +0x9c, 0x86c608\nLDR             X3, [X3,#0x1C0]                                        ; +0xa0, 0x86c60c\nBLR             X3                                                     ; +0xa4, 0x86c610\nFMOV            S1, WZR; float                                         ; +0xa8, 0x86c614\nLDR             X1, [X21]                                              ; +0xac, 0x86c618\nFMOV            S0, #1.0; float                                        ; +0xb0, 0x86c61c\nMOV             X0, X20; this                                          ; +0xb4, 0x86c620\nLDR             X22, [X1,#0x118]                                       ; +0xb8, 0x86c624\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xbc, 0x86c628\nMOV             X0, X21                                                ; +0xc0, 0x86c62c\nMOV             X1, X20                                                ; +0xc4, 0x86c630\nBLR             X22                                                    ; +0xc8, 0x86c634\nFMOV            S1, #20.0; float                                       ; +0xcc, 0x86c638\nLDR             X1, [X21]                                              ; +0xd0, 0x86c63c\nLDR             S0, [X29,#0x70+var_18]                                 ; +0xd4, 0x86c640\nMOV             X0, X20; this                                          ; +0xd8, 0x86c644\nFSUB            S0, S0, S1; float                                      ; +0xdc, 0x86c648\nLDR             X22, [X1,#0xB8]                                        ; +0xe0, 0x86c64c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe4, 0x86c650\nMOV             X0, X21                                                ; +0xe8, 0x86c654\nMOV             X1, X20                                                ; +0xec, 0x86c658\nBLR             X22                                                    ; +0xf0, 0x86c65c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xf4, 0x86c660\nMOV             W0, W23                                                ; +0xf8, 0x86c664\nLDR             X2, [X29,#0x70+var_8]                                  ; +0xfc, 0x86c668\nLDR             X1, [X19]                                              ; +0x100, 0x86c66c\nCMP             X2, X1                                                 ; +0x104, 0x86c670\nB.NE            loc_86C68C                                             ; +0x108, 0x86c674\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x10c, 0x86c678\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x110, 0x86c67c\nLDR             X23, [SP,#0x70+var_40]                                 ; +0x114, 0x86c680\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x118, 0x86c684\nRET                                                                    ; +0x11c, 0x86c688\nBL              .__stack_chk_fail                                      ; +0x120, 0x86c68c", "xrefs": ["GJGameLoadingLayer::create @ 0x86c708", "<???> @ 0x59520"], "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"}