{"type": "func", "start": 5372399456, "end": 5372400424, "name": "ExplodeItemNode::update", "pseudocode": "// \n// ExplodeItemNode::update from 0x140384f60 to 0x140385328 (968 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405c7530\n// > <???> @ 0x1406970ac\n// > <???> @ 0x1406970f4\n// > <???> @ 0x1406d5e70\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 ExplodeItemNode::update(ExplodeItemNode *a1, float a2)\n{\n  float v3; // xmm6_4\n  float v5; // xmm9_4\n  unsigned int v6; // ebp\n  float v7; // xmm12_4\n  struct cocos2d::CCObject *v8; // rdi\n  float v9; // xmm0_4\n  int v10; // xmm1_4\n  float v11; // xmm1_4\n  float v12; // xmm0_4\n  int v13; // xmm0_4\n  cocos2d::CCObject_vtbl *v14; // rbx\n  float v15; // xmm0_4\n  float v16; // xmm1_4\n  __int64 v17; // rcx\n  char v18; // cl\n  __int64 *v19; // rbx\n  __int64 v20; // rbx\n  __int64 v21; // rax\n  cocos2d::CCParticleSystem *v22; // rcx\n  unsigned int v23; // eax\n  char v24; // [rsp+F0h] [rbp+8h] BYREF\n  float v25; // [rsp+F4h] [rbp+Ch]\n  cocos2d::CCPoint v26; // [rsp+100h] [rbp+18h] BYREF\n\n  v3 = a2 * 54.0;\n  v5 = (float)(a2 * 54.0) * 0.5;\n  if ( a1->m_noGravity )\n    v5 = 0.0;\n  v6 = 0;\n  v7 = a1->m_floorHeight - a1->getPosition_0(a1)->y;\n  if ( cocos2d::CCArray::count(a1->m_sprites) )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(a1->m_sprites, v6);\n      v8->__vftable[2].getTag(v8);\n      cocos2d::CCPoint::CCPoint(&v26);\n      v9 = *(float *)&v8[10].m_uOrderOfArrival - a2;\n      *(float *)&v8[10].m_uOrderOfArrival = v9;\n      if ( v9 <= 0.0 )\n      {\n        v22 = *(cocos2d::CCParticleSystem **)&v8[11].m_uID;\n        if ( v22 )\n        {\n          cocos2d::CCParticleSystem::stopSystem(v22);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&v8[11].m_uID + 512LL))(*(_QWORD *)&v8[11].m_uID);\n          *(_QWORD *)&v8[11].m_uID = 0;\n        }\n        cocos2d::CCArray::removeObjectAtIndex(a1->m_sprites, v6, 1);\n        v8->__vftable[7].~CCObject(v8);\n        v18 = 1;\n      }\n      else\n      {\n        *(float *)&v8[10].m_nZOrder = *(float *)&v8[10].m_nZOrder - v5;\n        *(float *)&v10 = (float)((float)((float)(1.0 - v3) * 0.02) + 0.98000002) * *(float *)&v8[10].m_unknown2;\n        v8[10].m_unknown2 = v10;\n        cocos2d::CCPoint::CCPoint(v9, *(float *)&v10 * v3);\n        cocos2d::CCPoint::operator+(&v26, &v24);\n        v11 = (float)(fminf(*(float *)&v8[7].m_unknown2, *(float *)&v8[7].m_nZOrder) * 0.5) + v7;\n        if ( v11 > v25 )\n        {\n          v12 = *(float *)&v8[10].m_nZOrder;\n          if ( v12 < 0.0 )\n          {\n            *(float *)&v13 = v12 * -0.80000001;\n            v25 = v11;\n            v8[10].m_nZOrder = v13;\n            if ( *(float *)&v13 < 1.5 )\n              v8[10].m_nZOrder = 1069547520;\n          }\n        }\n        v8->__vftable[2].encodeWithCoder(v8, (DS_Dictionary *)&v24);\n        v14 = v8->__vftable;\n        v8->__vftable[4].getTag(v8);\n        v14[4].canEncode(v8);\n        v15 = *(float *)&v8[10].m_uOrderOfArrival;\n        v16 = *(float *)&v8[10].m_unknown5;\n        if ( v16 > v15 )\n        {\n          (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v8[5].m_unknown2 + 40LL))(\n            &v8[5].m_unknown2,\n            (unsigned int)(int)(float)((float)(v15 / v16) * 255.0));\n          v17 = *(_QWORD *)&v8[11].m_uID;\n          if ( v17 )\n            *(_BYTE *)(v17 + 838) = (int)(float)((float)(*(float *)&v8[10].m_uOrderOfArrival\n                                                       / *(float *)&v8[10].m_unknown5)\n                                               * 255.0);\n        }\n        v18 = 0;\n        if ( v8 )\n        {\n          v19 = *(__int64 **)&v8[11].m_uID;\n          if ( v19 )\n          {\n            v20 = *v19;\n            v21 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v8->__vftable[2].getTag)(v8);\n            (*(void (__fastcall **)(_QWORD, __int64))(v20 + 184))(*(_QWORD *)&v8[11].m_uID, v21);\n            v18 = 0;\n          }\n        }\n      }\n      v23 = v6 + 1;\n      if ( v18 )\n        v23 = v6;\n      v6 = v23;\n    }\n    while ( v23 < cocos2d::CCArray::count(a1->m_sprites) );\n  }\n  if ( !cocos2d::CCArray::count(a1->m_sprites) )\n  {\n    cocos2d::CCNode::unscheduleUpdate(a1);\n    a1->removeMeAndCleanup(a1);\n  }\n}", "assembly": "; \n; ExplodeItemNode::update from 0x140384f60 to 0x140385328 (968 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405c7530\n; > <???> @ 0x1406970ac\n; > <???> @ 0x1406970f4\n; > <???> @ 0x1406d5e70\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     rax, rsp                                                       ; +0x0, 0x140384f60\npush    rsi                                                            ; +0x3, 0x140384f63\nsub     rsp, 0E0h                                                      ; +0x4, 0x140384f64\ncmp     byte ptr [rcx+158h], 0                                         ; +0xb, 0x140384f6b\nmov     rsi, rcx                                                       ; +0x12, 0x140384f72\nmov     [rax-18h], rbp                                                 ; +0x15, 0x140384f75\nmov     [rax-28h], r14                                                 ; +0x19, 0x140384f79\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1d, 0x140384f7d\nmovaps  xmm6, xmm1                                                     ; +0x21, 0x140384f81\nmulss   xmm6, cs:dword_1406231F4                                       ; +0x24, 0x140384f84\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x2c, 0x140384f8c\nxorps   xmm7, xmm7                                                     ; +0x30, 0x140384f90\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x33, 0x140384f93\nmovaps  [rsp+0E8h+var_98], xmm12                                       ; +0x38, 0x140384f98\nmovaps  xmm9, xmm6                                                     ; +0x3e, 0x140384f9e\nmovaps  [rsp+0E8h+var_A8], xmm13                                       ; +0x42, 0x140384fa2\nmovaps  xmm13, xmm1                                                    ; +0x48, 0x140384fa8\nmovaps  [rsp+0E8h+var_B8], xmm14                                       ; +0x4c, 0x140384fac\nmovss   xmm14, cs:dword_140622B08                                      ; +0x52, 0x140384fb2\nmulss   xmm9, xmm14                                                    ; +0x5b, 0x140384fbb\njz      short loc_140384FC6                                            ; +0x60, 0x140384fc0\nxorps   xmm9, xmm9                                                     ; +0x62, 0x140384fc2\nmov     rax, [rcx]                                                     ; +0x66, 0x140384fc6\ncall    qword ptr [rax+0C8h]                                           ; +0x69, 0x140384fc9\nmovss   xmm12, dword ptr [rsi+154h]                                    ; +0x6f, 0x140384fcf\nxor     r14d, r14d                                                     ; +0x78, 0x140384fd8\nmov     rcx, [rsi+148h]                                                ; +0x7b, 0x140384fdb\nmov     ebp, r14d                                                      ; +0x82, 0x140384fe2\nsubss   xmm12, dword ptr [rax+4]                                       ; +0x85, 0x140384fe5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8b, 0x140384feb\ntest    eax, eax                                                       ; +0x91, 0x140384ff1\njz      loc_1403852BE                                                  ; +0x93, 0x140384ff3\nmov     [rsp+0E8h+var_20], rdi                                         ; +0x99, 0x140384ff9\nmovaps  [rsp+0E8h+var_58], xmm8                                        ; +0xa1, 0x140385001\nmovss   xmm8, cs:dword_140623418                                       ; +0xaa, 0x14038500a\nmovaps  [rsp+0E8h+var_78], xmm10                                       ; +0xb3, 0x140385013\nmovss   xmm10, cs:dword_1406236E0                                      ; +0xb9, 0x140385019\nmovaps  [rsp+0E8h+var_88], xmm11                                       ; +0xc2, 0x140385022\nmovss   xmm11, cs:dword_140622D04                                      ; +0xc8, 0x140385028\nmovaps  [rsp+0E8h+var_C8], xmm15                                       ; +0xd1, 0x140385031\nmovss   xmm15, cs:flt_140622C24                                        ; +0xd7, 0x140385037\nmov     [rsp+0E8h+var_10], rbx                                         ; +0xe0, 0x140385040\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xe8, 0x140385048\nmov     rcx, [rsi+148h]                                                ; +0xf0, 0x140385050\nmov     edx, ebp                                                       ; +0xf7, 0x140385057\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xf9, 0x140385059\nmov     rcx, rax                                                       ; +0xff, 0x14038505f\nmov     rdi, rax                                                       ; +0x102, 0x140385062\nmov     rdx, [rax]                                                     ; +0x105, 0x140385065\ncall    qword ptr [rdx+0C8h]                                           ; +0x108, 0x140385068\nmov     rdx, rax                                                       ; +0x10e, 0x14038506e\nlea     rcx, [rsp+0E8h+arg_10]                                         ; +0x111, 0x140385071\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x119, 0x140385079\nmovss   xmm0, dword ptr [rdi+260h]                                     ; +0x11f, 0x14038507f\nsubss   xmm0, xmm13                                                    ; +0x127, 0x140385087\ncomiss  xmm0, xmm7                                                     ; +0x12c, 0x14038508c\nmovss   dword ptr [rdi+260h], xmm0                                     ; +0x12f, 0x14038508f\njbe     loc_14038522B                                                  ; +0x137, 0x140385097\nmovss   xmm2, dword ptr [rdi+25Ch]                                     ; +0x13d, 0x14038509d\nlea     rcx, [rsp+0E8h+arg_18]                                         ; +0x145, 0x1403850a5\nsubss   xmm2, xmm9                                                     ; +0x14d, 0x1403850ad\nmovaps  xmm1, xmm15                                                    ; +0x152, 0x1403850b2\nsubss   xmm1, xmm6                                                     ; +0x156, 0x1403850b6\nmovss   dword ptr [rdi+25Ch], xmm2                                     ; +0x15a, 0x1403850ba\nmulss   xmm1, cs:dword_1406229C0                                       ; +0x162, 0x1403850c2\nmulss   xmm2, xmm6                                                     ; +0x16a, 0x1403850ca\naddss   xmm1, cs:dword_140622C0C                                       ; +0x16e, 0x1403850ce\nmulss   xmm1, dword ptr [rdi+258h]                                     ; +0x176, 0x1403850d6\nmovss   dword ptr [rdi+258h], xmm1                                     ; +0x17e, 0x1403850de\nmulss   xmm1, xmm6                                                     ; +0x186, 0x1403850e6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x18a, 0x1403850ea\nmov     r8, rax                                                        ; +0x190, 0x1403850f0\nlea     rdx, [rsp+0E8h+arg_0]                                          ; +0x193, 0x1403850f3\nlea     rcx, [rsp+0E8h+arg_10]                                         ; +0x19b, 0x1403850fb\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x1a3, 0x140385103\nmovss   xmm1, dword ptr [rdi+1B0h]                                     ; +0x1a9, 0x140385109\nminss   xmm1, dword ptr [rdi+1B4h]                                     ; +0x1b1, 0x140385111\nmulss   xmm1, xmm14                                                    ; +0x1b9, 0x140385119\naddss   xmm1, xmm12                                                    ; +0x1be, 0x14038511e\ncomiss  xmm1, [rsp+0E8h+arg_4]                                         ; +0x1c3, 0x140385123\njbe     short loc_140385160                                            ; +0x1cb, 0x14038512b\nmovss   xmm0, dword ptr [rdi+25Ch]                                     ; +0x1cd, 0x14038512d\ncomiss  xmm7, xmm0                                                     ; +0x1d5, 0x140385135\njbe     short loc_140385160                                            ; +0x1d8, 0x140385138\nmulss   xmm0, xmm10                                                    ; +0x1da, 0x14038513a\nmovss   [rsp+0E8h+arg_4], xmm1                                         ; +0x1df, 0x14038513f\ncomiss  xmm11, xmm0                                                    ; +0x1e8, 0x140385148\nmovss   dword ptr [rdi+25Ch], xmm0                                     ; +0x1ec, 0x14038514c\njbe     short loc_140385160                                            ; +0x1f4, 0x140385154\nmov     dword ptr [rdi+25Ch], 3FC00000h                                ; +0x1f6, 0x140385156\nmov     rax, [rdi]                                                     ; +0x200, 0x140385160\nlea     rdx, [rsp+0E8h+arg_0]                                          ; +0x203, 0x140385163\nmov     rcx, rdi                                                       ; +0x20b, 0x14038516b\ncall    qword ptr [rax+0B8h]                                           ; +0x20e, 0x14038516e\nmov     rbx, [rdi]                                                     ; +0x214, 0x140385174\nmov     rcx, rdi                                                       ; +0x217, 0x140385177\ncall    qword ptr [rbx+158h]                                           ; +0x21a, 0x14038517a\nmovaps  xmm1, xmm6                                                     ; +0x220, 0x140385180\nmov     rcx, rdi                                                       ; +0x223, 0x140385183\nmulss   xmm1, dword ptr [rdi+268h]                                     ; +0x226, 0x140385186\naddss   xmm0, xmm1                                                     ; +0x22e, 0x14038518e\nmovaps  xmm1, xmm0                                                     ; +0x232, 0x140385192\ncall    qword ptr [rbx+150h]                                           ; +0x235, 0x140385195\nmovss   xmm0, dword ptr [rdi+260h]                                     ; +0x23b, 0x14038519b\nmovss   xmm1, dword ptr [rdi+264h]                                     ; +0x243, 0x1403851a3\ncomiss  xmm1, xmm0                                                     ; +0x24b, 0x1403851ab\njbe     short loc_1403851F5                                            ; +0x24e, 0x1403851ae\ndivss   xmm0, xmm1                                                     ; +0x250, 0x1403851b0\nlea     rcx, [rdi+140h]                                                ; +0x254, 0x1403851b4\nmov     rax, [rcx]                                                     ; +0x25b, 0x1403851bb\nmulss   xmm0, xmm8                                                     ; +0x25e, 0x1403851be\ncvttss2si edx, xmm0                                                    ; +0x263, 0x1403851c3\ncall    qword ptr [rax+28h]                                            ; +0x267, 0x1403851c7\nmov     rcx, [rdi+270h]                                                ; +0x26a, 0x1403851ca\ntest    rcx, rcx                                                       ; +0x271, 0x1403851d1\njz      short loc_1403851F5                                            ; +0x274, 0x1403851d4\nmovss   xmm0, dword ptr [rdi+260h]                                     ; +0x276, 0x1403851d6\ndivss   xmm0, dword ptr [rdi+264h]                                     ; +0x27e, 0x1403851de\nmulss   xmm0, xmm8                                                     ; +0x286, 0x1403851e6\ncvttss2si eax, xmm0                                                    ; +0x28b, 0x1403851eb\nmov     [rcx+346h], al                                                 ; +0x28f, 0x1403851ef\nxor     cl, cl                                                         ; +0x295, 0x1403851f5\ntest    rdi, rdi                                                       ; +0x297, 0x1403851f7\njz      short loc_140385274                                            ; +0x29a, 0x1403851fa\nmov     rbx, [rdi+270h]                                                ; +0x29c, 0x1403851fc\ntest    rbx, rbx                                                       ; +0x2a3, 0x140385203\njz      short loc_140385274                                            ; +0x2a6, 0x140385206\nmov     rax, [rdi]                                                     ; +0x2a8, 0x140385208\nmov     rcx, rdi                                                       ; +0x2ab, 0x14038520b\nmov     rbx, [rbx]                                                     ; +0x2ae, 0x14038520e\ncall    qword ptr [rax+0C8h]                                           ; +0x2b1, 0x140385211\nmov     rcx, [rdi+270h]                                                ; +0x2b7, 0x140385217\nmov     rdx, rax                                                       ; +0x2be, 0x14038521e\ncall    qword ptr [rbx+0B8h]                                           ; +0x2c1, 0x140385221\nxor     cl, cl                                                         ; +0x2c7, 0x140385227\njmp     short loc_140385274                                            ; +0x2c9, 0x140385229\nmov     rcx, [rdi+270h]                                                ; +0x2cb, 0x14038522b\ntest    rcx, rcx                                                       ; +0x2d2, 0x140385232\njz      short loc_140385254                                            ; +0x2d5, 0x140385235\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x2d7, 0x140385237\nmov     rcx, [rdi+270h]                                                ; +0x2dd, 0x14038523d\nmov     rax, [rcx]                                                     ; +0x2e4, 0x140385244\ncall    qword ptr [rax+200h]                                           ; +0x2e7, 0x140385247\nmov     [rdi+270h], r14                                                ; +0x2ed, 0x14038524d\nmov     rcx, [rsi+148h]                                                ; +0x2f4, 0x140385254\nmov     r8b, 1                                                         ; +0x2fb, 0x14038525b\nmov     edx, ebp                                                       ; +0x2fe, 0x14038525e\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x300, 0x140385260\nmov     rax, [rdi]                                                     ; +0x306, 0x140385266\nmov     rcx, rdi                                                       ; +0x309, 0x140385269\ncall    qword ptr [rax+200h]                                           ; +0x30c, 0x14038526c\nmov     cl, 1                                                          ; +0x312, 0x140385272\ntest    cl, cl                                                         ; +0x314, 0x140385274\nlea     eax, [rbp+1]                                                   ; +0x316, 0x140385276\nmov     rcx, [rsi+148h]                                                ; +0x319, 0x140385279\ncmovnz  eax, ebp                                                       ; +0x320, 0x140385280\nmov     ebp, eax                                                       ; +0x323, 0x140385283\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x325, 0x140385285\ncmp     ebp, eax                                                       ; +0x32b, 0x14038528b\njb      loc_140385050                                                  ; +0x32d, 0x14038528d\nmovaps  xmm15, [rsp+0E8h+var_C8]                                       ; +0x333, 0x140385293\nmovaps  xmm11, [rsp+0E8h+var_88]                                       ; +0x339, 0x140385299\nmovaps  xmm10, [rsp+0E8h+var_78]                                       ; +0x33f, 0x14038529f\nmovaps  xmm8, [rsp+0E8h+var_58]                                        ; +0x345, 0x1403852a5\nmov     rdi, [rsp+0E8h+var_20]                                         ; +0x34e, 0x1403852ae\nmov     rbx, [rsp+0E8h+var_10]                                         ; +0x356, 0x1403852b6\nmov     rcx, [rsi+148h]                                                ; +0x35e, 0x1403852be\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x365, 0x1403852c5\nmovaps  xmm14, [rsp+0E8h+var_B8]                                       ; +0x36b, 0x1403852cb\nmovaps  xmm13, [rsp+0E8h+var_A8]                                       ; +0x371, 0x1403852d1\nmovaps  xmm12, [rsp+0E8h+var_98]                                       ; +0x377, 0x1403852d7\nmovaps  xmm9, [rsp+0E8h+var_68]                                        ; +0x37d, 0x1403852dd\nmovaps  xmm7, [rsp+0E8h+var_48]                                        ; +0x386, 0x1403852e6\nmovaps  xmm6, [rsp+0E8h+var_38]                                        ; +0x38e, 0x1403852ee\nmov     r14, [rsp+0E8h+var_28]                                         ; +0x396, 0x1403852f6\nmov     rbp, [rsp+0E8h+var_18]                                         ; +0x39e, 0x1403852fe\ntest    eax, eax                                                       ; +0x3a6, 0x140385306\njnz     short loc_14038531F                                            ; +0x3a8, 0x140385308\nmov     rcx, rsi                                                       ; +0x3aa, 0x14038530a\ncall    cs:?unscheduleUpdate@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleUpdate(void) ; +0x3ad, 0x14038530d\nmov     rax, [rsi]                                                     ; +0x3b3, 0x140385313\nmov     rcx, rsi                                                       ; +0x3b6, 0x140385316\ncall    qword ptr [rax+200h]                                           ; +0x3b9, 0x140385319\nadd     rsp, 0E0h                                                      ; +0x3bf, 0x14038531f\npop     rsi                                                            ; +0x3c6, 0x140385326\nretn                                                                   ; +0x3c7, 0x140385327", "xrefs": ["<???> @ 0x1405c7530", "<???> @ 0x1406970ac", "<???> @ 0x1406970f4", "<???> @ 0x1406d5e70"], "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"}