; ; cocos2d::CCLayer::setKeyboardEnabled from 0x180050bd0 to 0x180050c67 (151 bytes) ; ; 11 xrefs: ; > @ 0x1800ed2d0 ; > @ 0x1800ed790 ; > @ 0x1800edcc8 ; > @ 0x1800ee230 ; > @ 0x1800ee808 ; > @ 0x1800f70d8 ; > @ 0x180138084 ; > @ 0x180138098 ; > @ 0x1801380a8 ; > @ 0x1801438a8 ; > @ 0x1801b2088 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x180050bd0 push rdi ; +0x5, 0x180050bd5 sub rsp, 20h ; +0x6, 0x180050bd6 movzx edi, dl ; +0xa, 0x180050bda mov rbx, rcx ; +0xd, 0x180050bdd cmp dl, [rcx+16Bh] ; +0x10, 0x180050be0 jz short loc_180050C5C ; +0x16, 0x180050be6 cmp byte ptr [rcx+110h], 0 ; +0x18, 0x180050be8 mov [rcx+16Bh], dl ; +0x1f, 0x180050bef jz short loc_180050C5C ; +0x25, 0x180050bf5 mov [rsp+28h+arg_0], rsi ; +0x27, 0x180050bf7 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x180050bfc xor ecx, ecx ; +0x31, 0x180050c01 lea rsi, [rbx+158h] ; +0x33, 0x180050c03 mov rdx, [rax] ; +0x3a, 0x180050c0a test dil, dil ; +0x3d, 0x180050c0d jz short loc_180050C3C ; +0x40, 0x180050c10 test rbx, rbx ; +0x42, 0x180050c12 cmovz rsi, rcx ; +0x45, 0x180050c15 mov rcx, rax ; +0x49, 0x180050c19 call qword ptr [rdx+0B0h] ; +0x4c, 0x180050c1c mov rcx, rax; this ; +0x52, 0x180050c22 mov rdx, rsi; struct cocos2d::CCKeyboardDelegate * ; +0x55, 0x180050c25 mov rsi, [rsp+28h+arg_0] ; +0x58, 0x180050c28 mov rbx, [rsp+28h+arg_8] ; +0x5d, 0x180050c2d add rsp, 20h ; +0x62, 0x180050c32 pop rdi ; +0x66, 0x180050c36 jmp ?addDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardDispatcher::addDelegate(cocos2d::CCKeyboardDelegate *) ; +0x67, 0x180050c37 test rbx, rbx ; +0x6c, 0x180050c3c cmovz rsi, rcx ; +0x6f, 0x180050c3f mov rcx, rax ; +0x73, 0x180050c43 call qword ptr [rdx+0B0h] ; +0x76, 0x180050c46 mov rcx, rax; this ; +0x7c, 0x180050c4c mov rdx, rsi; struct cocos2d::CCMouseDelegate * ; +0x7f, 0x180050c4f call ?removeDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::removeDelegate(cocos2d::CCMouseDelegate *) ; +0x82, 0x180050c52 mov rsi, [rsp+28h+arg_0] ; +0x87, 0x180050c57 mov rbx, [rsp+28h+arg_8] ; +0x8c, 0x180050c5c add rsp, 20h ; +0x91, 0x180050c61 pop rdi ; +0x95, 0x180050c65 retn ; +0x96, 0x180050c66