{"type": "func", "start": 5368998624, "end": 5368998924, "name": "CCCircleWave::draw", "pseudocode": "// \n// CCCircleWave::draw from 0x140046ae0 to 0x140046c0c (300 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140707f60\n// > <???> @ 0x14090f9b0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:31 +0000\n// \n\nvoid __fastcall CCCircleWave::draw(__int64 a1, __int64 a2, unsigned int a3, float a4)\n{\n  const struct cocos2d::CCPoint *v5; // rdx\n  cocos2d *v6; // rcx\n  unsigned int v7; // r8d\n\n  if ( *(_BYTE *)(a1 + 364) )\n    cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u, a3);\n  if ( *(_DWORD *)(a1 + 352) )\n    glLineWidth((float)*(int *)(a1 + 356));\n  cocos2d::ccDrawColor4B(\n    (cocos2d *)*(unsigned __int8 *)(a1 + 340),\n    *(_BYTE *)(a1 + 341),\n    *(_BYTE *)(a1 + 342),\n    (int)fminf(255.0, fmaxf(0.0, *(float *)(a1 + 360) * *(float *)(a1 + 336))));\n  v6 = (cocos2d *)(a1 + 344);\n  if ( *(_DWORD *)(a1 + 352) )\n    cocos2d::ccDrawCircle(v6, v5, 0.0, a4, 0);\n  else\n    cocos2d::ccDrawFilledCircle(v6, v5, 0.0, a4);\n  if ( *(_BYTE *)(a1 + 364) )\n    cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u, v7);\n}", "assembly": "; \n; CCCircleWave::draw from 0x140046ae0 to 0x140046c0c (300 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140707f60\n; > <???> @ 0x14090f9b0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x140046ae0\nsub     rsp, 30h                                                       ; +0x2, 0x140046ae2\ncmp     byte ptr [rcx+16Ch], 0                                         ; +0x6, 0x140046ae6\nmov     rbx, rcx                                                       ; +0xd, 0x140046aed\njz      short loc_140046B02                                            ; +0x10, 0x140046af0\nmov     edx, 1                                                         ; +0x12, 0x140046af2\nmov     ecx, 302h                                                      ; +0x17, 0x140046af7\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x1c, 0x140046afc\ncmp     dword ptr [rbx+160h], 0                                        ; +0x22, 0x140046b02\njz      short loc_140046B1C                                            ; +0x29, 0x140046b09\nmovd    xmm0, dword ptr [rbx+164h]                                     ; +0x2b, 0x140046b0b\ncvtdq2ps xmm0, xmm0; width                                             ; +0x33, 0x140046b13\ncall    cs:glLineWidth                                                 ; +0x36, 0x140046b16\nmovss   xmm0, dword ptr [rbx+168h]                                     ; +0x3c, 0x140046b1c\nxorps   xmm1, xmm1                                                     ; +0x44, 0x140046b24\nmulss   xmm0, dword ptr [rbx+150h]                                     ; +0x47, 0x140046b27\nmovzx   r8d, byte ptr [rbx+156h]                                       ; +0x4f, 0x140046b2f\nmovzx   edx, byte ptr [rbx+155h]                                       ; +0x57, 0x140046b37\nmovzx   ecx, byte ptr [rbx+154h]                                       ; +0x5e, 0x140046b3e\nmaxss   xmm1, xmm0                                                     ; +0x65, 0x140046b45\nmovss   xmm0, cs:dword_140835964                                       ; +0x69, 0x140046b49\nminss   xmm0, xmm1                                                     ; +0x71, 0x140046b51\ncvttss2si r9d, xmm0                                                    ; +0x75, 0x140046b55\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x7a, 0x140046b5a\nmovss   xmm1, dword ptr [rbx+14Ch]                                     ; +0x80, 0x140046b60\nmovss   xmm0, cs:flt_1408354EC                                         ; +0x88, 0x140046b68\ncomiss  xmm0, xmm1                                                     ; +0x90, 0x140046b70\njbe     short loc_140046B7D                                            ; +0x93, 0x140046b73\nmov     r9d, 0Ah                                                       ; +0x95, 0x140046b75\njmp     short loc_140046BC1                                            ; +0x9b, 0x140046b7b\nmovss   xmm0, cs:dword_1408355B4                                       ; +0x9d, 0x140046b7d\ncomiss  xmm0, xmm1                                                     ; +0xa5, 0x140046b85\njbe     short loc_140046B92                                            ; +0xa8, 0x140046b88\nmov     r9d, 0Fh                                                       ; +0xaa, 0x140046b8a\njmp     short loc_140046BC1                                            ; +0xb0, 0x140046b90\nmovss   xmm0, cs:dword_140835674                                       ; +0xb2, 0x140046b92\ncomiss  xmm0, xmm1                                                     ; +0xba, 0x140046b9a\njbe     short loc_140046BA7                                            ; +0xbd, 0x140046b9d\nmov     r9d, 14h                                                       ; +0xbf, 0x140046b9f\njmp     short loc_140046BC1                                            ; +0xc5, 0x140046ba5\nmovss   xmm0, cs:dword_1408358F4                                       ; +0xc7, 0x140046ba7\nmov     eax, 1Eh                                                       ; +0xcf, 0x140046baf\ncomiss  xmm0, xmm1                                                     ; +0xd4, 0x140046bb4\nmov     r9d, 32h ; '2'                                                 ; +0xd7, 0x140046bb7\ncmova   r9d, eax                                                       ; +0xdd, 0x140046bbd\ncmp     dword ptr [rbx+160h], 0                                        ; +0xe1, 0x140046bc1\nlea     rcx, [rbx+158h]                                                ; +0xe8, 0x140046bc8\nxorps   xmm2, xmm2                                                     ; +0xef, 0x140046bcf\njnz     short loc_140046BDC                                            ; +0xf2, 0x140046bd2\ncall    cs:?ccDrawFilledCircle@cocos2d@@YAXAEBVCCPoint@1@MMI@Z; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const &,float,float,uint) ; +0xf4, 0x140046bd4\njmp     short loc_140046BE7                                            ; +0xfa, 0x140046bda\nmov     [rsp+38h+var_18], 0                                            ; +0xfc, 0x140046bdc\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x101, 0x140046be1\ncmp     byte ptr [rbx+16Ch], 0                                         ; +0x107, 0x140046be7\njz      short loc_140046C06                                            ; +0x10e, 0x140046bee\nmov     edx, 303h                                                      ; +0x110, 0x140046bf0\nmov     ecx, 1                                                         ; +0x115, 0x140046bf5\nadd     rsp, 30h                                                       ; +0x11a, 0x140046bfa\npop     rbx                                                            ; +0x11e, 0x140046bfe\njmp     cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x11f, 0x140046bff\nadd     rsp, 30h                                                       ; +0x126, 0x140046c06\npop     rbx                                                            ; +0x12a, 0x140046c0a\nretn                                                                   ; +0x12b, 0x140046c0b", "xrefs": ["<???> @ 0x140707f60", "<???> @ 0x14090f9b0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}