; ; cocos2d::CCDirector::toggleShowFPS from 0x1800c3790 to 0x1800c38c3 (307 bytes) ; ; 2 xrefs: ; > @ 0x18014cf68 ; > @ 0x1801c36cc ; ; 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, 0x1800c3790 push rbp ; +0x2, 0x1800c3792 push rsi ; +0x3, 0x1800c3793 push rdi ; +0x4, 0x1800c3794 push r14 ; +0x5, 0x1800c3795 sub rsp, 40h ; +0x7, 0x1800c3797 mov rax, cs:__security_cookie ; +0xb, 0x1800c379b xor rax, rsp ; +0x12, 0x1800c37a2 mov [rsp+68h+var_30], rax ; +0x15, 0x1800c37a5 mov r14, r9 ; +0x1a, 0x1800c37aa mov rsi, r8 ; +0x1d, 0x1800c37ad movzx ebx, dl ; +0x20, 0x1800c37b0 mov rbp, rcx ; +0x23, 0x1800c37b3 mov [rsp+68h+var_38], r8 ; +0x26, 0x1800c37b6 mov rcx, [rcx+178h]; this ; +0x2b, 0x1800c37bb test rcx, rcx ; +0x32, 0x1800c37c2 jz short loc_1800C37D7 ; +0x35, 0x1800c37c5 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x37, 0x1800c37c7 mov qword ptr [rbp+178h], 0 ; +0x3c, 0x1800c37cc mov [rbp+170h], bl ; +0x47, 0x1800c37d7 test bl, bl ; +0x4d, 0x1800c37dd jz loc_1800C38A3 ; +0x4f, 0x1800c37df mov rdx, rsi ; +0x55, 0x1800c37e5 cmp qword ptr [rsi+18h], 0Fh ; +0x58, 0x1800c37e8 jbe short loc_1800C37F2 ; +0x5d, 0x1800c37ed mov rdx, [rsi]; char * ; +0x5f, 0x1800c37ef lea rcx, aFps0; "FPS: 0" ; +0x62, 0x1800c37f2 call ?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x69, 0x1800c37f9 mov [rbp+178h], rax ; +0x6e, 0x1800c37fe mov rcx, [rax] ; +0x75, 0x1800c3805 mov rdx, [rcx+0A0h] ; +0x78, 0x1800c3808 movss xmm1, cs:dword_1800EC358 ; +0x7f, 0x1800c380f mov rcx, rax ; +0x87, 0x1800c3817 call rdx ; +0x8a, 0x1800c381a mov rdi, [rbp+178h] ; +0x8c, 0x1800c381c mov rbx, [rdi] ; +0x93, 0x1800c3823 movss xmm2, cs:flt_1800EC208 ; +0x96, 0x1800c3826 xorps xmm1, xmm1 ; +0x9e, 0x1800c382e lea rcx, [rsp+68h+var_40] ; +0xa1, 0x1800c3831 call kmVec2Fill ; +0xa6, 0x1800c3836 mov rdx, rax ; +0xab, 0x1800c383b mov rcx, rdi ; +0xae, 0x1800c383e call qword ptr [rbx+120h] ; +0xb1, 0x1800c3841 mov rcx, [rbp+178h]; this ; +0xb7, 0x1800c3847 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xbe, 0x1800c384e call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc3, 0x1800c3853 lea rdx, [rax+140h] ; +0xc8, 0x1800c3858 lea rcx, [rsp+68h+var_48] ; +0xcf, 0x1800c385f call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xd4, 0x1800c3864 mov rdi, [rbp+178h] ; +0xd9, 0x1800c3869 mov rbx, [rdi] ; +0xe0, 0x1800c3870 movss xmm2, [rsp+68h+var_44] ; +0xe3, 0x1800c3873 addss xmm2, dword ptr [r14+4] ; +0xe9, 0x1800c3879 movss xmm1, dword ptr [r14] ; +0xef, 0x1800c387f addss xmm1, cs:flt_1800EC208 ; +0xf4, 0x1800c3884 lea rcx, [rsp+68h+var_40] ; +0xfc, 0x1800c388c call kmVec2Fill ; +0x101, 0x1800c3891 mov rdx, rax ; +0x106, 0x1800c3896 mov rcx, rdi ; +0x109, 0x1800c3899 call qword ptr [rbx+0B8h] ; +0x10c, 0x1800c389c nop ; +0x112, 0x1800c38a2 mov rcx, rsi ; +0x113, 0x1800c38a3 call sub_180005C70 ; +0x116, 0x1800c38a6 mov rcx, [rsp+68h+var_30] ; +0x11b, 0x1800c38ab xor rcx, rsp; StackCookie ; +0x120, 0x1800c38b0 call __security_check_cookie ; +0x123, 0x1800c38b3 add rsp, 40h ; +0x128, 0x1800c38b8 pop r14 ; +0x12c, 0x1800c38bc pop rdi ; +0x12e, 0x1800c38be pop rsi ; +0x12f, 0x1800c38bf pop rbp ; +0x130, 0x1800c38c0 pop rbx ; +0x131, 0x1800c38c1 retn ; +0x132, 0x1800c38c2