{"type": "func", "start": 6882456, "end": 6882684, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x690498 to 0x69057c (228 bytes)\n// \n// 7 xrefs:\n// > CCBlockLayer::create @ 0x6905ec\n// > PauseLayer::init @ 0x7d53cc\n// > EditorPauseLayer::init @ 0x8b720c\n// > <???> @ 0xbaa90\n// > <???> @ 0x14154c0\n// > <???> @ 0x1437bb0\n// > <???> @ 0x1459750\n// \n// This function is hookable on this platform (idp: arm, 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:50:35 +0000\n// \n\n__int64 __fastcall CCBlockLayer::init(CCBlockLayer *this)\n{\n  unsigned __int8 v2; // w0\n  unsigned int v3; // w21\n  cocos2d::CCDirector *v4; // x0\n  cocos2d::CCDirector *v5; // x0\n  __int64 v7; // [xsp+30h] [xbp+30h] BYREF\n\n  LODWORD(v7) = 2097152000;\n  v2 = cocos2d::CCLayerColor::initWithColor(this, &v7);\n  v3 = v2;\n  if ( v2 )\n  {\n    CCBlockLayer::incrementForcePrio(this);\n    (*(void (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);\n    (*(void (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);\n    v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(CCBlockLayer *, __int64))(*(_QWORD *)this + 1088LL))(this, 1);\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n    cocos2d::CCDirector::getWinSize(&v7, v5);\n    (*(void (__fastcall **)(CCBlockLayer *))(*(_QWORD *)this + 1304LL))(this);\n    *((_BYTE *)this + 544) = 1;\n  }\n  return v3;\n}", "assembly": "; \n; CCBlockLayer::init from 0x690498 to 0x69057c (228 bytes)\n; \n; 7 xrefs:\n; > CCBlockLayer::create @ 0x6905ec\n; > PauseLayer::init @ 0x7d53cc\n; > EditorPauseLayer::init @ 0x8b720c\n; > <???> @ 0xbaa90\n; > <???> @ 0x14154c0\n; > <???> @ 0x1437bb0\n; > <???> @ 0x1459750\n; \n; This function is hookable on this platform (idp: arm, 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:50:35 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x690498\nMOV             X29, SP                                                ; +0x4, 0x69049c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x6904a0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6904a4\nMOV             X20, X0                                                ; +0x10, 0x6904a8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x6904ac\nADD             X22, X29, #0x40+var_10                                 ; +0x18, 0x6904b0\nSTRB            WZR, [X29,#0x40+var_10]                                ; +0x1c, 0x6904b4\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6904b8\nMOV             X1, X22                                                ; +0x24, 0x6904bc\nSTRB            WZR, [X29,#0x40+var_F]                                 ; +0x28, 0x6904c0\nSTRB            WZR, [X29,#0x40+var_E]                                 ; +0x2c, 0x6904c4\nLDR             X2, [X2]                                               ; +0x30, 0x6904c8\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x34, 0x6904cc\nMOV             W2, #0x7D ; '}'                                        ; +0x38, 0x6904d0\nSTRB            W2, [X29,#0x40+var_D]                                  ; +0x3c, 0x6904d4\nBL              _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x40, 0x6904d8\nUXTB            W0, W0                                                 ; +0x44, 0x6904dc\nMOV             W21, W0                                                ; +0x48, 0x6904e0\nCBZ             W0, loc_690550                                         ; +0x4c, 0x6904e4\nMOV             X0, X20; this                                          ; +0x50, 0x6904e8\nBL              _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x54, 0x6904ec\nLDR             X2, [X20]                                              ; +0x58, 0x6904f0\nMOV             X0, X20                                                ; +0x5c, 0x6904f4\nMOV             W1, #1                                                 ; +0x60, 0x6904f8\nLDR             X2, [X2,#0x3E8]                                        ; +0x64, 0x6904fc\nBLR             X2                                                     ; +0x68, 0x690500\nLDR             X2, [X20]                                              ; +0x6c, 0x690504\nMOV             X0, X20                                                ; +0x70, 0x690508\nMOV             W1, #1                                                 ; +0x74, 0x69050c\nLDR             X2, [X2,#0x430]                                        ; +0x78, 0x690510\nBLR             X2                                                     ; +0x7c, 0x690514\nLDR             X2, [X20]                                              ; +0x80, 0x690518\nMOV             W1, #1                                                 ; +0x84, 0x69051c\nMOV             X0, X20                                                ; +0x88, 0x690520\nLDR             X2, [X2,#0x440]                                        ; +0x8c, 0x690524\nBLR             X2                                                     ; +0x90, 0x690528\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x94, 0x69052c\nMOV             X8, X22                                                ; +0x98, 0x690530\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x9c, 0x690534\nLDR             X1, [X20]                                              ; +0xa0, 0x690538\nMOV             X0, X20                                                ; +0xa4, 0x69053c\nLDR             X1, [X1,#0x518]                                        ; +0xa8, 0x690540\nBLR             X1                                                     ; +0xac, 0x690544\nMOV             W0, #1                                                 ; +0xb0, 0x690548\nSTRB            W0, [X20,#0x220]                                       ; +0xb4, 0x69054c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb8, 0x690550\nMOV             W0, W21                                                ; +0xbc, 0x690554\nLDR             X2, [X29,#0x40+var_8]                                  ; +0xc0, 0x690558\nLDR             X1, [X19]                                              ; +0xc4, 0x69055c\nCMP             X2, X1                                                 ; +0xc8, 0x690560\nB.NE            loc_690578                                             ; +0xcc, 0x690564\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd0, 0x690568\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xd4, 0x69056c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd8, 0x690570\nRET                                                                    ; +0xdc, 0x690574\nBL              .__stack_chk_fail                                      ; +0xe0, 0x690578", "xrefs": ["CCBlockLayer::create @ 0x6905ec", "PauseLayer::init @ 0x7d53cc", "EditorPauseLayer::init @ 0x8b720c", "<???> @ 0xbaa90", "<???> @ 0x14154c0", "<???> @ 0x1437bb0", "<???> @ 0x1459750"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}