{"type": "func", "start": 3955296, "end": 3955432, "name": "CCBlockLayer::init", "pseudocode": "// \n// CCBlockLayer::init from 0x3c5a60 to 0x3c5ae8 (136 bytes)\n// \n// 3 xrefs:\n// > CCBlockLayer::create @ 0x3c5a08\n// > PauseLayer::init @ 0x48ec54\n// > EditorPauseLayer::init @ 0x509702\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n// \n\nint __fastcall CCBlockLayer::init(CCBlockLayer *this)\n{\n  int v2; // r6\n  cocos2d::CCDirector *v3; // r0\n  _BYTE v5[8]; // [sp+4h] [bp+0h] BYREF\n\n  v5[0] = 0;\n  v5[1] = 0;\n  v5[2] = 0;\n  v5[3] = 125;\n  v2 = cocos2d::CCLayerColor::initWithColor(this, v5);\n  if ( v2 )\n  {\n    CCBlockLayer::incrementForcePrio((unsigned __int8 *)this);\n    (*(void (__fastcall **)(CCBlockLayer *, int))(*(_DWORD *)this + 500))(this, 1);\n    (*(void (__fastcall **)(CCBlockLayer *, int))(*(_DWORD *)this + 536))(this, 1);\n    v3 = (cocos2d::CCDirector *)(*(int (__fastcall **)(CCBlockLayer *, int))(*(_DWORD *)this + 544))(this, 1);\n    cocos2d::CCDirector::sharedDirector(v3);\n    cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v5);\n    (*(void (__fastcall **)(CCBlockLayer *))(*(_DWORD *)this + 652))(this);\n    *((_BYTE *)this + 440) = 1;\n  }\n  return v2;\n}", "assembly": "; \n; CCBlockLayer::init from 0x3c5a60 to 0x3c5ae8 (136 bytes)\n; \n; 3 xrefs:\n; > CCBlockLayer::create @ 0x3c5a08\n; > PauseLayer::init @ 0x48ec54\n; > EditorPauseLayer::init @ 0x509702\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3c5a60\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3c5a62\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C5A6E)                ; +0x4, 0x3c5a64\nADD             R7, SP, #4                                             ; +0x6, 0x3c5a66\nMOV             R4, R0                                                 ; +0x8, 0x3c5a68\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3c5a6a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x3c5a6c\nMOV             R1, R7                                                 ; +0xe, 0x3c5a6e\nLDR             R3, [R5]                                               ; +0x10, 0x3c5a70\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x3c5a72\nMOVS            R3, #0                                                 ; +0x14, 0x3c5a74\nSTRB.W          R3, [SP,#0x14+var_10]                                  ; +0x16, 0x3c5a76\nSTRB.W          R3, [SP,#0x14+var_F]                                   ; +0x1a, 0x3c5a7a\nSTRB.W          R3, [SP,#0x14+var_E]                                   ; +0x1e, 0x3c5a7e\nMOVS            R3, #0x7D ; '}'                                        ; +0x22, 0x3c5a82\nSTRB.W          R3, [SP,#0x14+var_D]                                   ; +0x24, 0x3c5a84\nBL              _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x28, 0x3c5a88\nMOV             R6, R0                                                 ; +0x2c, 0x3c5a8c\nCBZ             R0, loc_3C5AD6                                         ; +0x2e, 0x3c5a8e\nMOV             R0, R4; this                                           ; +0x30, 0x3c5a90\nBL              _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x32, 0x3c5a92\nLDR             R3, [R4]                                               ; +0x36, 0x3c5a96\nMOV             R0, R4                                                 ; +0x38, 0x3c5a98\nMOVS            R1, #1                                                 ; +0x3a, 0x3c5a9a\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x3c, 0x3c5a9c\nBLX             R3                                                     ; +0x40, 0x3c5aa0\nLDR             R3, [R4]                                               ; +0x42, 0x3c5aa2\nMOV             R0, R4                                                 ; +0x44, 0x3c5aa4\nMOVS            R1, #1                                                 ; +0x46, 0x3c5aa6\nLDR.W           R3, [R3,#0x218]                                        ; +0x48, 0x3c5aa8\nBLX             R3                                                     ; +0x4c, 0x3c5aac\nLDR             R3, [R4]                                               ; +0x4e, 0x3c5aae\nMOVS            R1, #1                                                 ; +0x50, 0x3c5ab0\nMOV             R0, R4                                                 ; +0x52, 0x3c5ab2\nLDR.W           R3, [R3,#0x220]                                        ; +0x54, 0x3c5ab4\nBLX             R3                                                     ; +0x58, 0x3c5ab8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5a, 0x3c5aba\nMOV             R1, R0                                                 ; +0x5e, 0x3c5abe\nMOV             R0, R7; this                                           ; +0x60, 0x3c5ac0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x62, 0x3c5ac2\nLDR             R3, [R4]                                               ; +0x66, 0x3c5ac6\nMOV             R0, R4                                                 ; +0x68, 0x3c5ac8\nLDR.W           R3, [R3,#0x28C]                                        ; +0x6a, 0x3c5aca\nBLX             R3                                                     ; +0x6e, 0x3c5ace\nMOVS            R3, #1                                                 ; +0x70, 0x3c5ad0\nSTRB.W          R3, [R4,#0x1B8]                                        ; +0x72, 0x3c5ad2\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x76, 0x3c5ad6\nMOV             R0, R6                                                 ; +0x78, 0x3c5ad8\nLDR             R3, [R5]                                               ; +0x7a, 0x3c5ada\nCMP             R2, R3                                                 ; +0x7c, 0x3c5adc\nBEQ             loc_3C5AE4                                             ; +0x7e, 0x3c5ade\nBLX             __stack_chk_fail                                       ; +0x80, 0x3c5ae0\nADD             SP, SP, #0x14                                          ; +0x84, 0x3c5ae4\nPOP             {R4-R7,PC}                                             ; +0x86, 0x3c5ae6", "xrefs": ["CCBlockLayer::create @ 0x3c5a08", "PauseLayer::init @ 0x48ec54", "EditorPauseLayer::init @ 0x509702"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}