; ; cocos2d::extension::CCTableView::__indexFromOffset from 0x180015c30 to 0x180015ce3 (179 bytes) ; ; 5 xrefs: ; > cocos2d::extension::CCTableView::_indexFromOffset @ 0x180015c04 ; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x18001615c ; > cocos2d::extension::CCTableView::ccTouchBegan @ 0x180016557 ; > @ 0x18002fdf8 ; > @ 0x18004a86c ; ; 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_0], rbx ; +0x0, 0x180015c30 mov [rsp+arg_8], rbp ; +0x5, 0x180015c35 mov [rsp+arg_10], rsi ; +0xa, 0x180015c3a push rdi ; +0xf, 0x180015c3f sub rsp, 20h ; +0x10, 0x180015c40 mov rbp, rcx ; +0x14, 0x180015c44 mov rbx, rdx ; +0x17, 0x180015c47 mov rcx, [rcx+280h] ; +0x1a, 0x180015c4a xor esi, esi ; +0x21, 0x180015c51 mov rdx, rbp ; +0x23, 0x180015c53 mov edi, esi ; +0x26, 0x180015c56 mov rax, [rcx] ; +0x28, 0x180015c58 call qword ptr [rax+20h] ; +0x2b, 0x180015c5b cmp [rbp+1B0h], esi ; +0x2e, 0x180015c5e lea r8, [rbx+4] ; +0x34, 0x180015c64 cmovz r8, rbx ; +0x38, 0x180015c68 sub eax, 1 ; +0x3c, 0x180015c6c movss xmm1, dword ptr [r8] ; +0x3f, 0x180015c6f js short loc_180015CCC ; +0x44, 0x180015c74 mov r8, [rbp+258h] ; +0x46, 0x180015c76 nop dword ptr [rax] ; +0x4d, 0x180015c7d mov r9d, eax ; +0x50, 0x180015c80 sub eax, edi ; +0x53, 0x180015c83 cdq ; +0x55, 0x180015c85 sub eax, edx ; +0x56, 0x180015c86 sar eax, 1 ; +0x58, 0x180015c88 lea ecx, [rdi+rax] ; +0x5a, 0x180015c8a movsxd rax, ecx ; +0x5d, 0x180015c8d lea edx, [rcx+1] ; +0x60, 0x180015c90 movss xmm2, dword ptr [r8+rax*4] ; +0x63, 0x180015c93 comiss xmm1, xmm2 ; +0x69, 0x180015c99 jb short loc_180015CAC ; +0x6c, 0x180015c9c movsxd rax, edx ; +0x6e, 0x180015c9e movss xmm0, dword ptr [r8+rax*4] ; +0x71, 0x180015ca1 comiss xmm0, xmm1 ; +0x77, 0x180015ca7 jnb short loc_180015CC8 ; +0x7a, 0x180015caa comiss xmm2, xmm1 ; +0x7c, 0x180015cac lea eax, [rcx-1] ; +0x7f, 0x180015caf cmovbe eax, r9d ; +0x82, 0x180015cb2 cmovbe edi, edx ; +0x86, 0x180015cb6 cmp eax, edi ; +0x89, 0x180015cb9 jge short loc_180015C80 ; +0x8b, 0x180015cbb test edi, edi ; +0x8d, 0x180015cbd setle sil ; +0x8f, 0x180015cbf lea eax, [rsi-1] ; +0x93, 0x180015cc3 jmp short loc_180015CCE ; +0x96, 0x180015cc6 mov eax, ecx ; +0x98, 0x180015cc8 jmp short loc_180015CCE ; +0x9a, 0x180015cca xor eax, eax ; +0x9c, 0x180015ccc mov rbx, [rsp+28h+arg_0] ; +0x9e, 0x180015cce mov rbp, [rsp+28h+arg_8] ; +0xa3, 0x180015cd3 mov rsi, [rsp+28h+arg_10] ; +0xa8, 0x180015cd8 add rsp, 20h ; +0xad, 0x180015cdd pop rdi ; +0xb1, 0x180015ce1 retn ; +0xb2, 0x180015ce2