; ; cocos2d::extension::CCTableView::__indexFromOffset from 0x180015830 to 0x1800158e4 (180 bytes) ; ; 5 xrefs: ; > cocos2d::extension::CCTableView::_indexFromOffset @ 0x180015804 ; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015db4 ; > cocos2d::extension::CCTableView::ccTouchBegan @ 0x1800161ca ; > @ 0x180032408 ; > @ 0x18004c7a0 ; ; 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 12:15:41 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180015830 mov [rsp+arg_8], rbp ; +0x5, 0x180015835 mov [rsp+arg_10], rsi ; +0xa, 0x18001583a push rdi ; +0xf, 0x18001583f sub rsp, 20h ; +0x10, 0x180015840 mov rbp, rcx ; +0x14, 0x180015844 mov rbx, rdx ; +0x17, 0x180015847 mov rcx, [rcx+280h] ; +0x1a, 0x18001584a xor esi, esi ; +0x21, 0x180015851 mov rdx, rbp ; +0x23, 0x180015853 mov edi, esi ; +0x26, 0x180015856 mov rax, [rcx] ; +0x28, 0x180015858 call qword ptr [rax+20h] ; +0x2b, 0x18001585b cmp [rbp+1B0h], esi ; +0x2e, 0x18001585e lea rdx, [rbx+4] ; +0x34, 0x180015864 cmovz rdx, rbx ; +0x38, 0x180015868 sub eax, 1 ; +0x3c, 0x18001586c movss xmm1, dword ptr [rdx] ; +0x3f, 0x18001586f js short loc_1800158CD ; +0x43, 0x180015873 mov r8, [rbp+258h] ; +0x45, 0x180015875 nop dword ptr [rax+00h] ; +0x4c, 0x18001587c mov r9d, eax ; +0x50, 0x180015880 sub eax, edi ; +0x53, 0x180015883 jns short loc_180015889 ; +0x55, 0x180015885 inc eax ; +0x57, 0x180015887 sar eax, 1 ; +0x59, 0x180015889 lea ecx, [rax+rdi] ; +0x5b, 0x18001588b movsxd rax, ecx ; +0x5e, 0x18001588e lea edx, [rcx+1] ; +0x61, 0x180015891 movss xmm2, dword ptr [r8+rax*4] ; +0x64, 0x180015894 comiss xmm1, xmm2 ; +0x6a, 0x18001589a jb short loc_1800158AD ; +0x6d, 0x18001589d movsxd rax, edx ; +0x6f, 0x18001589f movss xmm0, dword ptr [r8+rax*4] ; +0x72, 0x1800158a2 comiss xmm0, xmm1 ; +0x78, 0x1800158a8 jnb short loc_1800158C9 ; +0x7b, 0x1800158ab comiss xmm2, xmm1 ; +0x7d, 0x1800158ad lea eax, [rcx-1] ; +0x80, 0x1800158b0 cmovbe eax, r9d ; +0x83, 0x1800158b3 cmovbe edi, edx ; +0x87, 0x1800158b7 cmp eax, edi ; +0x8a, 0x1800158ba jge short loc_180015880 ; +0x8c, 0x1800158bc test edi, edi ; +0x8e, 0x1800158be setle sil ; +0x90, 0x1800158c0 lea eax, [rsi-1] ; +0x94, 0x1800158c4 jmp short loc_1800158CF ; +0x97, 0x1800158c7 mov eax, ecx ; +0x99, 0x1800158c9 jmp short loc_1800158CF ; +0x9b, 0x1800158cb xor eax, eax ; +0x9d, 0x1800158cd mov rbx, [rsp+28h+arg_0] ; +0x9f, 0x1800158cf mov rbp, [rsp+28h+arg_8] ; +0xa4, 0x1800158d4 mov rsi, [rsp+28h+arg_10] ; +0xa9, 0x1800158d9 add rsp, 20h ; +0xae, 0x1800158de pop rdi ; +0xb2, 0x1800158e2 retn ; +0xb3, 0x1800158e3