; ; cocos2d::CCLayer::setKeyboardEnabled from 0x1800529f0 to 0x180052a87 (151 bytes) ; ; 11 xrefs: ; > @ 0x1800f3430 ; > @ 0x1800f3910 ; > @ 0x1800f3e68 ; > @ 0x1800f43f0 ; > @ 0x1800f49e8 ; > @ 0x1800fd520 ; > @ 0x1801412ac ; > @ 0x1801412c0 ; > @ 0x1801412d0 ; > @ 0x18014cf68 ; > @ 0x1801bc31c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; 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:21:46 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800529f0 push rdi ; +0x5, 0x1800529f5 sub rsp, 20h ; +0x6, 0x1800529f6 movzx edi, dl ; +0xa, 0x1800529fa mov rbx, rcx ; +0xd, 0x1800529fd cmp dl, [rcx+16Bh] ; +0x10, 0x180052a00 jz short loc_180052A7C ; +0x16, 0x180052a06 cmp byte ptr [rcx+110h], 0 ; +0x18, 0x180052a08 mov [rcx+16Bh], dl ; +0x1f, 0x180052a0f jz short loc_180052A7C ; +0x25, 0x180052a15 mov [rsp+28h+arg_0], rsi ; +0x27, 0x180052a17 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x180052a1c xor ecx, ecx ; +0x31, 0x180052a21 lea rsi, [rbx+158h] ; +0x33, 0x180052a23 mov rdx, [rax] ; +0x3a, 0x180052a2a test dil, dil ; +0x3d, 0x180052a2d jz short loc_180052A5C ; +0x40, 0x180052a30 test rbx, rbx ; +0x42, 0x180052a32 cmovz rsi, rcx ; +0x45, 0x180052a35 mov rcx, rax ; +0x49, 0x180052a39 call qword ptr [rdx+0B0h] ; +0x4c, 0x180052a3c mov rcx, rax; this ; +0x52, 0x180052a42 mov rdx, rsi; struct cocos2d::CCKeyboardDelegate * ; +0x55, 0x180052a45 mov rsi, [rsp+28h+arg_0] ; +0x58, 0x180052a48 mov rbx, [rsp+28h+arg_8] ; +0x5d, 0x180052a4d add rsp, 20h ; +0x62, 0x180052a52 pop rdi ; +0x66, 0x180052a56 jmp ?addDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardDispatcher::addDelegate(cocos2d::CCKeyboardDelegate *) ; +0x67, 0x180052a57 test rbx, rbx ; +0x6c, 0x180052a5c cmovz rsi, rcx ; +0x6f, 0x180052a5f mov rcx, rax ; +0x73, 0x180052a63 call qword ptr [rdx+0B0h] ; +0x76, 0x180052a66 mov rcx, rax; this ; +0x7c, 0x180052a6c mov rdx, rsi; struct cocos2d::CCMouseDelegate * ; +0x7f, 0x180052a6f call ?removeDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::removeDelegate(cocos2d::CCMouseDelegate *) ; +0x82, 0x180052a72 mov rsi, [rsp+28h+arg_0] ; +0x87, 0x180052a77 mov rbx, [rsp+28h+arg_8] ; +0x8c, 0x180052a7c add rsp, 20h ; +0x91, 0x180052a81 pop rdi ; +0x95, 0x180052a85 retn ; +0x96, 0x180052a86