; ; cocos2d::CCKeypadDispatcher::dispatchKeypadMSG from 0x1800b8160 to 0x1800b82ce (366 bytes) ; ; 6 xrefs: ; > cocos2d::CCLayer::keyDown @ 0x180052341 ; > cocos2d::CCApplication::updateControllerKeys @ 0x180076f7d ; > @ 0x18014a464 ; > @ 0x18014a4bc ; > @ 0x18014cf68 ; > @ 0x1801c2b5c ; ; 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:22:22 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x1800b8160 push r14 ; +0x5, 0x1800b8165 sub rsp, 20h ; +0x7, 0x1800b8167 mov r14d, edx ; +0xb, 0x1800b816b mov rbx, rcx ; +0xe, 0x1800b816e call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x11, 0x1800b8171 cmp byte ptr [rax+0B0h], 0 ; +0x16, 0x1800b8176 jnz loc_1800B82C0 ; +0x1d, 0x1800b817d mov rcx, [rbx+38h]; this ; +0x23, 0x1800b8183 mov [rsp+28h+arg_10], rdi ; +0x27, 0x1800b8187 mov [rsp+28h+arg_8], rsi ; +0x2c, 0x1800b818c mov byte ptr [rbx+40h], 1 ; +0x31, 0x1800b8191 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x35, 0x1800b8195 xor edi, edi ; +0x3a, 0x1800b819a test eax, eax ; +0x3c, 0x1800b819c jz short loc_1800B821E ; +0x3e, 0x1800b819e mov rcx, [rbx+38h]; this ; +0x40, 0x1800b81a0 mov esi, edi ; +0x44, 0x1800b81a4 mov [rsp+28h+arg_0], rbp ; +0x46, 0x1800b81a6 xor bpl, bpl ; +0x4b, 0x1800b81ab call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4e, 0x1800b81ae test eax, eax ; +0x53, 0x1800b81b3 jz short loc_1800B8219 ; +0x55, 0x1800b81b5 mov rcx, [rbx+38h]; this ; +0x57, 0x1800b81b7 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5b, 0x1800b81bb mov rcx, [rbx+38h]; this ; +0x60, 0x1800b81c0 mov edx, esi ; +0x64, 0x1800b81c4 not edx ; +0x66, 0x1800b81c6 add edx, eax; unsigned int ; +0x68, 0x1800b81c8 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6a, 0x1800b81ca test rax, rax ; +0x6f, 0x1800b81cf jz short loc_1800B8219 ; +0x72, 0x1800b81d2 test bpl, bpl ; +0x74, 0x1800b81d4 jnz short loc_1800B8219 ; +0x77, 0x1800b81d7 mov rcx, rax; this ; +0x79, 0x1800b81d9 call ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x7c, 0x1800b81dc mov edx, r14d ; +0x81, 0x1800b81e1 mov r8, rax ; +0x84, 0x1800b81e4 sub edx, 1 ; +0x87, 0x1800b81e7 jz short loc_1800B81FF ; +0x8a, 0x1800b81ea cmp edx, 1 ; +0x8c, 0x1800b81ec jnz short loc_1800B820A ; +0x8f, 0x1800b81ef mov rcx, [rax] ; +0x91, 0x1800b81f1 mov rdx, [rcx+8] ; +0x94, 0x1800b81f4 mov rcx, rax ; +0x98, 0x1800b81f8 call rdx ; +0x9b, 0x1800b81fb jmp short loc_1800B8207 ; +0x9d, 0x1800b81fd mov rax, [rax] ; +0x9f, 0x1800b81ff mov rcx, r8 ; +0xa2, 0x1800b8202 call qword ptr [rax] ; +0xa5, 0x1800b8205 mov bpl, 1 ; +0xa7, 0x1800b8207 mov rcx, [rbx+38h]; this ; +0xaa, 0x1800b820a inc esi ; +0xae, 0x1800b820e call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb0, 0x1800b8210 cmp esi, eax ; +0xb5, 0x1800b8215 jb short loc_1800B81B7 ; +0xb7, 0x1800b8217 mov rbp, [rsp+28h+arg_0] ; +0xb9, 0x1800b8219 mov [rbx+40h], dil ; +0xbe, 0x1800b821e cmp [rbx+42h], dil ; +0xc2, 0x1800b8222 jz short loc_1800B8261 ; +0xc6, 0x1800b8226 mov rcx, [rbx+50h] ; +0xc8, 0x1800b8228 mov esi, edi ; +0xcc, 0x1800b822c mov [rbx+42h], dil ; +0xce, 0x1800b822e cmp [rcx], edi ; +0xd2, 0x1800b8232 jbe short loc_1800B825C ; +0xd4, 0x1800b8234 nop word ptr [rax+rax+00000000h] ; +0xd6, 0x1800b8236 mov rdx, [rcx+10h] ; +0xe0, 0x1800b8240 mov rcx, rbx; this ; +0xe4, 0x1800b8244 mov eax, esi ; +0xe7, 0x1800b8247 mov rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate * ; +0xe9, 0x1800b8249 call ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0xed, 0x1800b824d mov rcx, [rbx+50h]; this ; +0xf2, 0x1800b8252 inc esi ; +0xf6, 0x1800b8256 cmp esi, [rcx] ; +0xf8, 0x1800b8258 jb short loc_1800B8240 ; +0xfa, 0x1800b825a call ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0xfc, 0x1800b825c mov rsi, [rsp+28h+arg_8] ; +0x101, 0x1800b8261 cmp [rbx+41h], dil ; +0x106, 0x1800b8266 jz short loc_1800B82AD ; +0x10a, 0x1800b826a mov rcx, [rbx+48h] ; +0x10c, 0x1800b826c mov [rbx+41h], dil ; +0x110, 0x1800b8270 cmp [rcx], edi ; +0x114, 0x1800b8274 jbe short loc_1800B82A8 ; +0x116, 0x1800b8276 nop dword ptr [rax+rax+00000000h] ; +0x118, 0x1800b8278 mov rcx, [rcx+10h] ; +0x120, 0x1800b8280 mov rcx, [rcx+rdi*8]; struct cocos2d::CCKeypadDelegate * ; +0x124, 0x1800b8284 call ?handlerWithDelegate@CCKeypadHandler@cocos2d@@SAPEAV12@PEAVCCKeypadDelegate@2@@Z; cocos2d::CCKeypadHandler::handlerWithDelegate(cocos2d::CCKeypadDelegate *) ; +0x128, 0x1800b8288 test rax, rax ; +0x12d, 0x1800b828d jz short loc_1800B829E ; +0x130, 0x1800b8290 mov rcx, [rbx+38h]; this ; +0x132, 0x1800b8292 mov rdx, rax; struct cocos2d::CCObject * ; +0x136, 0x1800b8296 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x139, 0x1800b8299 mov rcx, [rbx+48h]; this ; +0x13e, 0x1800b829e inc edi ; +0x142, 0x1800b82a2 cmp edi, [rcx] ; +0x144, 0x1800b82a4 jb short loc_1800B8280 ; +0x146, 0x1800b82a6 call ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x148, 0x1800b82a8 mov rdi, [rsp+28h+arg_10] ; +0x14d, 0x1800b82ad mov al, 1 ; +0x152, 0x1800b82b2 mov rbx, [rsp+28h+arg_18] ; +0x154, 0x1800b82b4 add rsp, 20h ; +0x159, 0x1800b82b9 pop r14 ; +0x15d, 0x1800b82bd retn ; +0x15f, 0x1800b82bf mov rbx, [rsp+28h+arg_18] ; +0x160, 0x1800b82c0 mov al, 1 ; +0x165, 0x1800b82c5 add rsp, 20h ; +0x167, 0x1800b82c7 pop r14 ; +0x16b, 0x1800b82cb retn ; +0x16d, 0x1800b82cd