{"type": "func", "start": 5371364224, "end": 5371364853, "name": "GJPathPage::unlockAnimationStep2", "pseudocode": "// \n// GJPathPage::unlockAnimationStep2 from 0x140288380 to 0x1402885f5 (629 bytes)\n// \n// 2 xrefs:\n// > GJPathPage::playUnlockAnimation @ 0x14028826a\n// > <???> @ 0x1406d15c8\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\n// Hidden C++ exception states: #wind=2\nvoid GJPathPage::unlockAnimationStep2(GJPathPage *a1)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCParticleSystemQuad *v3; // rdi\n  _BOOL8 v4; // rdx\n  double v5; // xmm0_8\n  cocos2d::CCParticleSystemQuad_vtbl *v6; // rbx\n  const cocos2d::CCPoint *v7; // rax\n  void *v8; // rcx\n  float v9; // [rsp+20h] [rbp-E0h]\n  _BYTE v10[16]; // [rsp+28h] [rbp-D8h] BYREF\n  __int128 v11; // [rsp+38h] [rbp-C8h] BYREF\n  void *Block[2]; // [rsp+48h] [rbp-B8h] BYREF\n  __int64 v13; // [rsp+58h] [rbp-A8h]\n  unsigned __int64 v14; // [rsp+60h] [rbp-A0h]\n  cocos2d::ParticleStruct v15; // [rsp+70h] [rbp-90h] BYREF\n\n  v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2);\n  *(_OWORD *)Block = 0;\n  Block[0] = sub_14003AA10(0xB0u);\n  v13 = 170;\n  v14 = 175;\n  strcpy(\n    (char *)Block[0],\n    \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1\"\n    \"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0\");\n  sub_140063B90((__int64)&v15);\n  GameToolbox::particleStringToStruct((__int64 *)Block, (__int64)&v15);\n  v3 = GameToolbox::particleFromStruct(&v15, nullptr, 0);\n  sub_14003A830((__int64)&v15.sFrame);\n  LOBYTE(v4) = 1;\n  v3->setAutoRemoveOnFinish(v3, v4);\n  v5 = ((double (__fastcall *)(GJPathPage *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v3, 11);\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v3->setScale_0)(v3);\n  cocos2d::CCParticleSystem::resetSystem(v3);\n  v6 = v3->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(*(float *)&v5, v9 * 0.5);\n  v6->setPosition_0(v3, v7);\n  v11 = *(_OWORD *)sub_140284780((__int64)v10, a1->m_pathNumber);\n  v3->setStartColor(v3, (const cocos2d::ccColor4F *)&v11);\n  v11 = *(_OWORD *)sub_140284670((__int64)v10, a1->m_pathNumber);\n  v3->setEndColor(v3, (const cocos2d::ccColor4F *)&v11);\n  if ( v14 > 0xF )\n  {\n    v8 = Block[0];\n    if ( v14 + 1 >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; GJPathPage::unlockAnimationStep2 from 0x140288380 to 0x1402885f5 (629 bytes)\n; \n; 2 xrefs:\n; > GJPathPage::playUnlockAnimation @ 0x14028826a\n; > <???> @ 0x1406d15c8\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\nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140288380\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x140288385\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x14028838a\npush    rbp                                                            ; +0xf, 0x14028838f\nlea     rbp, [rsp-0B0h]                                                ; +0x10, 0x140288390\nsub     rsp, 1B0h                                                      ; +0x18, 0x140288398\nmov     rax, cs:__security_cookie                                      ; +0x1f, 0x14028839f\nxor     rax, rsp                                                       ; +0x26, 0x1402883a6\nmov     [rbp+0B0h+var_10], rax                                         ; +0x29, 0x1402883a9\nmov     rsi, rcx                                                       ; +0x30, 0x1402883b0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x1402883b3\nmov     rcx, rax                                                       ; +0x39, 0x1402883b9\nlea     rdx, [rsp+1B0h+var_190]                                        ; +0x3c, 0x1402883bc\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x41, 0x1402883c1\nxorps   xmm0, xmm0                                                     ; +0x47, 0x1402883c7\nmovups  xmmword ptr [rsp+1B0h+Block], xmm0                             ; +0x4a, 0x1402883ca\nxor     edi, edi                                                       ; +0x4f, 0x1402883cf\nmov     [rsp+1B0h+var_158], rdi                                        ; +0x51, 0x1402883d1\nmov     [rsp+1B0h+var_150], 0Fh                                        ; +0x56, 0x1402883d6\nmov     ecx, 0B0h                                                      ; +0x5f, 0x1402883df\ncall    sub_14003AA10                                                  ; +0x64, 0x1402883e4\nmov     r8, rax                                                        ; +0x69, 0x1402883e9\nmov     [rsp+1B0h+Block], rax                                          ; +0x6c, 0x1402883ec\nmov     [rsp+1B0h+var_158], 0AAh                                       ; +0x71, 0x1402883f1\nmov     [rsp+1B0h+var_150], 0AFh                                       ; +0x7a, 0x1402883fa\nlea     rcx, a84a097a1a016a7; \"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0\"... ; +0x83, 0x140288403\nmovups  xmm0, xmmword ptr [rcx]                                        ; +0x8a, 0x14028840a\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8d, 0x14028840d\nmovups  xmm1, xmmword ptr [rcx+10h]                                    ; +0x90, 0x140288410\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x94, 0x140288414\nmovups  xmm0, xmmword ptr [rcx+20h]                                    ; +0x98, 0x140288418\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x9c, 0x14028841c\nmovups  xmm1, xmmword ptr [rcx+30h]                                    ; +0xa0, 0x140288420\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xa4, 0x140288424\nmovups  xmm0, xmmword ptr [rcx+40h]                                    ; +0xa8, 0x140288428\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xac, 0x14028842c\nmovups  xmm1, xmmword ptr [rcx+50h]                                    ; +0xb0, 0x140288430\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0xb4, 0x140288434\nmovups  xmm0, xmmword ptr [rcx+60h]                                    ; +0xb8, 0x140288438\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0xbc, 0x14028843c\nmovups  xmm0, xmmword ptr [rcx+70h]                                    ; +0xc0, 0x140288440\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0xc4, 0x140288444\nmovups  xmm1, xmmword ptr [rcx+80h]                                    ; +0xc8, 0x140288448\nmovups  xmmword ptr [rax+80h], xmm1                                    ; +0xcf, 0x14028844f\nmovups  xmm0, xmmword ptr [rcx+90h]                                    ; +0xd6, 0x140288456\nmovups  xmmword ptr [rax+90h], xmm0                                    ; +0xdd, 0x14028845d\nmov     rax, [rcx+0A0h]                                                ; +0xe4, 0x140288464\nmov     [r8+0A0h], rax                                                 ; +0xeb, 0x14028846b\nmovzx   eax, word ptr [rcx+0A8h]                                       ; +0xf2, 0x140288472\nmov     [r8+0A8h], ax                                                  ; +0xf9, 0x140288479\nmov     [r8+0AAh], dil                                                 ; +0x101, 0x140288481\ncmp     [rsp+1B0h+var_158], rdi                                        ; +0x108, 0x140288488\njz      short loc_1402884C4                                            ; +0x10d, 0x14028848d\nlea     rcx, [rsp+1B0h+var_140]                                        ; +0x10f, 0x14028848f\ncall    sub_140063B90                                                  ; +0x114, 0x140288494\nnop                                                                    ; +0x119, 0x140288499\nlea     rdx, [rsp+1B0h+var_140]                                        ; +0x11a, 0x14028849a\nlea     rcx, [rsp+1B0h+Block]                                          ; +0x11f, 0x14028849f\ncall    GameToolbox__particleStringToStruct                            ; +0x124, 0x1402884a4\nxor     r8d, r8d                                                       ; +0x129, 0x1402884a9\nxor     edx, edx                                                       ; +0x12c, 0x1402884ac\nlea     rcx, [rsp+1B0h+var_140]                                        ; +0x12e, 0x1402884ae\ncall    GameToolbox__particleFromStruct                                ; +0x133, 0x1402884b3\nmov     rdi, rax                                                       ; +0x138, 0x1402884b8\nlea     rcx, [rbp+0B0h+var_38]                                         ; +0x13b, 0x1402884bb\ncall    sub_14003A830                                                  ; +0x13f, 0x1402884bf\nmov     rax, [rdi]                                                     ; +0x144, 0x1402884c4\nmov     dl, 1                                                          ; +0x147, 0x1402884c7\nmov     rcx, rdi                                                       ; +0x149, 0x1402884c9\ncall    qword ptr [rax+5F8h]                                           ; +0x14c, 0x1402884cc\nmov     rax, [rsi]                                                     ; +0x152, 0x1402884d2\nmov     r8d, 0Bh                                                       ; +0x155, 0x1402884d5\nmov     rdx, rdi                                                       ; +0x15b, 0x1402884db\nmov     rcx, rsi                                                       ; +0x15e, 0x1402884de\ncall    qword ptr [rax+1B8h]                                           ; +0x161, 0x1402884e1\nmov     rax, [rdi]                                                     ; +0x167, 0x1402884e7\nmovss   xmm1, cs:width                                                 ; +0x16a, 0x1402884ea\nmov     rcx, rdi                                                       ; +0x172, 0x1402884f2\ncall    qword ptr [rax+0A0h]                                           ; +0x175, 0x1402884f5\nmov     rcx, rdi                                                       ; +0x17b, 0x1402884fb\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x17e, 0x1402884fe\nmov     rbx, [rdi]                                                     ; +0x184, 0x140288504\nmovss   xmm2, [rsp+1B0h+var_18C]                                       ; +0x187, 0x140288507\nmulss   xmm2, cs:dword_140622B08                                       ; +0x18d, 0x14028850d\nmovss   xmm1, [rsp+1B0h+var_190]                                       ; +0x195, 0x140288515\nmulss   xmm1, cs:dword_140622B08                                       ; +0x19b, 0x14028851b\nlea     rcx, [rsp+1B0h+var_178]                                        ; +0x1a3, 0x140288523\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a8, 0x140288528\nmov     rdx, rax                                                       ; +0x1ae, 0x14028852e\nmov     rcx, rdi                                                       ; +0x1b1, 0x140288531\ncall    qword ptr [rbx+0B8h]                                           ; +0x1b4, 0x140288534\nmov     edx, [rsi+290h]                                                ; +0x1ba, 0x14028853a\nlea     rcx, [rsp+1B0h+var_188]                                        ; +0x1c0, 0x140288540\ncall    sub_140284780                                                  ; +0x1c5, 0x140288545\nmovups  xmm3, xmmword ptr [rax]                                        ; +0x1ca, 0x14028854a\nmovups  [rsp+1B0h+var_178], xmm3                                       ; +0x1cd, 0x14028854d\nmov     rax, [rdi]                                                     ; +0x1d2, 0x140288552\nlea     rdx, [rsp+1B0h+var_178]                                        ; +0x1d5, 0x140288555\nmov     rcx, rdi                                                       ; +0x1da, 0x14028855a\ncall    qword ptr [rax+538h]                                           ; +0x1dd, 0x14028855d\nmov     edx, [rsi+290h]                                                ; +0x1e3, 0x140288563\nlea     rcx, [rsp+1B0h+var_188]                                        ; +0x1e9, 0x140288569\ncall    sub_140284670                                                  ; +0x1ee, 0x14028856e\nmovups  xmm3, xmmword ptr [rax]                                        ; +0x1f3, 0x140288573\nmovups  [rsp+1B0h+var_178], xmm3                                       ; +0x1f6, 0x140288576\nmov     rax, [rdi]                                                     ; +0x1fb, 0x14028857b\nlea     rdx, [rsp+1B0h+var_178]                                        ; +0x1fe, 0x14028857e\nmov     rcx, rdi                                                       ; +0x203, 0x140288583\ncall    qword ptr [rax+558h]                                           ; +0x206, 0x140288586\nnop                                                                    ; +0x20c, 0x14028858c\nmov     rdx, [rsp+1B0h+var_150]                                        ; +0x20d, 0x14028858d\ncmp     rdx, 0Fh                                                       ; +0x212, 0x140288592\njbe     short loc_1402885CD                                            ; +0x216, 0x140288596\ninc     rdx                                                            ; +0x218, 0x140288598\nmov     rcx, [rsp+1B0h+Block]; Block                                   ; +0x21b, 0x14028859b\nmov     rax, rcx                                                       ; +0x220, 0x1402885a0\ncmp     rdx, 1000h                                                     ; +0x223, 0x1402885a3\njb      short loc_1402885C8                                            ; +0x22a, 0x1402885aa\nadd     rdx, 27h ; '''                                                 ; +0x22c, 0x1402885ac\nmov     rcx, [rcx-8]                                                   ; +0x230, 0x1402885b0\nsub     rax, rcx                                                       ; +0x234, 0x1402885b4\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x237, 0x1402885b7\ncmp     rax, 1Fh                                                       ; +0x23b, 0x1402885bb\njbe     short loc_1402885C8                                            ; +0x23f, 0x1402885bf\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x241, 0x1402885c1\nalign 8                                                                ; +0x247, 0x1402885c7\ncall    j_j_free                                                       ; +0x248, 0x1402885c8\nmov     rcx, [rbp+0B0h+var_10]                                         ; +0x24d, 0x1402885cd\nxor     rcx, rsp; StackCookie                                          ; +0x254, 0x1402885d4\ncall    __security_check_cookie                                        ; +0x257, 0x1402885d7\nlea     r11, [rsp+1B0h+var_s0]                                         ; +0x25c, 0x1402885dc\nmov     rbx, [r11+18h]                                                 ; +0x264, 0x1402885e4\nmov     rsi, [r11+20h]                                                 ; +0x268, 0x1402885e8\nmov     rdi, [r11+28h]                                                 ; +0x26c, 0x1402885ec\nmov     rsp, r11                                                       ; +0x270, 0x1402885f0\npop     rbp                                                            ; +0x273, 0x1402885f3\nretn                                                                   ; +0x274, 0x1402885f4", "xrefs": ["GJPathPage::playUnlockAnimation @ 0x14028826a", "<???> @ 0x1406d15c8"], "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"}