{"type": "func", "start": 4300683584, "end": 4300684193, "name": "GauntletSelectLayer::unlockAnimationStep2", "pseudocode": "// \n// GauntletSelectLayer::unlockAnimationStep2 from 0x100573940 to 0x100573ba1 (609 bytes)\n// \n// 1 xrefs:\n// > GauntletSelectLayer::playUnlockAnimation @ 0x1005735ae\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 __fastcall GauntletSelectLayer::unlockAnimationStep2(GauntletSelectLayer *a1)\n{\n  __m128 v1; // xmm1\n  __m128 v2; // xmm2\n  cocos2d::CCObject *v3; // rbx\n  cocos2d::CCParticleSystemQuad *v4; // r14\n  float v5; // xmm0_4\n  float v6; // xmm0_4\n  const cocos2d::CCPoint *v7; // r12\n  __m128 v8; // xmm0\n  __m128 v9; // xmm0\n  __m128 v10; // xmm1\n  __m128 v11; // xmm2\n  char v12; // [rsp+8h] [rbp-58h] BYREF\n  char v13; // [rsp+10h] [rbp-50h] BYREF\n  _QWORD v14[2]; // [rsp+18h] [rbp-48h] BYREF\n  void *__p; // [rsp+28h] [rbp-38h]\n  _OWORD v16[3]; // [rsp+30h] [rbp-30h] BYREF\n  double v17; // 0:xmm0_8.8\n\n  v3 = cocos2d::CCDictionary::objectForKey(a1->m_gauntlets, (unsigned int)a1->m_gauntletID);\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v12);\n  __p = operator new(0xB0u);\n  v14[0] = 177;\n  v14[1] = 170;\n  strcpy(\n    (char *)__p,\n    \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1\"\n    \"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0\");\n  v4 = GameToolbox::particleFromString((unsigned __int8 *)v14, nullptr, 0);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setEndRadius)(v4, 10.0);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setEndRadiusVar)(v4, 10.0);\n  v5 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getLife)(v4);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setLife)(v4, v5 * 0.80000001);\n  v6 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v4->getDuration)(v4);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setDuration)(v4, v6 * 0.80000001);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v4->setAutoRemoveOnFinish)(v4, 1);\n  ((void (__fastcall *)(GauntletSelectLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v4, 11);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v4->setScale)(v4, 2.0);\n  cocos2d::CCParticleSystem::resetSystem(v4);\n  v7 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCObject *))v3->__vftable[6].~CCObject_0)(v3);\n  ((void (__fastcall *)(cocos2d::CCObject *))v3->__vftable[2].acceptVisitor)(v3);\n  cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v13, v7);\n  *(cocos2d::CCPoint *)&v17 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v16, (const cocos2d::CCPoint *)a1);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *, double))v4->setPosition)(v4, v16, v17);\n  v8 = 0;\n  v1.f32[0] = (float)(unsigned __int8)LOWORD(v3[6].__vftable) / 255.0;\n  v2.f32[0] = (float)HIBYTE(LOWORD(v3[6].__vftable)) / 255.0;\n  v8.f32[0] = (float)BYTE2(v3[6].__vftable) / 255.0;\n  v16[0] = _mm_movelh_ps(_mm_insert_ps(v1, v2, 16), _mm_blend_ps(v8, (__m128)xmmword_1008150D0, 14));\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v4->setStartColor)(v4, v16);\n  v9 = 0;\n  v10 = 0;\n  v10.f32[0] = (float)(unsigned __int8)LOWORD(v3[6].__vftable) / 255.0;\n  v11 = 0;\n  v11.f32[0] = (float)HIBYTE(LOWORD(v3[6].__vftable)) / 255.0;\n  v9.f32[0] = (float)BYTE2(v3[6].__vftable) / 255.0;\n  v16[0] = _mm_movelh_ps(_mm_insert_ps(v10, v11, 16), _mm_blend_ps(v9, (__m128)xmmword_1008150D0, 14));\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v4->setEndColor)(v4, v16);\n  if ( (v14[0] & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GauntletSelectLayer::unlockAnimationStep2 from 0x100573940 to 0x100573ba1 (609 bytes)\n; \n; 1 xrefs:\n; > GauntletSelectLayer::playUnlockAnimation @ 0x1005735ae\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, 0x100573940\nmov     rbp, rsp                                                       ; +0x1, 0x100573941\npush    r15                                                            ; +0x4, 0x100573944\npush    r14                                                            ; +0x6, 0x100573946\npush    r12                                                            ; +0x8, 0x100573948\npush    rbx                                                            ; +0xa, 0x10057394a\nsub     rsp, 40h                                                       ; +0xb, 0x10057394b\nmov     r15, rdi                                                       ; +0xf, 0x10057394f\nmov     rdi, [rdi+1F0h]                                                ; +0x12, 0x100573952\nmov     esi, [r15+1FCh]                                                ; +0x19, 0x100573959\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x20, 0x100573960\nmov     rbx, rax                                                       ; +0x25, 0x100573965\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x28, 0x100573968\nlea     rdi, [rbp+var_58]                                              ; +0x2d, 0x10057396d\nmov     rsi, rax                                                       ; +0x31, 0x100573971\ncall    cocos2d__CCDirector__getWinSize                                ; +0x34, 0x100573974\nmov     edi, 0B0h; __sz                                                ; +0x39, 0x100573979\ncall    __Znwm; operator new(ulong)                                    ; +0x3e, 0x10057397e\nmov     r14, rax                                                       ; +0x43, 0x100573983\nmov     [rbp+__p], rax                                                 ; +0x46, 0x100573986\nmov     [rbp+var_48], 0B1h                                             ; +0x4a, 0x10057398a\nmov     [rbp+var_40], 0AAh                                             ; +0x52, 0x100573992\nlea     rsi, a84a097a1a016a7; \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0\"... ; +0x5a, 0x10057399a\nmov     edx, 0AAh; __n                                                 ; +0x61, 0x1005739a1\nmov     rdi, rax; __dst                                                ; +0x66, 0x1005739a6\ncall    _memcpy                                                        ; +0x69, 0x1005739a9\nmov     byte ptr [r14+0AAh], 0                                         ; +0x6e, 0x1005739ae\nlea     rdi, [rbp+var_48]                                              ; +0x76, 0x1005739b6\nxor     esi, esi                                                       ; +0x7a, 0x1005739ba\nxor     edx, edx                                                       ; +0x7c, 0x1005739bc\ncall    GameToolbox__particleFromString                                ; +0x7e, 0x1005739be\nmov     r14, rax                                                       ; +0x83, 0x1005739c3\nmov     rax, [rax]                                                     ; +0x86, 0x1005739c6\nmovss   xmm0, cs:dword_100814FEC                                       ; +0x89, 0x1005739c9\nmov     rdi, r14                                                       ; +0x91, 0x1005739d1\ncall    qword ptr [rax+4A8h]                                           ; +0x94, 0x1005739d4\nmov     rax, [r14]                                                     ; +0x9a, 0x1005739da\nmovss   xmm0, cs:dword_100814FEC                                       ; +0x9d, 0x1005739dd\nmov     rdi, r14                                                       ; +0xa5, 0x1005739e5\ncall    qword ptr [rax+4B8h]                                           ; +0xa8, 0x1005739e8\nmov     rax, [r14]                                                     ; +0xae, 0x1005739ee\nmov     rdi, r14                                                       ; +0xb1, 0x1005739f1\ncall    qword ptr [rax+3B8h]                                           ; +0xb4, 0x1005739f4\nmulss   xmm0, cs:dword_100814FE4                                       ; +0xba, 0x1005739fa\nmov     rax, [r14]                                                     ; +0xc2, 0x100573a02\nmov     rdi, r14                                                       ; +0xc5, 0x100573a05\ncall    qword ptr [rax+3C0h]                                           ; +0xc8, 0x100573a08\nmov     rax, [r14]                                                     ; +0xce, 0x100573a0e\nmov     rdi, r14                                                       ; +0xd1, 0x100573a11\ncall    qword ptr [rax+388h]                                           ; +0xd4, 0x100573a14\nmulss   xmm0, cs:dword_100814FE4                                       ; +0xda, 0x100573a1a\nmov     rax, [r14]                                                     ; +0xe2, 0x100573a22\nmov     rdi, r14                                                       ; +0xe5, 0x100573a25\ncall    qword ptr [rax+390h]                                           ; +0xe8, 0x100573a28\nmov     rax, [r14]                                                     ; +0xee, 0x100573a2e\nmov     rdi, r14                                                       ; +0xf1, 0x100573a31\nmov     esi, 1                                                         ; +0xf4, 0x100573a34\ncall    qword ptr [rax+620h]                                           ; +0xf9, 0x100573a39\nmov     rax, [r15]                                                     ; +0xff, 0x100573a3f\nmov     rdi, r15                                                       ; +0x102, 0x100573a42\nmov     rsi, r14                                                       ; +0x105, 0x100573a45\nmov     edx, 0Bh                                                       ; +0x108, 0x100573a48\ncall    qword ptr [rax+1C0h]                                           ; +0x10d, 0x100573a4d\nmov     rax, [r14]                                                     ; +0x113, 0x100573a53\nmovss   xmm0, cs:width                                                 ; +0x116, 0x100573a56\nmov     rdi, r14                                                       ; +0x11e, 0x100573a5e\ncall    qword ptr [rax+0A0h]                                           ; +0x121, 0x100573a61\nmov     rdi, r14                                                       ; +0x127, 0x100573a67\ncall    cocos2d__CCParticleSystem__resetSystem                         ; +0x12a, 0x100573a6a\nmov     rax, [rbx]                                                     ; +0x12f, 0x100573a6f\nmov     rdi, rbx                                                       ; +0x132, 0x100573a72\ncall    qword ptr [rax+1F0h]                                           ; +0x135, 0x100573a75\nmov     r12, rax                                                       ; +0x13b, 0x100573a7b\nmov     rax, [rbx]                                                     ; +0x13e, 0x100573a7e\nmov     rdi, rbx                                                       ; +0x141, 0x100573a81\ncall    qword ptr [rax+0C0h]                                           ; +0x144, 0x100573a84\nlea     rdi, [rbp+var_50]                                              ; +0x14a, 0x100573a8a\nmov     rsi, r12                                                       ; +0x14e, 0x100573a8e\nmov     rdx, rax                                                       ; +0x151, 0x100573a91\ncall    cocos2d__CCNode__convertToWorldSpace                           ; +0x154, 0x100573a94\nlea     rdi, [rbp+var_30]                                              ; +0x159, 0x100573a99\nlea     rdx, [rbp+var_50]                                              ; +0x15d, 0x100573a9d\nmov     rsi, r15                                                       ; +0x161, 0x100573aa1\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x164, 0x100573aa4\nmov     rax, [r14]                                                     ; +0x169, 0x100573aa9\nlea     rsi, [rbp+var_30]                                              ; +0x16c, 0x100573aac\nmov     rdi, r14                                                       ; +0x170, 0x100573ab0\ncall    qword ptr [rax+0B8h]                                           ; +0x173, 0x100573ab3\nmovzx   eax, word ptr [rbx+150h]                                       ; +0x179, 0x100573ab9\nmovzx   ecx, byte ptr [rbx+152h]                                       ; +0x180, 0x100573ac0\nxorps   xmm0, xmm0                                                     ; +0x187, 0x100573ac7\ncvtsi2ss xmm0, ecx                                                     ; +0x18a, 0x100573aca\nshl     ecx, 10h                                                       ; +0x18e, 0x100573ace\nor      ecx, eax                                                       ; +0x191, 0x100573ad1\nshr     eax, 8                                                         ; +0x193, 0x100573ad3\nmovzx   ecx, cl                                                        ; +0x196, 0x100573ad6\ncvtsi2ss xmm1, ecx                                                     ; +0x199, 0x100573ad9\nmovss   xmm3, cs:dword_100815C10                                       ; +0x19d, 0x100573add\ndivss   xmm1, xmm3                                                     ; +0x1a5, 0x100573ae5\ncvtsi2ss xmm2, eax                                                     ; +0x1a9, 0x100573ae9\ndivss   xmm2, xmm3                                                     ; +0x1ad, 0x100573aed\ndivss   xmm0, xmm3                                                     ; +0x1b1, 0x100573af1\nblendps xmm0, cs:xmmword_1008150D0, 0Eh                                ; +0x1b5, 0x100573af5\ninsertps xmm1, xmm2, 10h                                               ; +0x1bf, 0x100573aff\nmovlhps xmm1, xmm0                                                     ; +0x1c5, 0x100573b05\nmovups  [rbp+var_30], xmm1                                             ; +0x1c8, 0x100573b08\nmov     rax, [r14]                                                     ; +0x1cc, 0x100573b0c\nlea     rsi, [rbp+var_30]                                              ; +0x1cf, 0x100573b0f\nmov     rdi, r14                                                       ; +0x1d3, 0x100573b13\ncall    qword ptr [rax+540h]                                           ; +0x1d6, 0x100573b16\nmovzx   eax, word ptr [rbx+150h]                                       ; +0x1dc, 0x100573b1c\nmovzx   ecx, byte ptr [rbx+152h]                                       ; +0x1e3, 0x100573b23\nxorps   xmm0, xmm0                                                     ; +0x1ea, 0x100573b2a\ncvtsi2ss xmm0, ecx                                                     ; +0x1ed, 0x100573b2d\nshl     ecx, 10h                                                       ; +0x1f1, 0x100573b31\nor      ecx, eax                                                       ; +0x1f4, 0x100573b34\nshr     eax, 8                                                         ; +0x1f6, 0x100573b36\nmovzx   ecx, cl                                                        ; +0x1f9, 0x100573b39\nxorps   xmm1, xmm1                                                     ; +0x1fc, 0x100573b3c\ncvtsi2ss xmm1, ecx                                                     ; +0x1ff, 0x100573b3f\nmovss   xmm3, cs:dword_100815C10                                       ; +0x203, 0x100573b43\ndivss   xmm1, xmm3                                                     ; +0x20b, 0x100573b4b\nxorps   xmm2, xmm2                                                     ; +0x20f, 0x100573b4f\ncvtsi2ss xmm2, eax                                                     ; +0x212, 0x100573b52\ndivss   xmm2, xmm3                                                     ; +0x216, 0x100573b56\ndivss   xmm0, xmm3                                                     ; +0x21a, 0x100573b5a\nblendps xmm0, cs:xmmword_1008150D0, 0Eh                                ; +0x21e, 0x100573b5e\ninsertps xmm1, xmm2, 10h                                               ; +0x228, 0x100573b68\nmovlhps xmm1, xmm0                                                     ; +0x22e, 0x100573b6e\nmovups  [rbp+var_30], xmm1                                             ; +0x231, 0x100573b71\nmov     rax, [r14]                                                     ; +0x235, 0x100573b75\nlea     rsi, [rbp+var_30]                                              ; +0x238, 0x100573b78\nmov     rdi, r14                                                       ; +0x23c, 0x100573b7c\ncall    qword ptr [rax+560h]                                           ; +0x23f, 0x100573b7f\ntest    byte ptr [rbp+var_48], 1                                       ; +0x245, 0x100573b85\njz      short loc_100573B94                                            ; +0x249, 0x100573b89\nmov     rdi, [rbp+__p]; __p                                            ; +0x24b, 0x100573b8b\ncall    __ZdlPv; operator delete(void *)                               ; +0x24f, 0x100573b8f\nadd     rsp, 40h                                                       ; +0x254, 0x100573b94\npop     rbx                                                            ; +0x258, 0x100573b98\npop     r12                                                            ; +0x259, 0x100573b99\npop     r14                                                            ; +0x25b, 0x100573b9b\npop     r15                                                            ; +0x25d, 0x100573b9d\npop     rbp                                                            ; +0x25f, 0x100573b9f\nretn                                                                   ; +0x260, 0x100573ba0", "xrefs": ["GauntletSelectLayer::playUnlockAnimation @ 0x1005735ae"], "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"}