; ; CCCircleWave::draw from 0x140046ae0 to 0x140046c0c (300 bytes) ; ; 2 xrefs: ; > @ 0x140707f60 ; > @ 0x14090f9b0 ; ; 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:25:31 +0000 ; push rbx ; +0x0, 0x140046ae0 sub rsp, 30h ; +0x2, 0x140046ae2 cmp byte ptr [rcx+16Ch], 0 ; +0x6, 0x140046ae6 mov rbx, rcx ; +0xd, 0x140046aed jz short loc_140046B02 ; +0x10, 0x140046af0 mov edx, 1 ; +0x12, 0x140046af2 mov ecx, 302h ; +0x17, 0x140046af7 call cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x1c, 0x140046afc cmp dword ptr [rbx+160h], 0 ; +0x22, 0x140046b02 jz short loc_140046B1C ; +0x29, 0x140046b09 movd xmm0, dword ptr [rbx+164h] ; +0x2b, 0x140046b0b cvtdq2ps xmm0, xmm0; width ; +0x33, 0x140046b13 call cs:glLineWidth ; +0x36, 0x140046b16 movss xmm0, dword ptr [rbx+168h] ; +0x3c, 0x140046b1c xorps xmm1, xmm1 ; +0x44, 0x140046b24 mulss xmm0, dword ptr [rbx+150h] ; +0x47, 0x140046b27 movzx r8d, byte ptr [rbx+156h] ; +0x4f, 0x140046b2f movzx edx, byte ptr [rbx+155h] ; +0x57, 0x140046b37 movzx ecx, byte ptr [rbx+154h] ; +0x5e, 0x140046b3e maxss xmm1, xmm0 ; +0x65, 0x140046b45 movss xmm0, cs:dword_140835964 ; +0x69, 0x140046b49 minss xmm0, xmm1 ; +0x71, 0x140046b51 cvttss2si r9d, xmm0 ; +0x75, 0x140046b55 call cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x7a, 0x140046b5a movss xmm1, dword ptr [rbx+14Ch] ; +0x80, 0x140046b60 movss xmm0, cs:flt_1408354EC ; +0x88, 0x140046b68 comiss xmm0, xmm1 ; +0x90, 0x140046b70 jbe short loc_140046B7D ; +0x93, 0x140046b73 mov r9d, 0Ah ; +0x95, 0x140046b75 jmp short loc_140046BC1 ; +0x9b, 0x140046b7b movss xmm0, cs:dword_1408355B4 ; +0x9d, 0x140046b7d comiss xmm0, xmm1 ; +0xa5, 0x140046b85 jbe short loc_140046B92 ; +0xa8, 0x140046b88 mov r9d, 0Fh ; +0xaa, 0x140046b8a jmp short loc_140046BC1 ; +0xb0, 0x140046b90 movss xmm0, cs:dword_140835674 ; +0xb2, 0x140046b92 comiss xmm0, xmm1 ; +0xba, 0x140046b9a jbe short loc_140046BA7 ; +0xbd, 0x140046b9d mov r9d, 14h ; +0xbf, 0x140046b9f jmp short loc_140046BC1 ; +0xc5, 0x140046ba5 movss xmm0, cs:dword_1408358F4 ; +0xc7, 0x140046ba7 mov eax, 1Eh ; +0xcf, 0x140046baf comiss xmm0, xmm1 ; +0xd4, 0x140046bb4 mov r9d, 32h ; '2' ; +0xd7, 0x140046bb7 cmova r9d, eax ; +0xdd, 0x140046bbd cmp dword ptr [rbx+160h], 0 ; +0xe1, 0x140046bc1 lea rcx, [rbx+158h] ; +0xe8, 0x140046bc8 xorps xmm2, xmm2 ; +0xef, 0x140046bcf jnz short loc_140046BDC ; +0xf2, 0x140046bd2 call cs:?ccDrawFilledCircle@cocos2d@@YAXAEBVCCPoint@1@MMI@Z; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const &,float,float,uint) ; +0xf4, 0x140046bd4 jmp short loc_140046BE7 ; +0xfa, 0x140046bda mov [rsp+38h+var_18], 0 ; +0xfc, 0x140046bdc call cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x101, 0x140046be1 cmp byte ptr [rbx+16Ch], 0 ; +0x107, 0x140046be7 jz short loc_140046C06 ; +0x10e, 0x140046bee mov edx, 303h ; +0x110, 0x140046bf0 mov ecx, 1 ; +0x115, 0x140046bf5 add rsp, 30h ; +0x11a, 0x140046bfa pop rbx ; +0x11e, 0x140046bfe jmp cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x11f, 0x140046bff add rsp, 30h ; +0x126, 0x140046c06 pop rbx ; +0x12a, 0x140046c0a retn ; +0x12b, 0x140046c0b