{"type": "func", "start": 4295516748, "end": 4295516924, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x10008624c to 0x1000862fc (176 bytes)\n// \n// 5 xrefs:\n// > PauseLayer::create @ 0x100141dac\n// > EditorPauseLayer::init @ 0x10039bbbc\n// > <???> @ 0x10077e3b8\n// > <???> @ 0x100793de8\n// > <???> @ 0x10080b708\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 __fastcall CCBlockLayer::init(CCBlockLayer *a1)\n{\n  _BOOL4 v2; // w20\n  cocos2d::CCDirector *v3; // x0\n  int v5; // [xsp+Ch] [xbp-24h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  v5 = 2097152000;\n  v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v5);\n  if ( v2 )\n  {\n    CCBlockLayer::incrementForcePrio(a1);\n    ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setTouchEnabled)(a1, 1);\n    ((void (__fastcall *)(CCBlockLayer *, __int64))a1->setKeypadEnabled)(a1, 1);\n    ((void (__fastcall *)(CCBlockLayer *, __int64))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 0x10008624c to 0x1000862fc (176 bytes)\n; \n; 5 xrefs:\n; > PauseLayer::create @ 0x100141dac\n; > EditorPauseLayer::init @ 0x10039bbbc\n; > <???> @ 0x10077e3b8\n; > <???> @ 0x100793de8\n; > <???> @ 0x10080b708\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10008624c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100086250\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100086254\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100086258\nADD             X29, SP, #0x30                                         ; +0x10, 0x10008625c\nMOV             X19, X0                                                ; +0x14, 0x100086260\nMOV             W8, #0x7D000000                                        ; +0x18, 0x100086264\nSTR             W8, [SP,#0x30+var_24]                                  ; +0x1c, 0x100086268\nADD             X1, SP, #0x30+var_24                                   ; +0x20, 0x10008626c\nBL              cocos2d__CCLayerColor__initWithColor                   ; +0x24, 0x100086270\nMOV             X20, X0                                                ; +0x28, 0x100086274\nCBZ             W0, loc_1000862E4                                      ; +0x2c, 0x100086278\nMOV             X0, X19                                                ; +0x30, 0x10008627c\nBL              CCBlockLayer__incrementForcePrio                       ; +0x34, 0x100086280\nLDR             X8, [X19]                                              ; +0x38, 0x100086284\nLDR             X8, [X8,#0x3D8]                                        ; +0x3c, 0x100086288\nMOV             W21, #1                                                ; +0x40, 0x10008628c\nMOV             X0, X19                                                ; +0x44, 0x100086290\nMOV             W1, #1                                                 ; +0x48, 0x100086294\nBLR             X8                                                     ; +0x4c, 0x100086298\nLDR             X8, [X19]                                              ; +0x50, 0x10008629c\nLDR             X8, [X8,#0x420]                                        ; +0x54, 0x1000862a0\nMOV             X0, X19                                                ; +0x58, 0x1000862a4\nMOV             W1, #1                                                 ; +0x5c, 0x1000862a8\nBLR             X8                                                     ; +0x60, 0x1000862ac\nLDR             X8, [X19]                                              ; +0x64, 0x1000862b0\nLDR             X8, [X8,#0x430]                                        ; +0x68, 0x1000862b4\nMOV             X0, X19                                                ; +0x6c, 0x1000862b8\nMOV             W1, #1                                                 ; +0x70, 0x1000862bc\nBLR             X8                                                     ; +0x74, 0x1000862c0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x78, 0x1000862c4\nADD             X8, SP, #0x30+var_2C                                   ; +0x7c, 0x1000862c8\nBL              cocos2d__CCDirector__getWinSize                        ; +0x80, 0x1000862cc\nLDR             X8, [X19]                                              ; +0x84, 0x1000862d0\nLDR             X8, [X8,#0x508]                                        ; +0x88, 0x1000862d4\nMOV             X0, X19                                                ; +0x8c, 0x1000862d8\nBLR             X8                                                     ; +0x90, 0x1000862dc\nSTRB            W21, [X19,#0x220]                                      ; +0x94, 0x1000862e0\nMOV             X0, X20                                                ; +0x98, 0x1000862e4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x1000862e8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x1000862ec\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa4, 0x1000862f0\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x1000862f4\nRET                                                                    ; +0xac, 0x1000862f8", "xrefs": ["PauseLayer::create @ 0x100141dac", "EditorPauseLayer::init @ 0x10039bbbc", "<???> @ 0x10077e3b8", "<???> @ 0x100793de8", "<???> @ 0x10080b708"], "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"}