; ; cocos2d::extension::CCTableView::_indexFromOffset from 0x1800157a0 to 0x18001582f (143 bytes) ; ; 3 xrefs: ; > cocos2d::extension::CCTableView::scrollViewDidScroll @ 0x180015e79 ; > @ 0x180032408 ; > @ 0x18004c794 ; ; 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_8], rbx ; +0x0, 0x1800157a0 mov [rsp+arg_10], rsi ; +0x5, 0x1800157a5 push rdi ; +0xa, 0x1800157aa sub rsp, 20h ; +0xb, 0x1800157ab mov rbx, rcx ; +0xf, 0x1800157af mov rdi, rdx ; +0x12, 0x1800157b2 mov rcx, [rcx+280h] ; +0x15, 0x1800157b5 mov rdx, rbx ; +0x1c, 0x1800157bc mov rax, [rcx] ; +0x1f, 0x1800157bf call qword ptr [rax+20h] ; +0x22, 0x1800157c2 cmp dword ptr [rbx+248h], 0 ; +0x25, 0x1800157c5 lea esi, [rax-1] ; +0x2c, 0x1800157cc jnz short loc_1800157F0 ; +0x2f, 0x1800157cf mov rcx, [rbx+1C0h] ; +0x31, 0x1800157d1 mov rdx, [rcx] ; +0x38, 0x1800157d8 call qword ptr [rdx+140h] ; +0x3b, 0x1800157db movss xmm0, dword ptr [rax+4] ; +0x41, 0x1800157e1 subss xmm0, dword ptr [rdi+4] ; +0x46, 0x1800157e6 movss dword ptr [rdi+4], xmm0 ; +0x4b, 0x1800157eb mov rdx, rdi ; +0x50, 0x1800157f0 lea rcx, [rsp+28h+arg_0] ; +0x53, 0x1800157f3 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x58, 0x1800157f8 mov rdx, rax ; +0x5e, 0x1800157fe mov rcx, rbx ; +0x61, 0x180015801 call ?__indexFromOffset@CCTableView@extension@cocos2d@@IEAAHVCCPoint@3@@Z; cocos2d::extension::CCTableView::__indexFromOffset(cocos2d::CCPoint) ; +0x64, 0x180015804 cmp eax, 0FFFFFFFFh ; +0x69, 0x180015809 jz short loc_18001581F ; +0x6c, 0x18001580c xor ecx, ecx ; +0x6e, 0x18001580e test eax, eax ; +0x70, 0x180015810 cmovs eax, ecx ; +0x72, 0x180015812 mov ecx, 0FFFFFFFFh ; +0x75, 0x180015815 cmp eax, esi ; +0x7a, 0x18001581a cmovg eax, ecx ; +0x7c, 0x18001581c mov rbx, [rsp+28h+arg_8] ; +0x7f, 0x18001581f mov rsi, [rsp+28h+arg_10] ; +0x84, 0x180015824 add rsp, 20h ; +0x89, 0x180015829 pop rdi ; +0x8d, 0x18001582d retn ; +0x8e, 0x18001582e