{"type": "func", "start": 4296508768, "end": 4296509265, "name": "CCCircleWave::init", "pseudocode": "// \n// CCCircleWave::init from 0x100178560 to 0x100178751 (497 bytes)\n// \n// 1 xrefs:\n// > CCCircleWave::create @ 0x10017850f\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\nbool __fastcall CCCircleWave::init(CCCircleWave *a1, float a2, float a3, float a4, bool a5, bool a6)\n{\n  unsigned int v6; // r14d\n  unsigned int v7; // r12d\n  unsigned int v8; // r15d\n  unsigned int v9; // eax\n  int v10; // r8d\n  int v11; // r9d\n  int v12; // esi\n  int v13; // ecx\n  int v14; // r8d\n  int v15; // r9d\n  __int64 v16; // rax\n  cocos2d::CCActionTween *v18; // rax\n  unsigned int v19; // r14d\n  cocos2d::CCActionTween *v20; // rax\n  unsigned int v21; // eax\n  int v22; // ecx\n  int v23; // r8d\n  int v24; // r9d\n  int v25; // r14d\n  unsigned int v26; // esi\n  int v27; // ecx\n  int v28; // r8d\n  int v29; // r9d\n  cocos2d::CCAction *v30; // r14\n  cocos2d::CCDirector *v31; // rax\n  cocos2d::CCActionManager *v32; // rax\n\n  a1->m_radius = a2;\n  a1->m_opacity = 255.0;\n  a1->m_opacityMod = 1.0;\n  *(_WORD *)&a1->m_color.r = -1;\n  a1->m_color.b = -1;\n  *(_QWORD *)&a1->m_circleMode = 0x200000000LL;\n  a1->m_target = nullptr;\n  a1->m_blendAdditive = 1;\n  if ( a5 )\n  {\n    a1->m_opacity = 0.0;\n    v6 = (unsigned int)cocos2d::CCActionTween::create_1(a4, \"radius\", a2, a3);\n    v7 = (unsigned int)cocos2d::CCActionTween::create_1(a4 * 0.5, \"opacity\", a1->m_opacity, 255.0);\n    v8 = (unsigned int)cocos2d::CCActionTween::create_1(a4 * 0.5, \"opacity\", 255.0, 0.0);\n    v9 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x209uLL);\n    v12 = sub_1003B5760(v7, v8, v9, 0, v10, v11);\n    v16 = sub_1003B6B60(v6, v12, 0, v13, v14, v15);\n  }\n  else\n  {\n    v18 = cocos2d::CCActionTween::create_1(a4, \"radius\", a2, a3);\n    v19 = (unsigned int)v18;\n    if ( a6 )\n    {\n      v19 = (unsigned int)cocos2d::CCEaseOut::create(v18, 2.0);\n      v20 = cocos2d::CCActionTween::create_1(a4, \"opacity\", a1->m_opacity, 0.0);\n      v21 = (unsigned int)cocos2d::CCEaseOut::create(v20, 2.0);\n    }\n    else\n    {\n      v21 = (unsigned int)cocos2d::CCActionTween::create_1(a4, \"opacity\", a1->m_opacity, 0.0);\n    }\n    v25 = sub_1003B6B60(v19, v21, 0, v22, v23, v24);\n    v26 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x209uLL);\n    v16 = sub_1003B5760(v25, v26, 0, v27, v28, v29);\n  }\n  v30 = (cocos2d::CCAction *)v16;\n  v31 = cocos2d::CCDirector::sharedDirector();\n  v32 = (cocos2d::CCActionManager *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v31->getActionManager)(v31);\n  cocos2d::CCActionManager::addAction(v32, v30, a1, 0);\n  return 1;\n}", "assembly": "; \n; CCCircleWave::init from 0x100178560 to 0x100178751 (497 bytes)\n; \n; 1 xrefs:\n; > CCCircleWave::create @ 0x10017850f\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    rbp                                                            ; +0x0, 0x100178560\nmov     rbp, rsp                                                       ; +0x1, 0x100178561\npush    r15                                                            ; +0x4, 0x100178564\npush    r14                                                            ; +0x6, 0x100178566\npush    r12                                                            ; +0x8, 0x100178568\npush    rbx                                                            ; +0xa, 0x10017856a\nsub     rsp, 10h                                                       ; +0xb, 0x10017856b\nmovaps  xmm3, xmm2                                                     ; +0xf, 0x10017856f\nmovaps  xmm2, xmm1                                                     ; +0x12, 0x100178572\nmovaps  xmm1, xmm0                                                     ; +0x15, 0x100178575\nmov     rbx, rdi                                                       ; +0x18, 0x100178578\nmovss   dword ptr [rdi+14Ch], xmm0                                     ; +0x1b, 0x10017857b\nmov     dword ptr [rdi+150h], 437F0000h                                ; +0x23, 0x100178583\nmov     dword ptr [rdi+168h], 3F800000h                                ; +0x2d, 0x10017858d\nmov     word ptr [rdi+154h], 0FFFFh                                    ; +0x37, 0x100178597\nmov     byte ptr [rdi+156h], 0FFh                                      ; +0x40, 0x1001785a0\nmov     rax, 200000000h                                                ; +0x47, 0x1001785a7\nmov     [rdi+160h], rax                                                ; +0x51, 0x1001785b1\nmov     qword ptr [rdi+140h], 0                                        ; +0x58, 0x1001785b8\nmov     byte ptr [rdi+16Ch], 1                                         ; +0x63, 0x1001785c3\ntest    esi, esi                                                       ; +0x6a, 0x1001785ca\nmovss   [rbp+var_24], xmm3                                             ; +0x6c, 0x1001785cc\njz      loc_100178677                                                  ; +0x71, 0x1001785d1\nmov     dword ptr [rbx+150h], 0                                        ; +0x77, 0x1001785d7\nlea     rdi, aRadius; \"radius\"                                         ; +0x81, 0x1001785e1\nmovaps  xmm0, xmm3                                                     ; +0x88, 0x1001785e8\ncall    cocos2d__CCActionTween__create_1                               ; +0x8b, 0x1001785eb\nmov     r14, rax                                                       ; +0x90, 0x1001785f0\nmovss   xmm0, [rbp+var_24]                                             ; +0x93, 0x1001785f3\nmulss   xmm0, cs:dword_100814FA8                                       ; +0x98, 0x1001785f8\nmovss   [rbp+var_24], xmm0                                             ; +0xa0, 0x100178600\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0xa5, 0x100178605\nlea     r15, aOpacity; \"opacity\"                                       ; +0xad, 0x10017860d\nmovss   xmm2, cs:dword_100815C10                                       ; +0xb4, 0x100178614\nmov     rdi, r15; __s                                                  ; +0xbc, 0x10017861c\ncall    cocos2d__CCActionTween__create_1                               ; +0xbf, 0x10017861f\nmov     r12, rax                                                       ; +0xc4, 0x100178624\nxorps   xmm2, xmm2                                                     ; +0xc7, 0x100178627\nmovss   xmm0, [rbp+var_24]                                             ; +0xca, 0x10017862a\nmov     rdi, r15; __s                                                  ; +0xcf, 0x10017862f\nmovss   xmm1, cs:dword_100815C10                                       ; +0xd2, 0x100178632\ncall    cocos2d__CCActionTween__create_1                               ; +0xda, 0x10017863a\nmov     r15, rax                                                       ; +0xdf, 0x10017863f\nmov     esi, 209h                                                      ; +0xe2, 0x100178642\nmov     rdi, rbx                                                       ; +0xe7, 0x100178647\nxor     edx, edx                                                       ; +0xea, 0x10017864a\ncall    cocos2d__CCCallFunc__create                                    ; +0xec, 0x10017864c\nmov     rdi, r12                                                       ; +0xf1, 0x100178651\nmov     rsi, r15                                                       ; +0xf4, 0x100178654\nmov     rdx, rax                                                       ; +0xf7, 0x100178657\nxor     ecx, ecx                                                       ; +0xfa, 0x10017865a\nxor     eax, eax                                                       ; +0xfc, 0x10017865c\ncall    sub_1003B5760                                                  ; +0xfe, 0x10017865e\nmov     rdi, r14                                                       ; +0x103, 0x100178663\nmov     rsi, rax                                                       ; +0x106, 0x100178666\nxor     edx, edx                                                       ; +0x109, 0x100178669\nxor     eax, eax                                                       ; +0x10b, 0x10017866b\ncall    sub_1003B6B60                                                  ; +0x10d, 0x10017866d\njmp     loc_10017871E                                                  ; +0x112, 0x100178672\nmov     r15d, edx                                                      ; +0x117, 0x100178677\nlea     rdi, aRadius; \"radius\"                                         ; +0x11a, 0x10017867a\nmovaps  xmm0, xmm3                                                     ; +0x121, 0x100178681\ncall    cocos2d__CCActionTween__create_1                               ; +0x124, 0x100178684\nmov     r14, rax                                                       ; +0x129, 0x100178689\ntest    r15b, r15b                                                     ; +0x12c, 0x10017868c\njz      short loc_1001786D2                                            ; +0x12f, 0x10017868f\nmovss   xmm0, cs:width                                                 ; +0x131, 0x100178691\nmov     rdi, r14                                                       ; +0x139, 0x100178699\ncall    cocos2d__CCEaseOut__create                                     ; +0x13c, 0x10017869c\nmov     r14, rax                                                       ; +0x141, 0x1001786a1\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0x144, 0x1001786a4\nlea     rdi, aOpacity; \"opacity\"                                       ; +0x14c, 0x1001786ac\nxorps   xmm2, xmm2                                                     ; +0x153, 0x1001786b3\nmovss   xmm0, [rbp+var_24]                                             ; +0x156, 0x1001786b6\ncall    cocos2d__CCActionTween__create_1                               ; +0x15b, 0x1001786bb\nmov     rdi, rax                                                       ; +0x160, 0x1001786c0\nmovss   xmm0, cs:width                                                 ; +0x163, 0x1001786c3\ncall    cocos2d__CCEaseOut__create                                     ; +0x16b, 0x1001786cb\njmp     short loc_1001786EE                                            ; +0x170, 0x1001786d0\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0x172, 0x1001786d2\nlea     rdi, aOpacity; \"opacity\"                                       ; +0x17a, 0x1001786da\nxorps   xmm2, xmm2                                                     ; +0x181, 0x1001786e1\nmovss   xmm0, [rbp+var_24]                                             ; +0x184, 0x1001786e4\ncall    cocos2d__CCActionTween__create_1                               ; +0x189, 0x1001786e9\nmov     rdi, r14                                                       ; +0x18e, 0x1001786ee\nmov     rsi, rax                                                       ; +0x191, 0x1001786f1\nxor     edx, edx                                                       ; +0x194, 0x1001786f4\nxor     eax, eax                                                       ; +0x196, 0x1001786f6\ncall    sub_1003B6B60                                                  ; +0x198, 0x1001786f8\nmov     r14, rax                                                       ; +0x19d, 0x1001786fd\nmov     esi, 209h                                                      ; +0x1a0, 0x100178700\nmov     rdi, rbx                                                       ; +0x1a5, 0x100178705\nxor     edx, edx                                                       ; +0x1a8, 0x100178708\ncall    cocos2d__CCCallFunc__create                                    ; +0x1aa, 0x10017870a\nmov     rdi, r14                                                       ; +0x1af, 0x10017870f\nmov     rsi, rax                                                       ; +0x1b2, 0x100178712\nxor     edx, edx                                                       ; +0x1b5, 0x100178715\nxor     eax, eax                                                       ; +0x1b7, 0x100178717\ncall    sub_1003B5760                                                  ; +0x1b9, 0x100178719\nmov     r14, rax                                                       ; +0x1be, 0x10017871e\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1c1, 0x100178721\nmov     rcx, [rax]                                                     ; +0x1c6, 0x100178726\nmov     rdi, rax                                                       ; +0x1c9, 0x100178729\ncall    qword ptr [rcx+90h]                                            ; +0x1cc, 0x10017872c\nmov     rdi, rax                                                       ; +0x1d2, 0x100178732\nmov     rsi, r14                                                       ; +0x1d5, 0x100178735\nmov     rdx, rbx                                                       ; +0x1d8, 0x100178738\nxor     ecx, ecx                                                       ; +0x1db, 0x10017873b\ncall    cocos2d__CCActionManager__addAction                            ; +0x1dd, 0x10017873d\nmov     al, 1                                                          ; +0x1e2, 0x100178742\nadd     rsp, 10h                                                       ; +0x1e4, 0x100178744\npop     rbx                                                            ; +0x1e8, 0x100178748\npop     r12                                                            ; +0x1e9, 0x100178749\npop     r14                                                            ; +0x1eb, 0x10017874b\npop     r15                                                            ; +0x1ed, 0x10017874d\npop     rbp                                                            ; +0x1ef, 0x10017874f\nretn                                                                   ; +0x1f0, 0x100178750", "xrefs": ["CCCircleWave::create @ 0x10017850f"], "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"}