; ; cocos2d::CCDirector::showFPSLabel from 0x1800c35d0 to 0x1800c3691 (193 bytes) ; ; 3 xrefs: ; > cocos2d::CCDirector::drawScene @ 0x1800c1c92 ; > @ 0x18014cf68 ; > @ 0x1801c36a8 ; ; 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:26 +0000 ; push rbx ; +0x0, 0x1800c35d0 sub rsp, 20h ; +0x2, 0x1800c35d2 cmp qword ptr [rcx+178h], 0 ; +0x6, 0x1800c35d6 mov rbx, rcx ; +0xe, 0x1800c35de jz loc_1800C368B ; +0x11, 0x1800c35e1 mov eax, [rcx+108h] ; +0x17, 0x1800c35e7 movss xmm1, dword ptr [rcx+0A8h] ; +0x1d, 0x1800c35ed inc eax ; +0x25, 0x1800c35f5 addss xmm1, dword ptr [rcx+0DCh] ; +0x27, 0x1800c35f7 mov [rcx+108h], eax ; +0x2f, 0x1800c35ff comiss xmm1, cs:flt_1800EED9C ; +0x35, 0x1800c3605 movss dword ptr [rcx+0DCh], xmm1 ; +0x3c, 0x1800c360c jbe short loc_1800C3675 ; +0x44, 0x1800c3614 xorps xmm0, xmm0 ; +0x46, 0x1800c3616 cvtsi2ss xmm0, rax ; +0x49, 0x1800c3619 xor eax, eax ; +0x4e, 0x1800c361e mov [rcx+108h], eax ; +0x50, 0x1800c3620 mov [rcx+0DCh], eax ; +0x56, 0x1800c3626 divss xmm0, xmm1; X ; +0x5c, 0x1800c362c movss dword ptr [rcx+0E4h], xmm0 ; +0x60, 0x1800c3630 call cs:__imp_roundf ; +0x68, 0x1800c3638 mov rcx, [rbx+150h]; Buffer ; +0x6e, 0x1800c363e lea r8, aFpsI; "FPS: %i" ; +0x75, 0x1800c3645 cvttss2si r9d, xmm0 ; +0x7c, 0x1800c364c mov edx, 10h; BufferCount ; +0x81, 0x1800c3651 call sub_1800C3B80 ; +0x86, 0x1800c3656 mov rcx, [rbx+178h] ; +0x8b, 0x1800c365b mov rdx, [rbx+150h] ; +0x92, 0x1800c3662 add rcx, 168h ; +0x99, 0x1800c3669 mov rax, [rcx] ; +0xa0, 0x1800c3670 call qword ptr [rax] ; +0xa3, 0x1800c3673 mov rcx, [rbx+178h] ; +0xa5, 0x1800c3675 mov rax, [rcx] ; +0xac, 0x1800c367c add rsp, 20h ; +0xaf, 0x1800c367f pop rbx ; +0xb3, 0x1800c3683 jmp qword ptr [rax+2E8h] ; +0xb4, 0x1800c3684 add rsp, 20h ; +0xbb, 0x1800c368b pop rbx ; +0xbf, 0x1800c368f retn ; +0xc0, 0x1800c3690