; ; cocos2d::CCDirector::toggleShowFPS from 0x1800bff40 to 0x1800c007a (314 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b9408 ; ; 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_8], rbx ; +0x0, 0x1800bff40 push rbp ; +0x5, 0x1800bff45 push rsi ; +0x6, 0x1800bff46 push rdi ; +0x7, 0x1800bff47 sub rsp, 40h ; +0x8, 0x1800bff48 mov rax, cs:__security_cookie ; +0xc, 0x1800bff4c xor rax, rsp ; +0x13, 0x1800bff53 mov [rsp+58h+var_20], rax ; +0x16, 0x1800bff56 mov rbp, r9 ; +0x1b, 0x1800bff5b mov rdi, r8 ; +0x1e, 0x1800bff5e movzx ebx, dl ; +0x21, 0x1800bff61 mov rsi, rcx ; +0x24, 0x1800bff64 mov [rsp+58h+var_28], r8 ; +0x27, 0x1800bff67 mov rcx, [rcx+170h]; this ; +0x2c, 0x1800bff6c test rcx, rcx ; +0x33, 0x1800bff73 jz short loc_1800BFF88 ; +0x36, 0x1800bff76 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x38, 0x1800bff78 mov qword ptr [rsi+170h], 0 ; +0x3d, 0x1800bff7d mov [rsi+168h], bl ; +0x48, 0x1800bff88 test bl, bl ; +0x4e, 0x1800bff8e jz loc_1800C0058 ; +0x50, 0x1800bff90 mov rdx, rdi ; +0x56, 0x1800bff96 cmp qword ptr [rdi+18h], 0Fh ; +0x59, 0x1800bff99 jbe short loc_1800BFFA3 ; +0x5e, 0x1800bff9e mov rdx, [rdi]; char * ; +0x60, 0x1800bffa0 lea rcx, aFps0; "FPS: 0" ; +0x63, 0x1800bffa3 call ?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x6a, 0x1800bffaa mov [rsi+170h], rax ; +0x6f, 0x1800bffaf mov rdx, [rax] ; +0x76, 0x1800bffb6 movss xmm1, cs:dword_1800E6308 ; +0x79, 0x1800bffb9 mov rcx, rax ; +0x81, 0x1800bffc1 call qword ptr [rdx+0A0h] ; +0x84, 0x1800bffc4 mov rax, [rsi+170h] ; +0x8a, 0x1800bffca mov rbx, [rax] ; +0x91, 0x1800bffd1 movss xmm2, cs:flt_1800E61A8 ; +0x94, 0x1800bffd4 xorps xmm1, xmm1 ; +0x9c, 0x1800bffdc lea rcx, [rsp+58h+var_30] ; +0x9f, 0x1800bffdf call kmVec2Fill ; +0xa4, 0x1800bffe4 mov rdx, rax ; +0xa9, 0x1800bffe9 mov rcx, [rsi+170h] ; +0xac, 0x1800bffec call qword ptr [rbx+110h] ; +0xb3, 0x1800bfff3 mov rcx, [rsi+170h]; this ; +0xb9, 0x1800bfff9 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xc0, 0x1800c0000 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc5, 0x1800c0005 lea rdx, [rax+138h] ; +0xca, 0x1800c000a lea rcx, [rsp+58h+var_38] ; +0xd1, 0x1800c0011 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xd6, 0x1800c0016 mov rax, [rsi+170h] ; +0xdb, 0x1800c001b mov rbx, [rax] ; +0xe2, 0x1800c0022 movss xmm2, [rsp+58h+var_34] ; +0xe5, 0x1800c0025 addss xmm2, dword ptr [rbp+4] ; +0xeb, 0x1800c002b movss xmm1, dword ptr [rbp+0] ; +0xf0, 0x1800c0030 addss xmm1, cs:flt_1800E61A8 ; +0xf5, 0x1800c0035 lea rcx, [rsp+58h+var_30] ; +0xfd, 0x1800c003d call kmVec2Fill ; +0x102, 0x1800c0042 mov rdx, rax ; +0x107, 0x1800c0047 mov rcx, [rsi+170h] ; +0x10a, 0x1800c004a call qword ptr [rbx+0B8h] ; +0x111, 0x1800c0051 nop ; +0x117, 0x1800c0057 mov rcx, rdi ; +0x118, 0x1800c0058 call sub_180005B70 ; +0x11b, 0x1800c005b mov rcx, [rsp+58h+var_20] ; +0x120, 0x1800c0060 xor rcx, rsp; StackCookie ; +0x125, 0x1800c0065 call __security_check_cookie ; +0x128, 0x1800c0068 mov rbx, [rsp+58h+arg_8] ; +0x12d, 0x1800c006d add rsp, 40h ; +0x132, 0x1800c0072 pop rdi ; +0x136, 0x1800c0076 pop rsi ; +0x137, 0x1800c0077 pop rbp ; +0x138, 0x1800c0078 retn ; +0x139, 0x1800c0079