{"type": "func", "start": 4296374544, "end": 4296375041, "name": "CCCircleWave::init", "pseudocode": "// \n// CCCircleWave::init from 0x100157910 to 0x100157b01 (497 bytes)\n// \n// 1 xrefs:\n// > CCCircleWave::create @ 0x1001578bf\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 12:25:04 +0000\n// \n\nchar __fastcall CCCircleWave::init(__int64 a1, int a2, char a3, float a4, double a5, float a6)\n{\n  __int64 v7; // r14\n  int v8; // r12d\n  __int64 v9; // xmm0_8\n  __int64 v10; // xmm1_8\n  int v11; // r15d\n  int v12; // eax\n  int v13; // r8d\n  int v14; // r9d\n  __int64 v15; // rdi\n  __int64 v16; // rsi\n  int v17; // ecx\n  int v18; // r8d\n  int v19; // r9d\n  __int64 v20; // rax\n  __int64 v22; // rax\n  int v23; // r14d\n  __int64 v24; // rax\n  int v25; // eax\n  int v26; // ecx\n  int v27; // r8d\n  int v28; // r9d\n  int v29; // ecx\n  int v30; // r8d\n  int v31; // r9d\n  __int64 v32; // r14\n  __int64 v33; // rax\n  __int64 v34; // rax\n\n  *(float *)(a1 + 332) = a4;\n  *(_DWORD *)(a1 + 336) = 1132396544;\n  *(_DWORD *)(a1 + 360) = 1065353216;\n  *(_WORD *)(a1 + 340) = -1;\n  *(_BYTE *)(a1 + 342) = -1;\n  *(_QWORD *)(a1 + 352) = 0x200000000LL;\n  *(_QWORD *)(a1 + 320) = 0;\n  *(_BYTE *)(a1 + 364) = 1;\n  if ( a2 )\n  {\n    *(_DWORD *)(a1 + 336) = 0;\n    v7 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"radius\");\n    v8 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"opacity\");\n    v9 = COERCE_UNSIGNED_INT(a6 * 0.5);\n    v10 = 1132396544;\n    v11 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"opacity\");\n    v12 = cocos2d::CCCallFunc::create(a1, 537, 0);\n    v15 = v7;\n    v16 = sub_10039EB60(v8, v11, v12, 0, v13, v14);\n    v20 = sub_10039FF60(v7, v16, 0, v17, v18, v19);\n  }\n  else\n  {\n    v22 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"radius\");\n    v23 = v22;\n    if ( a3 )\n    {\n      v23 = cocos2d::CCEaseOut::create(v22, 2.0);\n      v10 = *(unsigned int *)(a1 + 336);\n      v24 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"opacity\");\n      v9 = 0x40000000;\n      v25 = cocos2d::CCEaseOut::create(v24, 2.0);\n    }\n    else\n    {\n      v10 = *(unsigned int *)(a1 + 336);\n      v9 = LODWORD(a6);\n      v25 = cocos2d::CCActionTween::create_1((std::string::value_type *)\"opacity\");\n    }\n    v15 = sub_10039FF60(v23, v25, 0, v26, v27, v28);\n    v16 = cocos2d::CCCallFunc::create(a1, 537, 0);\n    v20 = sub_10039EB60(v15, v16, 0, v29, v30, v31);\n  }\n  v32 = v20;\n  v33 = cocos2d::CCDirector::sharedDirector(v15, v16);\n  v34 = (*(__int64 (__fastcall **)(__int64, double, double, double))(*(_QWORD *)v33 + 144LL))(\n          v33,\n          *(double *)&v9,\n          *(double *)&v10,\n          0.0);\n  cocos2d::CCActionManager::addAction(v34, v32, a1, 0);\n  return 1;\n}", "assembly": "; \n; CCCircleWave::init from 0x100157910 to 0x100157b01 (497 bytes)\n; \n; 1 xrefs:\n; > CCCircleWave::create @ 0x1001578bf\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 12:25:04 +0000\n; \npush    rbp                                                            ; +0x0, 0x100157910\nmov     rbp, rsp                                                       ; +0x1, 0x100157911\npush    r15                                                            ; +0x4, 0x100157914\npush    r14                                                            ; +0x6, 0x100157916\npush    r12                                                            ; +0x8, 0x100157918\npush    rbx                                                            ; +0xa, 0x10015791a\nsub     rsp, 10h                                                       ; +0xb, 0x10015791b\nmovaps  xmm3, xmm2                                                     ; +0xf, 0x10015791f\nmovaps  xmm2, xmm1                                                     ; +0x12, 0x100157922\nmovaps  xmm1, xmm0                                                     ; +0x15, 0x100157925\nmov     rbx, rdi                                                       ; +0x18, 0x100157928\nmovss   dword ptr [rdi+14Ch], xmm0                                     ; +0x1b, 0x10015792b\nmov     dword ptr [rdi+150h], 437F0000h                                ; +0x23, 0x100157933\nmov     dword ptr [rdi+168h], 3F800000h                                ; +0x2d, 0x10015793d\nmov     word ptr [rdi+154h], 0FFFFh                                    ; +0x37, 0x100157947\nmov     byte ptr [rdi+156h], 0FFh                                      ; +0x40, 0x100157950\nmov     rax, 200000000h                                                ; +0x47, 0x100157957\nmov     [rdi+160h], rax                                                ; +0x51, 0x100157961\nmov     qword ptr [rdi+140h], 0                                        ; +0x58, 0x100157968\nmov     byte ptr [rdi+16Ch], 1                                         ; +0x63, 0x100157973\ntest    esi, esi                                                       ; +0x6a, 0x10015797a\nmovss   [rbp+var_24], xmm3                                             ; +0x6c, 0x10015797c\njz      loc_100157A27                                                  ; +0x71, 0x100157981\nmov     dword ptr [rbx+150h], 0                                        ; +0x77, 0x100157987\nlea     rdi, aRadius; \"radius\"                                         ; +0x81, 0x100157991\nmovaps  xmm0, xmm3                                                     ; +0x88, 0x100157998\ncall    cocos2d__CCActionTween__create_1                               ; +0x8b, 0x10015799b\nmov     r14, rax                                                       ; +0x90, 0x1001579a0\nmovss   xmm0, [rbp+var_24]                                             ; +0x93, 0x1001579a3\nmulss   xmm0, cs:dword_100A03578                                       ; +0x98, 0x1001579a8\nmovss   [rbp+var_24], xmm0                                             ; +0xa0, 0x1001579b0\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0xa5, 0x1001579b5\nlea     r15, aOpacity; \"opacity\"                                       ; +0xad, 0x1001579bd\nmovss   xmm2, cs:dword_100A03F80                                       ; +0xb4, 0x1001579c4\nmov     rdi, r15; __s                                                  ; +0xbc, 0x1001579cc\ncall    cocos2d__CCActionTween__create_1                               ; +0xbf, 0x1001579cf\nmov     r12, rax                                                       ; +0xc4, 0x1001579d4\nxorps   xmm2, xmm2                                                     ; +0xc7, 0x1001579d7\nmovss   xmm0, [rbp+var_24]                                             ; +0xca, 0x1001579da\nmov     rdi, r15; __s                                                  ; +0xcf, 0x1001579df\nmovss   xmm1, cs:dword_100A03F80                                       ; +0xd2, 0x1001579e2\ncall    cocos2d__CCActionTween__create_1                               ; +0xda, 0x1001579ea\nmov     r15, rax                                                       ; +0xdf, 0x1001579ef\nmov     esi, 219h                                                      ; +0xe2, 0x1001579f2\nmov     rdi, rbx                                                       ; +0xe7, 0x1001579f7\nxor     edx, edx                                                       ; +0xea, 0x1001579fa\ncall    cocos2d__CCCallFunc__create                                    ; +0xec, 0x1001579fc\nmov     rdi, r12                                                       ; +0xf1, 0x100157a01\nmov     rsi, r15                                                       ; +0xf4, 0x100157a04\nmov     rdx, rax                                                       ; +0xf7, 0x100157a07\nxor     ecx, ecx                                                       ; +0xfa, 0x100157a0a\nxor     eax, eax                                                       ; +0xfc, 0x100157a0c\ncall    sub_10039EB60                                                  ; +0xfe, 0x100157a0e\nmov     rdi, r14                                                       ; +0x103, 0x100157a13\nmov     rsi, rax                                                       ; +0x106, 0x100157a16\nxor     edx, edx                                                       ; +0x109, 0x100157a19\nxor     eax, eax                                                       ; +0x10b, 0x100157a1b\ncall    sub_10039FF60                                                  ; +0x10d, 0x100157a1d\njmp     loc_100157ACE                                                  ; +0x112, 0x100157a22\nmov     r15d, edx                                                      ; +0x117, 0x100157a27\nlea     rdi, aRadius; \"radius\"                                         ; +0x11a, 0x100157a2a\nmovaps  xmm0, xmm3                                                     ; +0x121, 0x100157a31\ncall    cocos2d__CCActionTween__create_1                               ; +0x124, 0x100157a34\nmov     r14, rax                                                       ; +0x129, 0x100157a39\ntest    r15b, r15b                                                     ; +0x12c, 0x100157a3c\njz      short loc_100157A82                                            ; +0x12f, 0x100157a3f\nmovss   xmm0, cs:width                                                 ; +0x131, 0x100157a41\nmov     rdi, r14                                                       ; +0x139, 0x100157a49\ncall    cocos2d__CCEaseOut__create                                     ; +0x13c, 0x100157a4c\nmov     r14, rax                                                       ; +0x141, 0x100157a51\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0x144, 0x100157a54\nlea     rdi, aOpacity; \"opacity\"                                       ; +0x14c, 0x100157a5c\nxorps   xmm2, xmm2                                                     ; +0x153, 0x100157a63\nmovss   xmm0, [rbp+var_24]                                             ; +0x156, 0x100157a66\ncall    cocos2d__CCActionTween__create_1                               ; +0x15b, 0x100157a6b\nmov     rdi, rax                                                       ; +0x160, 0x100157a70\nmovss   xmm0, cs:width                                                 ; +0x163, 0x100157a73\ncall    cocos2d__CCEaseOut__create                                     ; +0x16b, 0x100157a7b\njmp     short loc_100157A9E                                            ; +0x170, 0x100157a80\nmovss   xmm1, dword ptr [rbx+150h]                                     ; +0x172, 0x100157a82\nlea     rdi, aOpacity; \"opacity\"                                       ; +0x17a, 0x100157a8a\nxorps   xmm2, xmm2                                                     ; +0x181, 0x100157a91\nmovss   xmm0, [rbp+var_24]                                             ; +0x184, 0x100157a94\ncall    cocos2d__CCActionTween__create_1                               ; +0x189, 0x100157a99\nmov     rdi, r14                                                       ; +0x18e, 0x100157a9e\nmov     rsi, rax                                                       ; +0x191, 0x100157aa1\nxor     edx, edx                                                       ; +0x194, 0x100157aa4\nxor     eax, eax                                                       ; +0x196, 0x100157aa6\ncall    sub_10039FF60                                                  ; +0x198, 0x100157aa8\nmov     r14, rax                                                       ; +0x19d, 0x100157aad\nmov     esi, 219h                                                      ; +0x1a0, 0x100157ab0\nmov     rdi, rbx                                                       ; +0x1a5, 0x100157ab5\nxor     edx, edx                                                       ; +0x1a8, 0x100157ab8\ncall    cocos2d__CCCallFunc__create                                    ; +0x1aa, 0x100157aba\nmov     rdi, r14                                                       ; +0x1af, 0x100157abf\nmov     rsi, rax                                                       ; +0x1b2, 0x100157ac2\nxor     edx, edx                                                       ; +0x1b5, 0x100157ac5\nxor     eax, eax                                                       ; +0x1b7, 0x100157ac7\ncall    sub_10039EB60                                                  ; +0x1b9, 0x100157ac9\nmov     r14, rax                                                       ; +0x1be, 0x100157ace\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1c1, 0x100157ad1\nmov     rcx, [rax]                                                     ; +0x1c6, 0x100157ad6\nmov     rdi, rax                                                       ; +0x1c9, 0x100157ad9\ncall    qword ptr [rcx+90h]                                            ; +0x1cc, 0x100157adc\nmov     rdi, rax                                                       ; +0x1d2, 0x100157ae2\nmov     rsi, r14                                                       ; +0x1d5, 0x100157ae5\nmov     rdx, rbx                                                       ; +0x1d8, 0x100157ae8\nxor     ecx, ecx                                                       ; +0x1db, 0x100157aeb\ncall    cocos2d__CCActionManager__addAction                            ; +0x1dd, 0x100157aed\nmov     al, 1                                                          ; +0x1e2, 0x100157af2\nadd     rsp, 10h                                                       ; +0x1e4, 0x100157af4\npop     rbx                                                            ; +0x1e8, 0x100157af8\npop     r12                                                            ; +0x1e9, 0x100157af9\npop     r14                                                            ; +0x1eb, 0x100157afb\npop     r15                                                            ; +0x1ed, 0x100157afd\npop     rbp                                                            ; +0x1ef, 0x100157aff\nretn                                                                   ; +0x1f0, 0x100157b00", "xrefs": ["CCCircleWave::create @ 0x1001578bf"], "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"}