; ; CCBlockLayer::init from 0x3c5a60 to 0x3c5ae8 (136 bytes) ; ; 3 xrefs: ; > CCBlockLayer::create @ 0x3c5a08 ; > PauseLayer::init @ 0x48ec54 ; > EditorPauseLayer::init @ 0x509702 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:46:34 +0000 ; PUSH {R4-R7,LR} ; +0x0, 0x3c5a60 SUB SP, SP, #0x14 ; +0x2, 0x3c5a62 LDR R5, =(__stack_chk_guard_ptr - 0x3C5A6E) ; +0x4, 0x3c5a64 ADD R7, SP, #4 ; +0x6, 0x3c5a66 MOV R4, R0 ; +0x8, 0x3c5a68 ADD R5, PC; __stack_chk_guard_ptr ; +0xa, 0x3c5a6a LDR R5, [R5]; __stack_chk_guard ; +0xc, 0x3c5a6c MOV R1, R7 ; +0xe, 0x3c5a6e LDR R3, [R5] ; +0x10, 0x3c5a70 STR R3, [SP,#0x14+var_8] ; +0x12, 0x3c5a72 MOVS R3, #0 ; +0x14, 0x3c5a74 STRB.W R3, [SP,#0x14+var_10] ; +0x16, 0x3c5a76 STRB.W R3, [SP,#0x14+var_F] ; +0x1a, 0x3c5a7a STRB.W R3, [SP,#0x14+var_E] ; +0x1e, 0x3c5a7e MOVS R3, #0x7D ; '}' ; +0x22, 0x3c5a82 STRB.W R3, [SP,#0x14+var_D] ; +0x24, 0x3c5a84 BL _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x28, 0x3c5a88 MOV R6, R0 ; +0x2c, 0x3c5a8c CBZ R0, loc_3C5AD6 ; +0x2e, 0x3c5a8e MOV R0, R4; this ; +0x30, 0x3c5a90 BL _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x32, 0x3c5a92 LDR R3, [R4] ; +0x36, 0x3c5a96 MOV R0, R4 ; +0x38, 0x3c5a98 MOVS R1, #1 ; +0x3a, 0x3c5a9a LDR.W R3, [R3,#0x1F4] ; +0x3c, 0x3c5a9c BLX R3 ; +0x40, 0x3c5aa0 LDR R3, [R4] ; +0x42, 0x3c5aa2 MOV R0, R4 ; +0x44, 0x3c5aa4 MOVS R1, #1 ; +0x46, 0x3c5aa6 LDR.W R3, [R3,#0x218] ; +0x48, 0x3c5aa8 BLX R3 ; +0x4c, 0x3c5aac LDR R3, [R4] ; +0x4e, 0x3c5aae MOVS R1, #1 ; +0x50, 0x3c5ab0 MOV R0, R4 ; +0x52, 0x3c5ab2 LDR.W R3, [R3,#0x220] ; +0x54, 0x3c5ab4 BLX R3 ; +0x58, 0x3c5ab8 BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5a, 0x3c5aba MOV R1, R0 ; +0x5e, 0x3c5abe MOV R0, R7; this ; +0x60, 0x3c5ac0 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x62, 0x3c5ac2 LDR R3, [R4] ; +0x66, 0x3c5ac6 MOV R0, R4 ; +0x68, 0x3c5ac8 LDR.W R3, [R3,#0x28C] ; +0x6a, 0x3c5aca BLX R3 ; +0x6e, 0x3c5ace MOVS R3, #1 ; +0x70, 0x3c5ad0 STRB.W R3, [R4,#0x1B8] ; +0x72, 0x3c5ad2 LDR R2, [SP,#0x14+var_8] ; +0x76, 0x3c5ad6 MOV R0, R6 ; +0x78, 0x3c5ad8 LDR R3, [R5] ; +0x7a, 0x3c5ada CMP R2, R3 ; +0x7c, 0x3c5adc BEQ loc_3C5AE4 ; +0x7e, 0x3c5ade BLX __stack_chk_fail ; +0x80, 0x3c5ae0 ADD SP, SP, #0x14 ; +0x84, 0x3c5ae4 POP {R4-R7,PC} ; +0x86, 0x3c5ae6