{"type": "func", "start": 3038468, "end": 3038604, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x2e5d04 to 0x2e5d8c (136 bytes)\n// \n// 3 xrefs:\n// > CCBlockLayer::create @ 0x2e5cb0\n// > PauseLayer::init @ 0x3a7bfe\n// > EditorPauseLayer::init @ 0x3ff68e\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  int v2; // r6\n  cocos2d::CCDirector *v3; // r0\n  cocos2d::CCSize v5; // [sp+4h] [bp+0h] BYREF\n\n  v5.width = 1.0634e37;\n  v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&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    cocos2d::CCDirector::getWinSize(&v5, v3);\n    a1->customSetup(a1);\n    a1->m_closeOnHide = 1;\n  }\n  return v2;\n}", "assembly": "; \n; CCBlockLayer::init from 0x2e5d04 to 0x2e5d8c (136 bytes)\n; \n; 3 xrefs:\n; > CCBlockLayer::create @ 0x2e5cb0\n; > PauseLayer::init @ 0x3a7bfe\n; > EditorPauseLayer::init @ 0x3ff68e\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            {R4-R7,LR}                                             ; +0x0, 0x2e5d04\nSUB             SP, SP, #0x14                                          ; +0x2, 0x2e5d06\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E5D12)                ; +0x4, 0x2e5d08\nADD             R7, SP, #4                                             ; +0x6, 0x2e5d0a\nMOV             R4, R0                                                 ; +0x8, 0x2e5d0c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x2e5d0e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x2e5d10\nMOV             R1, R7                                                 ; +0xe, 0x2e5d12\nLDR             R3, [R5]                                               ; +0x10, 0x2e5d14\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x2e5d16\nMOVS            R3, #0                                                 ; +0x14, 0x2e5d18\nSTRB.W          R3, [SP,#0x14+var_10]                                  ; +0x16, 0x2e5d1a\nSTRB.W          R3, [SP,#0x14+var_F]                                   ; +0x1a, 0x2e5d1e\nSTRB.W          R3, [SP,#0x14+var_E]                                   ; +0x1e, 0x2e5d22\nMOVS            R3, #0x7D ; '}'                                        ; +0x22, 0x2e5d26\nSTRB.W          R3, [SP,#0x14+var_D]                                   ; +0x24, 0x2e5d28\nBL              _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x28, 0x2e5d2c\nMOV             R6, R0                                                 ; +0x2c, 0x2e5d30\nCBZ             R0, loc_2E5D7A                                         ; +0x2e, 0x2e5d32\nMOV             R0, R4; this                                           ; +0x30, 0x2e5d34\nBL              _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x32, 0x2e5d36\nLDR             R3, [R4]                                               ; +0x36, 0x2e5d3a\nMOV             R0, R4                                                 ; +0x38, 0x2e5d3c\nMOVS            R1, #1                                                 ; +0x3a, 0x2e5d3e\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x3c, 0x2e5d40\nBLX             R3                                                     ; +0x40, 0x2e5d44\nLDR             R3, [R4]                                               ; +0x42, 0x2e5d46\nMOV             R0, R4                                                 ; +0x44, 0x2e5d48\nMOVS            R1, #1                                                 ; +0x46, 0x2e5d4a\nLDR.W           R3, [R3,#0x210]                                        ; +0x48, 0x2e5d4c\nBLX             R3                                                     ; +0x4c, 0x2e5d50\nLDR             R3, [R4]                                               ; +0x4e, 0x2e5d52\nMOVS            R1, #1                                                 ; +0x50, 0x2e5d54\nMOV             R0, R4                                                 ; +0x52, 0x2e5d56\nLDR.W           R3, [R3,#0x218]                                        ; +0x54, 0x2e5d58\nBLX             R3                                                     ; +0x58, 0x2e5d5c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5a, 0x2e5d5e\nMOV             R1, R0                                                 ; +0x5e, 0x2e5d62\nMOV             R0, R7; this                                           ; +0x60, 0x2e5d64\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x62, 0x2e5d66\nLDR             R3, [R4]                                               ; +0x66, 0x2e5d6a\nMOV             R0, R4                                                 ; +0x68, 0x2e5d6c\nLDR.W           R3, [R3,#0x284]                                        ; +0x6a, 0x2e5d6e\nBLX             R3                                                     ; +0x6e, 0x2e5d72\nMOVS            R3, #1                                                 ; +0x70, 0x2e5d74\nSTRB.W          R3, [R4,#0x1B8]                                        ; +0x72, 0x2e5d76\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x76, 0x2e5d7a\nMOV             R0, R6                                                 ; +0x78, 0x2e5d7c\nLDR             R3, [R5]                                               ; +0x7a, 0x2e5d7e\nCMP             R2, R3                                                 ; +0x7c, 0x2e5d80\nBEQ             loc_2E5D88                                             ; +0x7e, 0x2e5d82\nBLX             __stack_chk_fail                                       ; +0x80, 0x2e5d84\nADD             SP, SP, #0x14                                          ; +0x84, 0x2e5d88\nPOP             {R4-R7,PC}                                             ; +0x86, 0x2e5d8a", "xrefs": ["CCBlockLayer::create @ 0x2e5cb0", "PauseLayer::init @ 0x3a7bfe", "EditorPauseLayer::init @ 0x3ff68e"], "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"}