{"type": "func", "start": 5368983104, "end": 5368983408, "name": "CCCircleWave::draw", "pseudocode": "// \n// CCCircleWave::draw from 0x140042e40 to 0x140042f70 (304 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14052d3b0\n// > <???> @ 0x1406c4494\n// > <???> @ 0x1406c44a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCCircleWave::draw(CCCircleWave *a1)\n{\n  float v2; // xmm2_4\n  float v3; // xmm1_4\n  const struct cocos2d::CCPoint *v4; // rdx\n  float m_radius; // xmm1_4\n  char v6; // r9\n  cocos2d::CCPoint *p_m_position; // rcx\n\n  if ( a1->m_blendAdditive )\n    cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u);\n  if ( a1->m_circleMode )\n    glLineWidth((float)a1->m_lineWidth);\n  v2 = 255.0;\n  v3 = fmaxf(0.0, a1->m_opacityMod * a1->m_opacity);\n  if ( v3 <= 255.0 )\n    v2 = v3;\n  cocos2d::ccDrawColor4B((cocos2d *)a1->m_color.r, a1->m_color.g, a1->m_color.b, (int)v2);\n  m_radius = a1->m_radius;\n  if ( m_radius >= 10.0 )\n  {\n    if ( m_radius >= 20.0 )\n    {\n      if ( m_radius >= 40.0 )\n      {\n        v6 = 50;\n        if ( m_radius < 200.0 )\n          v6 = 30;\n      }\n      else\n      {\n        v6 = 20;\n      }\n    }\n    else\n    {\n      v6 = 15;\n    }\n  }\n  else\n  {\n    v6 = 10;\n  }\n  p_m_position = &a1->m_position;\n  if ( a1->m_circleMode )\n    cocos2d::ccDrawCircle((cocos2d *)p_m_position, v4, 0.0, v6);\n  else\n    cocos2d::ccDrawFilledCircle((cocos2d *)p_m_position, v4, 0.0);\n  if ( a1->m_blendAdditive )\n    cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u);\n}", "assembly": "; \n; CCCircleWave::draw from 0x140042e40 to 0x140042f70 (304 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14052d3b0\n; > <???> @ 0x1406c4494\n; > <???> @ 0x1406c44a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140042e40\nsub     rsp, 30h                                                       ; +0x2, 0x140042e42\ncmp     byte ptr [rcx+16Ch], 0                                         ; +0x6, 0x140042e46\nmov     rbx, rcx                                                       ; +0xd, 0x140042e4d\njz      short loc_140042E62                                            ; +0x10, 0x140042e50\nmov     edx, 1                                                         ; +0x12, 0x140042e52\nmov     ecx, 302h                                                      ; +0x17, 0x140042e57\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x1c, 0x140042e5c\ncmp     dword ptr [rbx+160h], 0                                        ; +0x22, 0x140042e62\njz      short loc_140042E7C                                            ; +0x29, 0x140042e69\nmovd    xmm0, dword ptr [rbx+164h]                                     ; +0x2b, 0x140042e6b\ncvtdq2ps xmm0, xmm0; width                                             ; +0x33, 0x140042e73\ncall    cs:glLineWidth                                                 ; +0x36, 0x140042e76\nmovss   xmm0, dword ptr [rbx+168h]                                     ; +0x3c, 0x140042e7c\nxorps   xmm1, xmm1                                                     ; +0x44, 0x140042e84\nmulss   xmm0, dword ptr [rbx+150h]                                     ; +0x47, 0x140042e87\nmovss   xmm2, cs:dword_140623418                                       ; +0x4f, 0x140042e8f\nmaxss   xmm1, xmm0                                                     ; +0x57, 0x140042e97\ncomiss  xmm1, xmm2                                                     ; +0x5b, 0x140042e9b\nja      short loc_140042EA3                                            ; +0x5e, 0x140042e9e\nmovaps  xmm2, xmm1                                                     ; +0x60, 0x140042ea0\nmovzx   r8d, byte ptr [rbx+156h]                                       ; +0x63, 0x140042ea3\nmovzx   edx, byte ptr [rbx+155h]                                       ; +0x6b, 0x140042eab\nmovzx   ecx, byte ptr [rbx+154h]                                       ; +0x72, 0x140042eb2\ncvttss2si r9d, xmm2                                                    ; +0x79, 0x140042eb9\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x7e, 0x140042ebe\nmovss   xmm1, dword ptr [rbx+14Ch]                                     ; +0x84, 0x140042ec4\nmovss   xmm0, cs:flt_14062307C                                         ; +0x8c, 0x140042ecc\ncomiss  xmm0, xmm1                                                     ; +0x94, 0x140042ed4\njbe     short loc_140042EE1                                            ; +0x97, 0x140042ed7\nmov     r9d, 0Ah                                                       ; +0x99, 0x140042ed9\njmp     short loc_140042F25                                            ; +0x9f, 0x140042edf\nmovss   xmm0, cs:dword_140623120                                       ; +0xa1, 0x140042ee1\ncomiss  xmm0, xmm1                                                     ; +0xa9, 0x140042ee9\njbe     short loc_140042EF6                                            ; +0xac, 0x140042eec\nmov     r9d, 0Fh                                                       ; +0xae, 0x140042eee\njmp     short loc_140042F25                                            ; +0xb4, 0x140042ef4\nmovss   xmm0, cs:dword_1406231B0                                       ; +0xb6, 0x140042ef6\ncomiss  xmm0, xmm1                                                     ; +0xbe, 0x140042efe\njbe     short loc_140042F0B                                            ; +0xc1, 0x140042f01\nmov     r9d, 14h                                                       ; +0xc3, 0x140042f03\njmp     short loc_140042F25                                            ; +0xc9, 0x140042f09\nmovss   xmm0, cs:dword_1406233D0                                       ; +0xcb, 0x140042f0b\nmov     eax, 1Eh                                                       ; +0xd3, 0x140042f13\ncomiss  xmm0, xmm1                                                     ; +0xd8, 0x140042f18\nmov     r9d, 32h ; '2'                                                 ; +0xdb, 0x140042f1b\ncmova   r9d, eax                                                       ; +0xe1, 0x140042f21\ncmp     dword ptr [rbx+160h], 0                                        ; +0xe5, 0x140042f25\nlea     rcx, [rbx+158h]                                                ; +0xec, 0x140042f2c\nxorps   xmm2, xmm2                                                     ; +0xf3, 0x140042f33\njnz     short loc_140042F40                                            ; +0xf6, 0x140042f36\ncall    cs:?ccDrawFilledCircle@cocos2d@@YAXAEBVCCPoint@1@MMI@Z; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const &,float,float,uint) ; +0xf8, 0x140042f38\njmp     short loc_140042F4B                                            ; +0xfe, 0x140042f3e\nmov     [rsp+38h+var_18], 0                                            ; +0x100, 0x140042f40\ncall    cs:?ccDrawCircle@cocos2d@@YAXAEBVCCPoint@1@MMI_N@Z; cocos2d::ccDrawCircle(cocos2d::CCPoint const &,float,float,uint,bool) ; +0x105, 0x140042f45\ncmp     byte ptr [rbx+16Ch], 0                                         ; +0x10b, 0x140042f4b\njz      short loc_140042F6A                                            ; +0x112, 0x140042f52\nmov     edx, 303h                                                      ; +0x114, 0x140042f54\nmov     ecx, 1                                                         ; +0x119, 0x140042f59\nadd     rsp, 30h                                                       ; +0x11e, 0x140042f5e\npop     rbx                                                            ; +0x122, 0x140042f62\njmp     cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x123, 0x140042f63\nadd     rsp, 30h                                                       ; +0x12a, 0x140042f6a\npop     rbx                                                            ; +0x12e, 0x140042f6e\nretn                                                                   ; +0x12f, 0x140042f6f", "xrefs": ["<???> @ 0x14052d3b0", "<???> @ 0x1406c4494", "<???> @ 0x1406c44a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}