{"type": "func", "start": 7104640, "end": 7104944, "name": "CCCircleWave::draw", "pseudocode": "// \n// CCCircleWave::draw from 0x6c6880 to 0x6c69b0 (304 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x75c88\n// > <???> @ 0x1420818\n// > <???> @ 0x1420ba8\n// \n// This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n// \n\n__int64 __fastcall CCCircleWave::draw(CCCircleWave *this, __int64 a2, unsigned int a3, __int64 a4, unsigned __int8 a5)\n{\n  float v6; // s0\n  unsigned __int8 v7; // w3\n  unsigned int v8; // w2\n  bool v9; // w3\n  float v10; // s0\n  const cocos2d::CCPoint *v11; // x1\n  unsigned int v12; // w2\n  __int64 result; // x0\n\n  if ( *((_BYTE *)this + 364) )\n  {\n    cocos2d::ccGLBlendFunc((cocos2d *)((char *)&elf_hash_bucket[66] + 2), 1u, a3);\n    if ( !*((_DWORD *)this + 88) )\n      goto LABEL_3;\n  }\n  else if ( !*((_DWORD *)this + 88) )\n  {\n    goto LABEL_3;\n  }\n  glLineWidth();\nLABEL_3:\n  v6 = *((float *)this + 84) * *((float *)this + 90);\n  if ( v6 <= 0.0 )\n  {\n    v7 = 0;\n  }\n  else if ( v6 < 255.0 )\n  {\n    v7 = (unsigned int)v6;\n  }\n  else\n  {\n    v7 = -1;\n  }\n  cocos2d::ccDrawColor4B(\n    (cocos2d *)*((unsigned __int8 *)this + 340),\n    *((_BYTE *)this + 341),\n    *((_BYTE *)this + 342),\n    v7,\n    a5);\n  v10 = *((float *)this + 83);\n  v11 = (const cocos2d::CCPoint *)(byte_9 + 1);\n  if ( v10 >= 10.0 )\n  {\n    v11 = (const cocos2d::CCPoint *)&byte_9[6];\n    if ( v10 >= 20.0 )\n    {\n      v11 = (const cocos2d::CCPoint *)&dword_14;\n      if ( v10 >= 40.0 )\n      {\n        if ( v10 >= 200.0 )\n          v11 = (const cocos2d::CCPoint *)(&dword_30 + 2);\n        else\n          v11 = (const cocos2d::CCPoint *)(&off_18 + 6);\n      }\n    }\n  }\n  if ( !*((_DWORD *)this + 88) )\n  {\n    cocos2d::ccDrawFilledCircle((CCCircleWave *)((char *)this + 344), v11, v10, 0.0, v8);\n    result = *((unsigned __int8 *)this + 364);\n    if ( !*((_BYTE *)this + 364) )\n      return result;\n    return cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v12);\n  }\n  cocos2d::ccDrawCircle((CCCircleWave *)((char *)this + 344), v11, v10, 0.0, 0, v9);\n  result = *((unsigned __int8 *)this + 364);\n  if ( *((_BYTE *)this + 364) )\n    return cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v12);\n  return result;\n}", "assembly": "; \n; CCCircleWave::draw from 0x6c6880 to 0x6c69b0 (304 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x75c88\n; > <???> @ 0x1420818\n; > <???> @ 0x1420ba8\n; \n; This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x6c6880\nMOV             X29, SP                                                ; +0x4, 0x6c6884\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x6c6888\nMOV             X19, X0                                                ; +0xc, 0x6c688c\nLDRB            W0, [X0,#0x16C]                                        ; +0x10, 0x6c6890\nCBNZ            W0, loc_6C6984                                         ; +0x14, 0x6c6894\nLDR             W0, [X19,#0x160]                                       ; +0x18, 0x6c6898\nCBNZ            W0, loc_6C6998                                         ; +0x1c, 0x6c689c\nLDR             S0, [X19,#0x150]                                       ; +0x20, 0x6c68a0\nLDRB            W0, [X19,#0x154]; this                                 ; +0x24, 0x6c68a4\nLDR             S1, [X19,#0x168]                                       ; +0x28, 0x6c68a8\nLDRB            W1, [X19,#0x155]; unsigned __int8                      ; +0x2c, 0x6c68ac\nLDRB            W2, [X19,#0x156]; unsigned __int8                      ; +0x30, 0x6c68b0\nFMUL            S0, S0, S1                                             ; +0x34, 0x6c68b4\nFCMPE           S0, #0.0                                               ; +0x38, 0x6c68b8\nB.LE            loc_6C6974                                             ; +0x3c, 0x6c68bc\nLDR             S1, =0x437F0000                                        ; +0x40, 0x6c68c0\nFCMPE           S0, S1                                                 ; +0x44, 0x6c68c4\nB.MI            loc_6C6978                                             ; +0x48, 0x6c68c8\nMOV             W3, #0xFF; unsigned __int8                             ; +0x4c, 0x6c68cc\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x50, 0x6c68d0\nLDR             S0, [X19,#0x14C]                                       ; +0x54, 0x6c68d4\nMOV             W1, #0xA                                               ; +0x58, 0x6c68d8\nFMOV            S1, #10.0                                              ; +0x5c, 0x6c68dc\nFCMPE           S0, S1                                                 ; +0x60, 0x6c68e0\nB.MI            loc_6C68F8                                             ; +0x64, 0x6c68e4\nFMOV            S1, #20.0                                              ; +0x68, 0x6c68e8\nMOV             W1, #(byte_9+6); cocos2d::CCPoint *                    ; +0x6c, 0x6c68ec\nFCMPE           S0, S1; float                                          ; +0x70, 0x6c68f0\nB.PL            loc_6C694C                                             ; +0x74, 0x6c68f4\nLDR             W0, [X19,#0x160]                                       ; +0x78, 0x6c68f8\nCBNZ            W0, loc_6C6920                                         ; +0x7c, 0x6c68fc\nFMOV            S1, WZR; float                                         ; +0x80, 0x6c6900\nADD             X0, X19, #0x158; this                                  ; +0x84, 0x6c6904\nBL              _ZN7cocos2d18ccDrawFilledCircleERKNS_7CCPointEffj; cocos2d::ccDrawFilledCircle(cocos2d::CCPoint const&,float,float,uint) ; +0x88, 0x6c6908\nLDRB            W0, [X19,#0x16C]                                       ; +0x8c, 0x6c690c\nCBNZ            W0, loc_6C6938                                         ; +0x90, 0x6c6910\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x94, 0x6c6914\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x98, 0x6c6918\nRET                                                                    ; +0x9c, 0x6c691c\nFMOV            S1, WZR; float                                         ; +0xa0, 0x6c6920\nADD             X0, X19, #0x158; this                                  ; +0xa4, 0x6c6924\nMOV             W2, #0; unsigned int                                   ; +0xa8, 0x6c6928\nBL              _ZN7cocos2d12ccDrawCircleERKNS_7CCPointEffjb; cocos2d::ccDrawCircle(cocos2d::CCPoint const&,float,float,uint,bool) ; +0xac, 0x6c692c\nLDRB            W0, [X19,#0x16C]                                       ; +0xb0, 0x6c6930\nCBZ             W0, loc_6C6914                                         ; +0xb4, 0x6c6934\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xb8, 0x6c6938\nMOV             W0, #(dword_0+1); this                                 ; +0xbc, 0x6c693c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xc0, 0x6c6940\nMOV             W1, #0x303; unsigned int                               ; +0xc4, 0x6c6944\nB               _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0xc8, 0x6c6948\nLDR             S1, =0x42200000                                        ; +0xcc, 0x6c694c\nMOV             W1, #0x14                                              ; +0xd0, 0x6c6950\nFCMPE           S0, S1                                                 ; +0xd4, 0x6c6954\nB.MI            loc_6C68F8                                             ; +0xd8, 0x6c6958\nLDR             S1, =0x43480000                                        ; +0xdc, 0x6c695c\nMOV             W1, #0x32 ; '2'                                        ; +0xe0, 0x6c6960\nMOV             W0, #0x1E                                              ; +0xe4, 0x6c6964\nFCMPE           S0, S1                                                 ; +0xe8, 0x6c6968\nCSEL            W1, W0, W1, MI                                         ; +0xec, 0x6c696c\nB               loc_6C68F8                                             ; +0xf0, 0x6c6970\nB.LE            loc_6C69A8                                             ; +0xf4, 0x6c6974\nFCVTZU          W3, S0                                                 ; +0xf8, 0x6c6978\nUXTB            W3, W3                                                 ; +0xfc, 0x6c697c\nB               loc_6C68D0                                             ; +0x100, 0x6c6980\nMOV             W0, #(elf_hash_bucket+0x10A); this                     ; +0x104, 0x6c6984\nMOV             W1, #1; unsigned int                                   ; +0x108, 0x6c6988\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x10c, 0x6c698c\nLDR             W0, [X19,#0x160]                                       ; +0x110, 0x6c6990\nCBZ             W0, loc_6C68A0                                         ; +0x114, 0x6c6994\nLDR             W0, [X19,#0x164]                                       ; +0x118, 0x6c6998\nSCVTF           S0, W0                                                 ; +0x11c, 0x6c699c\nBL              .glLineWidth                                           ; +0x120, 0x6c69a0\nB               loc_6C68A0                                             ; +0x124, 0x6c69a4\nMOV             W3, #0                                                 ; +0x128, 0x6c69a8\nB               loc_6C68D0                                             ; +0x12c, 0x6c69ac", "xrefs": ["<???> @ 0x75c88", "<???> @ 0x1420818", "<???> @ 0x1420ba8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}