{"type": "func", "start": 5372474496, "end": 5372474795, "name": "PlayerObject::playSpawnEffect", "pseudocode": "// \n// PlayerObject::playSpawnEffect from 0x140397480 to 0x1403975ab (299 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::resetLevel @ 0x1403b96b9\n// > PlayLayer::resetLevel @ 0x1403b96ce\n// > <???> @ 0x1406d6440\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=1\nvoid PlayerObject::playSpawnEffect(PlayerObject *a1)\n{\n  float v1; // xmm3_4\n  struct cocos2d::CCBlink *v3; // rbx\n  __int64 v4; // rax\n  struct cocos2d::CCSequence *v5; // rbx\n  cocos2d::ccColor3B *v6; // r8\n  __int64 v7; // rax\n  int i; // edi\n  __int64 v9; // rbx\n  struct cocos2d::CCDelayTime *v10; // rax\n  struct cocos2d::CCSequence *v11; // rax\n  cocos2d::ccColor3B *v12; // r8\n  float v13; // [rsp+20h] [rbp-18h]\n  float v14; // [rsp+20h] [rbp-18h]\n  void *v15; // [rsp+40h] [rbp+8h]\n\n  if ( !a1->m_isBeingSpawnedByDualPortal )\n  {\n    cocos2d::CCNode::stopActionByTag(a1, 11);\n    v3 = cocos2d::CCBlink::create(0.40000001, 4u);\n    v4 = cocos2d::CCShow::create();\n    v5 = cocos2d::CCSequence::create(v3, v4, 0);\n    v5->setTag(v5, 11);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v5, v6, v1, v13);\n    v7 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v15 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v7 = qword_1406C2ED8;\n    }\n    if ( !*(_BYTE *)(v7 + 917) )\n    {\n      for ( i = 0; i < 4; ++i )\n      {\n        v9 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle);\n        v10 = cocos2d::CCDelayTime::create((float)i * 0.1);\n        v11 = cocos2d::CCSequence::create(v10, v9, 0);\n        cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v11, v12, v1, v14);\n      }\n    }\n  }\n}", "assembly": "; \n; PlayerObject::playSpawnEffect from 0x140397480 to 0x1403975ab (299 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::resetLevel @ 0x1403b96b9\n; > PlayLayer::resetLevel @ 0x1403b96ce\n; > <???> @ 0x1406d6440\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+arg_8], rbx                                               ; +0x0, 0x140397480\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140397485\npush    rdi                                                            ; +0xa, 0x14039748a\nsub     rsp, 30h                                                       ; +0xb, 0x14039748b\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0xf, 0x14039748f\nmov     rsi, rcx                                                       ; +0x14, 0x140397494\ncmp     byte ptr [rcx+0AA8h], 0                                        ; +0x17, 0x140397497\njnz     loc_140397596                                                  ; +0x1e, 0x14039749e\nmov     edx, 0Bh                                                       ; +0x24, 0x1403974a4\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x29, 0x1403974a9\nmov     edx, 4                                                         ; +0x2f, 0x1403974af\nmovss   xmm0, cs:dword_140622AD0                                       ; +0x34, 0x1403974b4\ncall    cs:?create@CCBlink@cocos2d@@SAPEAV12@MI@Z; cocos2d::CCBlink::create(float,uint) ; +0x3c, 0x1403974bc\nmov     rbx, rax                                                       ; +0x42, 0x1403974c2\ncall    cs:?create@CCShow@cocos2d@@SAPEAV12@XZ; cocos2d::CCShow::create(void) ; +0x45, 0x1403974c5\nxor     r8d, r8d                                                       ; +0x4b, 0x1403974cb\nmov     rdx, rax                                                       ; +0x4e, 0x1403974ce\nmov     rcx, rbx                                                       ; +0x51, 0x1403974d1\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x54, 0x1403974d4\nmov     rbx, rax                                                       ; +0x5a, 0x1403974da\nmov     r8, [rax]                                                      ; +0x5d, 0x1403974dd\nmov     edx, 0Bh                                                       ; +0x60, 0x1403974e0\nmov     rcx, rax                                                       ; +0x65, 0x1403974e5\ncall    qword ptr [r8+40h]                                             ; +0x68, 0x1403974e8\nmov     rdx, rbx                                                       ; +0x6c, 0x1403974ec\nmov     rcx, rsi                                                       ; +0x6f, 0x1403974ef\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x72, 0x1403974f2\nmov     rax, cs:qword_1406C2ED8                                        ; +0x78, 0x1403974f8\ntest    rax, rax                                                       ; +0x7f, 0x1403974ff\njnz     short loc_140397533                                            ; +0x82, 0x140397502\nmov     ecx, 668h; Size                                                ; +0x84, 0x140397504\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x89, 0x140397509\nmov     [rsp+38h+arg_0], rax                                           ; +0x8e, 0x14039750e\nmov     rcx, rax                                                       ; +0x93, 0x140397513\ncall    sub_14017AB00                                                  ; +0x96, 0x140397516\nnop                                                                    ; +0x9b, 0x14039751b\nmov     cs:qword_1406C2ED8, rax                                        ; +0x9c, 0x14039751c\nmov     rdx, [rax]                                                     ; +0xa3, 0x140397523\nmov     rcx, rax                                                       ; +0xa6, 0x140397526\ncall    qword ptr [rdx+48h]                                            ; +0xa9, 0x140397529\nmov     rax, cs:qword_1406C2ED8                                        ; +0xac, 0x14039752c\ncmp     byte ptr [rax+395h], 0                                         ; +0xb3, 0x140397533\njnz     short loc_140397596                                            ; +0xba, 0x14039753a\nxor     edi, edi                                                       ; +0xbc, 0x14039753c\nmovss   xmm6, cs:dword_140622A10                                       ; +0xbe, 0x14039753e\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc6, 0x140397546\nlea     rdx, PlayerObject__spawnCircle                                 ; +0xd0, 0x140397550\nmov     rcx, rsi                                                       ; +0xd7, 0x140397557\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xda, 0x14039755a\nmov     rbx, rax                                                       ; +0xe0, 0x140397560\nmovd    xmm0, edi                                                      ; +0xe3, 0x140397563\ncvtdq2ps xmm0, xmm0                                                    ; +0xe7, 0x140397567\nmulss   xmm0, xmm6                                                     ; +0xea, 0x14039756a\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0xee, 0x14039756e\nmov     rcx, rax                                                       ; +0xf4, 0x140397574\nxor     r8d, r8d                                                       ; +0xf7, 0x140397577\nmov     rdx, rbx                                                       ; +0xfa, 0x14039757a\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xfd, 0x14039757d\nmov     rdx, rax                                                       ; +0x103, 0x140397583\nmov     rcx, rsi                                                       ; +0x106, 0x140397586\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x109, 0x140397589\ninc     edi                                                            ; +0x10f, 0x14039758f\ncmp     edi, 4                                                         ; +0x111, 0x140397591\njl      short loc_140397550                                            ; +0x114, 0x140397594\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x116, 0x140397596\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x11b, 0x14039759b\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0x120, 0x1403975a0\nadd     rsp, 30h                                                       ; +0x125, 0x1403975a5\npop     rdi                                                            ; +0x129, 0x1403975a9\nretn                                                                   ; +0x12a, 0x1403975aa", "xrefs": ["PlayLayer::resetLevel @ 0x1403b96b9", "PlayLayer::resetLevel @ 0x1403b96ce", "<???> @ 0x1406d6440"], "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"}