; ; cocos2d::CCLayer::setKeypadEnabled from 0x180050c70 to 0x180050d12 (162 bytes) ; ; 11 xrefs: ; > @ 0x1800ed2c0 ; > @ 0x1800ed780 ; > @ 0x1800edcb8 ; > @ 0x1800ee220 ; > @ 0x1800ee7f8 ; > @ 0x1800f70c8 ; > @ 0x18013804c ; > @ 0x180138060 ; > @ 0x180138070 ; > @ 0x1801438a8 ; > @ 0x1801b20b8 ; ; 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, 0x180050c70 push rdi ; +0x5, 0x180050c75 sub rsp, 20h ; +0x6, 0x180050c76 mov rax, [rcx] ; +0xa, 0x180050c7a movzx edi, dl ; +0xd, 0x180050c7d mov rbx, rcx ; +0x10, 0x180050c80 call qword ptr [rax+3E0h] ; +0x13, 0x180050c83 cmp dil, [rbx+16Ah] ; +0x19, 0x180050c89 jz short loc_180050D07 ; +0x20, 0x180050c90 cmp byte ptr [rbx+110h], 0 ; +0x22, 0x180050c92 mov [rbx+16Ah], dil ; +0x29, 0x180050c99 jz short loc_180050D07 ; +0x30, 0x180050ca0 mov [rsp+28h+arg_0], rsi ; +0x32, 0x180050ca2 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x180050ca7 xor ecx, ecx ; +0x3c, 0x180050cac lea rsi, [rbx+150h] ; +0x3e, 0x180050cae mov rdx, [rax] ; +0x45, 0x180050cb5 test dil, dil ; +0x48, 0x180050cb8 jz short loc_180050CE7 ; +0x4b, 0x180050cbb test rbx, rbx ; +0x4d, 0x180050cbd cmovz rsi, rcx ; +0x50, 0x180050cc0 mov rcx, rax ; +0x54, 0x180050cc4 call qword ptr [rdx+0A0h] ; +0x57, 0x180050cc7 mov rcx, rax; this ; +0x5d, 0x180050ccd mov rdx, rsi; struct cocos2d::CCKeypadDelegate * ; +0x60, 0x180050cd0 mov rsi, [rsp+28h+arg_0] ; +0x63, 0x180050cd3 mov rbx, [rsp+28h+arg_8] ; +0x68, 0x180050cd8 add rsp, 20h ; +0x6d, 0x180050cdd pop rdi ; +0x71, 0x180050ce1 jmp ?addDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z; cocos2d::CCKeypadDispatcher::addDelegate(cocos2d::CCKeypadDelegate *) ; +0x72, 0x180050ce2 test rbx, rbx ; +0x77, 0x180050ce7 cmovz rsi, rcx ; +0x7a, 0x180050cea mov rcx, rax ; +0x7e, 0x180050cee call qword ptr [rdx+0A0h] ; +0x81, 0x180050cf1 mov rcx, rax; this ; +0x87, 0x180050cf7 mov rdx, rsi; struct cocos2d::CCMouseDelegate * ; +0x8a, 0x180050cfa call ?removeDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::removeDelegate(cocos2d::CCMouseDelegate *) ; +0x8d, 0x180050cfd mov rsi, [rsp+28h+arg_0] ; +0x92, 0x180050d02 mov rbx, [rsp+28h+arg_8] ; +0x97, 0x180050d07 add rsp, 20h ; +0x9c, 0x180050d0c pop rdi ; +0xa0, 0x180050d10 retn ; +0xa1, 0x180050d11