{"type": "func", "start": 5923036, "end": 5923340, "name": "CCCircleWave::draw", "pseudocode": "// \n// CCCircleWave::draw from 0x5a60dc to 0x5a620c (304 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x55290\n// > <???> @ 0x1141bf8\n// > <???> @ 0x1141f78\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; // s0\n  unsigned __int8 v3; // w3\n  float m_radius; // s0\n  char *v5; // x1\n\n  if ( a1->m_blendAdditive )\n  {\n    cocos2d::ccGLBlendFunc((unsigned int)&elf_hash_bucket[66] + 2, 1u);\n    if ( a1->m_circleMode == Filled )\n      goto LABEL_3;\n  }\n  else if ( a1->m_circleMode == Filled )\n  {\n    goto LABEL_3;\n  }\n  glLineWidth();\nLABEL_3:\n  v2 = a1->m_opacity * a1->m_opacityMod;\n  if ( v2 <= 0.0 )\n  {\n    v3 = 0;\n  }\n  else if ( v2 < 255.0 )\n  {\n    v3 = (unsigned int)v2;\n  }\n  else\n  {\n    v3 = -1;\n  }\n  cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, v3);\n  m_radius = a1->m_radius;\n  LODWORD(v5) = 10;\n  if ( m_radius >= 10.0 )\n  {\n    v5 = &byte_9[6];\n    if ( m_radius >= 20.0 )\n    {\n      LODWORD(v5) = 20;\n      if ( m_radius >= 40.0 )\n      {\n        if ( m_radius >= 200.0 )\n          LODWORD(v5) = 50;\n        else\n          LODWORD(v5) = 30;\n      }\n    }\n  }\n  if ( a1->m_circleMode == Filled )\n  {\n    cocos2d::ccDrawFilledCircle(&a1->m_position, m_radius, 0.0, (unsigned int)v5);\n    if ( !a1->m_blendAdditive )\n      return;\nLABEL_12:\n    cocos2d::ccGLBlendFunc((unsigned int)&dword_0 + 1, 0x303u);\n    return;\n  }\n  cocos2d::ccDrawCircle(&a1->m_position, m_radius, 0.0, (unsigned int)v5, 0);\n  if ( a1->m_blendAdditive )\n    goto LABEL_12;\n}", "assembly": "; \n; CCCircleWave::draw from 0x5a60dc to 0x5a620c (304 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x55290\n; > <???> @ 0x1141bf8\n; > <???> @ 0x1141f78\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x5a60dc\nMOV             X29, SP                                                ; +0x4, 0x5a60e0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x5a60e4\nMOV             X19, X0                                                ; +0xc, 0x5a60e8\nLDRB            W0, [X0,#0x16C]                                        ; +0x10, 0x5a60ec\nCBNZ            W0, loc_5A61E0                                         ; +0x14, 0x5a60f0\nLDR             W0, [X19,#0x160]                                       ; +0x18, 0x5a60f4\nCBNZ            W0, loc_5A61F4                                         ; +0x1c, 0x5a60f8\nLDR             S0, [X19,#0x150]                                       ; +0x20, 0x5a60fc\nLDRB            W0, [X19,#0x154]; this                                 ; +0x24, 0x5a6100\nLDR             S1, [X19,#0x168]                                       ; +0x28, 0x5a6104\nLDRB            W1, [X19,#0x155]; unsigned __int8                      ; +0x2c, 0x5a6108\nLDRB            W2, [X19,#0x156]; unsigned __int8                      ; +0x30, 0x5a610c\nFMUL            S0, S0, S1                                             ; +0x34, 0x5a6110\nFCMPE           S0, #0.0                                               ; +0x38, 0x5a6114\nB.LE            loc_5A61D0                                             ; +0x3c, 0x5a6118\nLDR             S1, =0x437F0000                                        ; +0x40, 0x5a611c\nFCMPE           S0, S1                                                 ; +0x44, 0x5a6120\nB.MI            loc_5A61D4                                             ; +0x48, 0x5a6124\nMOV             W3, #0xFF; unsigned __int8                             ; +0x4c, 0x5a6128\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x50, 0x5a612c\nLDR             S0, [X19,#0x14C]                                       ; +0x54, 0x5a6130\nMOV             W1, #0xA                                               ; +0x58, 0x5a6134\nFMOV            S1, #10.0                                              ; +0x5c, 0x5a6138\nFCMPE           S0, S1                                                 ; +0x60, 0x5a613c\nB.MI            loc_5A6154                                             ; +0x64, 0x5a6140\nFMOV            S1, #20.0                                              ; +0x68, 0x5a6144\nMOV             W1, #(byte_9+6); cocos2d::CCPoint *                    ; +0x6c, 0x5a6148\nFCMPE           S0, S1; float                                          ; +0x70, 0x5a614c\nB.PL            loc_5A61A8                                             ; +0x74, 0x5a6150\nLDR             W0, [X19,#0x160]                                       ; +0x78, 0x5a6154\nCBNZ            W0, loc_5A617C                                         ; +0x7c, 0x5a6158\nFMOV            S1, WZR; float                                         ; +0x80, 0x5a615c\nADD             X0, X19, #0x158; this                                  ; +0x84, 0x5a6160\nBL              _ZN7cocos2d18ccDrawFilledCircleERKNS_7CCPointEffj; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const&,float,float,uint) ; +0x88, 0x5a6164\nLDRB            W0, [X19,#0x16C]                                       ; +0x8c, 0x5a6168\nCBNZ            W0, loc_5A6194                                         ; +0x90, 0x5a616c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x94, 0x5a6170\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x98, 0x5a6174\nRET                                                                    ; +0x9c, 0x5a6178\nFMOV            S1, WZR; float                                         ; +0xa0, 0x5a617c\nADD             X0, X19, #0x158; this                                  ; +0xa4, 0x5a6180\nMOV             W2, #0; unsigned int                                   ; +0xa8, 0x5a6184\nBL              _ZN7cocos2d12ccDrawCircleERKNS_7CCPointEffjb; cocos2d::ccDrawCircle(cocos2d::CCPoint const&,float,float,uint,bool) ; +0xac, 0x5a6188\nLDRB            W0, [X19,#0x16C]                                       ; +0xb0, 0x5a618c\nCBZ             W0, loc_5A6170                                         ; +0xb4, 0x5a6190\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xb8, 0x5a6194\nMOV             W0, #(dword_0+1); this                                 ; +0xbc, 0x5a6198\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xc0, 0x5a619c\nMOV             W1, #0x303; unsigned int                               ; +0xc4, 0x5a61a0\nB               _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0xc8, 0x5a61a4\nLDR             S1, =0x42200000                                        ; +0xcc, 0x5a61a8\nMOV             W1, #0x14                                              ; +0xd0, 0x5a61ac\nFCMPE           S0, S1                                                 ; +0xd4, 0x5a61b0\nB.MI            loc_5A6154                                             ; +0xd8, 0x5a61b4\nLDR             S1, =0x43480000                                        ; +0xdc, 0x5a61b8\nMOV             W1, #0x32 ; '2'                                        ; +0xe0, 0x5a61bc\nMOV             W0, #0x1E                                              ; +0xe4, 0x5a61c0\nFCMPE           S0, S1                                                 ; +0xe8, 0x5a61c4\nCSEL            W1, W0, W1, MI                                         ; +0xec, 0x5a61c8\nB               loc_5A6154                                             ; +0xf0, 0x5a61cc\nB.LE            loc_5A6204                                             ; +0xf4, 0x5a61d0\nFCVTZU          W3, S0                                                 ; +0xf8, 0x5a61d4\nUXTB            W3, W3                                                 ; +0xfc, 0x5a61d8\nB               loc_5A612C                                             ; +0x100, 0x5a61dc\nMOV             W0, #(elf_hash_bucket+0x10A); this                     ; +0x104, 0x5a61e0\nMOV             W1, #1; unsigned int                                   ; +0x108, 0x5a61e4\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x10c, 0x5a61e8\nLDR             W0, [X19,#0x160]                                       ; +0x110, 0x5a61ec\nCBZ             W0, loc_5A60FC                                         ; +0x114, 0x5a61f0\nLDR             W0, [X19,#0x164]                                       ; +0x118, 0x5a61f4\nSCVTF           S0, W0                                                 ; +0x11c, 0x5a61f8\nBL              .glLineWidth                                           ; +0x120, 0x5a61fc\nB               loc_5A60FC                                             ; +0x124, 0x5a6200\nMOV             W3, #0                                                 ; +0x128, 0x5a6204\nB               loc_5A612C                                             ; +0x12c, 0x5a6208", "xrefs": ["<???> @ 0x55290", "<???> @ 0x1141bf8", "<???> @ 0x1141f78"], "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"}