{"type": "func", "start": 5722144, "end": 5722372, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x575020 to 0x575104 (228 bytes)\n// \n// 7 xrefs:\n// > CCBlockLayer::create @ 0x575174\n// > PauseLayer::init @ 0x6c6bcc\n// > EditorPauseLayer::init @ 0x78b414\n// > <???> @ 0x8cf28\n// > <???> @ 0x1137d70\n// > <???> @ 0x1158340\n// > <???> @ 0x11776d0\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 CCBlockLayer::init(CCBlockLayer *a1)\n{\n  char v2; // w21\n  cocos2d::CCDirector *v3; // x0\n  cocos2d::_ccColor4B v5; // [xsp+30h] [xbp+30h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  v5.r = 0;\n  v5.g = 0;\n  v5.b = 0;\n  v5.a = 125;\n  v2 = cocos2d::CCLayerColor::initWithColor(a1, &v5);\n  if ( v2 )\n  {\n    CCBlockLayer::incrementForcePrio(a1);\n    a1->setTouchEnabled(a1, 1);\n    a1->setKeypadEnabled(a1, 1);\n    a1->setKeyboardEnabled(a1, 1);\n    v3 = cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v3);\n    ((void (__fastcall *)(CCBlockLayer *, float, float))a1->customSetup)(a1, WinSize.width, WinSize.height);\n    a1->m_closeOnHide = 1;\n  }\n  return v2;\n}", "assembly": "; \n; CCBlockLayer::init from 0x575020 to 0x575104 (228 bytes)\n; \n; 7 xrefs:\n; > CCBlockLayer::create @ 0x575174\n; > PauseLayer::init @ 0x6c6bcc\n; > EditorPauseLayer::init @ 0x78b414\n; > <???> @ 0x8cf28\n; > <???> @ 0x1137d70\n; > <???> @ 0x1158340\n; > <???> @ 0x11776d0\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_40]!                                ; +0x0, 0x575020\nMOV             X29, SP                                                ; +0x4, 0x575024\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x575028\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x57502c\nMOV             X20, X0                                                ; +0x10, 0x575030\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x575034\nADD             X22, X29, #0x40+var_10                                 ; +0x18, 0x575038\nSTRB            WZR, [X29,#0x40+var_10]                                ; +0x1c, 0x57503c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x575040\nMOV             X1, X22                                                ; +0x24, 0x575044\nSTRB            WZR, [X29,#0x40+var_F]                                 ; +0x28, 0x575048\nSTRB            WZR, [X29,#0x40+var_E]                                 ; +0x2c, 0x57504c\nLDR             X2, [X2]                                               ; +0x30, 0x575050\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x34, 0x575054\nMOV             W2, #0x7D ; '}'                                        ; +0x38, 0x575058\nSTRB            W2, [X29,#0x40+var_D]                                  ; +0x3c, 0x57505c\nBL              _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x40, 0x575060\nUXTB            W0, W0                                                 ; +0x44, 0x575064\nMOV             W21, W0                                                ; +0x48, 0x575068\nCBZ             W0, loc_5750D8                                         ; +0x4c, 0x57506c\nMOV             X0, X20; this                                          ; +0x50, 0x575070\nBL              _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x54, 0x575074\nLDR             X2, [X20]                                              ; +0x58, 0x575078\nMOV             X0, X20                                                ; +0x5c, 0x57507c\nMOV             W1, #1                                                 ; +0x60, 0x575080\nLDR             X2, [X2,#0x3D8]                                        ; +0x64, 0x575084\nBLR             X2                                                     ; +0x68, 0x575088\nLDR             X2, [X20]                                              ; +0x6c, 0x57508c\nMOV             X0, X20                                                ; +0x70, 0x575090\nMOV             W1, #1                                                 ; +0x74, 0x575094\nLDR             X2, [X2,#0x420]                                        ; +0x78, 0x575098\nBLR             X2                                                     ; +0x7c, 0x57509c\nLDR             X2, [X20]                                              ; +0x80, 0x5750a0\nMOV             W1, #1                                                 ; +0x84, 0x5750a4\nMOV             X0, X20                                                ; +0x88, 0x5750a8\nLDR             X2, [X2,#0x430]                                        ; +0x8c, 0x5750ac\nBLR             X2                                                     ; +0x90, 0x5750b0\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x94, 0x5750b4\nMOV             X8, X22                                                ; +0x98, 0x5750b8\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x9c, 0x5750bc\nLDR             X1, [X20]                                              ; +0xa0, 0x5750c0\nMOV             X0, X20                                                ; +0xa4, 0x5750c4\nLDR             X1, [X1,#0x508]                                        ; +0xa8, 0x5750c8\nBLR             X1                                                     ; +0xac, 0x5750cc\nMOV             W0, #1                                                 ; +0xb0, 0x5750d0\nSTRB            W0, [X20,#0x220]                                       ; +0xb4, 0x5750d4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb8, 0x5750d8\nMOV             W0, W21                                                ; +0xbc, 0x5750dc\nLDR             X2, [X29,#0x40+var_8]                                  ; +0xc0, 0x5750e0\nLDR             X1, [X19]                                              ; +0xc4, 0x5750e4\nCMP             X2, X1                                                 ; +0xc8, 0x5750e8\nB.NE            loc_575100                                             ; +0xcc, 0x5750ec\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xd0, 0x5750f0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xd4, 0x5750f4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd8, 0x5750f8\nRET                                                                    ; +0xdc, 0x5750fc\nBL              .__stack_chk_fail                                      ; +0xe0, 0x575100", "xrefs": ["CCBlockLayer::create @ 0x575174", "PauseLayer::init @ 0x6c6bcc", "EditorPauseLayer::init @ 0x78b414", "<???> @ 0x8cf28", "<???> @ 0x1137d70", "<???> @ 0x1158340", "<???> @ 0x11776d0"], "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"}