; ; CCBlockLayer::init from 0x2e5d04 to 0x2e5d8c (136 bytes) ; ; 3 xrefs: ; > CCBlockLayer::create @ 0x2e5cb0 ; > PauseLayer::init @ 0x3a7bfe ; > EditorPauseLayer::init @ 0x3ff68e ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH {R4-R7,LR} ; +0x0, 0x2e5d04 SUB SP, SP, #0x14 ; +0x2, 0x2e5d06 LDR R5, =(__stack_chk_guard_ptr - 0x2E5D12) ; +0x4, 0x2e5d08 ADD R7, SP, #4 ; +0x6, 0x2e5d0a MOV R4, R0 ; +0x8, 0x2e5d0c ADD R5, PC; __stack_chk_guard_ptr ; +0xa, 0x2e5d0e LDR R5, [R5]; __stack_chk_guard ; +0xc, 0x2e5d10 MOV R1, R7 ; +0xe, 0x2e5d12 LDR R3, [R5] ; +0x10, 0x2e5d14 STR R3, [SP,#0x14+var_8] ; +0x12, 0x2e5d16 MOVS R3, #0 ; +0x14, 0x2e5d18 STRB.W R3, [SP,#0x14+var_10] ; +0x16, 0x2e5d1a STRB.W R3, [SP,#0x14+var_F] ; +0x1a, 0x2e5d1e STRB.W R3, [SP,#0x14+var_E] ; +0x1e, 0x2e5d22 MOVS R3, #0x7D ; '}' ; +0x22, 0x2e5d26 STRB.W R3, [SP,#0x14+var_D] ; +0x24, 0x2e5d28 BL _ZN7cocos2d12CCLayerColor13initWithColorERKNS_10_ccColor4BE; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const&) ; +0x28, 0x2e5d2c MOV R6, R0 ; +0x2c, 0x2e5d30 CBZ R0, loc_2E5D7A ; +0x2e, 0x2e5d32 MOV R0, R4; this ; +0x30, 0x2e5d34 BL _ZN12CCBlockLayer18incrementForcePrioEv; CCBlockLayer::incrementForcePrio(void) ; +0x32, 0x2e5d36 LDR R3, [R4] ; +0x36, 0x2e5d3a MOV R0, R4 ; +0x38, 0x2e5d3c MOVS R1, #1 ; +0x3a, 0x2e5d3e LDR.W R3, [R3,#0x1EC] ; +0x3c, 0x2e5d40 BLX R3 ; +0x40, 0x2e5d44 LDR R3, [R4] ; +0x42, 0x2e5d46 MOV R0, R4 ; +0x44, 0x2e5d48 MOVS R1, #1 ; +0x46, 0x2e5d4a LDR.W R3, [R3,#0x210] ; +0x48, 0x2e5d4c BLX R3 ; +0x4c, 0x2e5d50 LDR R3, [R4] ; +0x4e, 0x2e5d52 MOVS R1, #1 ; +0x50, 0x2e5d54 MOV R0, R4 ; +0x52, 0x2e5d56 LDR.W R3, [R3,#0x218] ; +0x54, 0x2e5d58 BLX R3 ; +0x58, 0x2e5d5c BL _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x5a, 0x2e5d5e MOV R1, R0 ; +0x5e, 0x2e5d62 MOV R0, R7; this ; +0x60, 0x2e5d64 BL _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x62, 0x2e5d66 LDR R3, [R4] ; +0x66, 0x2e5d6a MOV R0, R4 ; +0x68, 0x2e5d6c LDR.W R3, [R3,#0x284] ; +0x6a, 0x2e5d6e BLX R3 ; +0x6e, 0x2e5d72 MOVS R3, #1 ; +0x70, 0x2e5d74 STRB.W R3, [R4,#0x1B8] ; +0x72, 0x2e5d76 LDR R2, [SP,#0x14+var_8] ; +0x76, 0x2e5d7a MOV R0, R6 ; +0x78, 0x2e5d7c LDR R3, [R5] ; +0x7a, 0x2e5d7e CMP R2, R3 ; +0x7c, 0x2e5d80 BEQ loc_2E5D88 ; +0x7e, 0x2e5d82 BLX __stack_chk_fail ; +0x80, 0x2e5d84 ADD SP, SP, #0x14 ; +0x84, 0x2e5d88 POP {R4-R7,PC} ; +0x86, 0x2e5d8a