{"type": "func", "start": 10643144, "end": 10643912, "name": "ExplodeItemNode::update", "pseudocode": "// \n// ExplodeItemNode::update from 0xa266c8 to 0xa269c8 (768 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x66888\n// > <???> @ 0x11d9788\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 v4; // s8\n  float v5; // s11\n  float m_floorHeight; // s10\n  unsigned int v7; // w20\n  float v8; // s10\n  bool v9; // cf\n  cocos2d::CCArray *m_sprites; // x0\n  __int64 v11; // x19\n  const cocos2d::CCPoint *v12; // x0\n  float v13; // s0\n  float v14; // s3\n  float v15; // s0\n  float v16; // s2\n  float v17; // s0\n  float v18; // s1\n  float v19; // s0\n  float v20; // s0\n  float v21; // s1\n  void (__fastcall *v22)(__int64, float); // x22\n  float v23; // s0\n  float v24; // s0\n  float v25; // s1\n  __int64 v26; // x22\n  __int64 v27; // x0\n  __int64 (__fastcall *v28)(__int64); // x1\n  void (__fastcall *v29)(__int64, __int64); // x19\n  __int64 v30; // x0\n  cocos2d::CCParticleSystem *v31; // x0\n  __int64 v32; // x1\n  float v33; // s1\n  cocos2d::CCPoint v34; // [xsp+90h] [xbp+90h] BYREF\n  __int64 v35; // [xsp+98h] [xbp+98h] BYREF\n  cocos2d::CCPoint v36; // [xsp+A0h] [xbp+A0h] BYREF\n\n  v4 = a2 * 54.0;\n  v5 = 0.0;\n  if ( !a1->m_noGravity )\n    v5 = v4 * 0.5;\n  m_floorHeight = a1->m_floorHeight;\n  v7 = 0;\n  v8 = m_floorHeight - a1->getPosition(a1)->y;\nLABEL_4:\n  v9 = v7 >= (unsigned int)cocos2d::CCArray::count(a1->m_sprites);\n  m_sprites = a1->m_sprites;\n  if ( !v9 )\n  {\n    while ( 1 )\n    {\n      v11 = cocos2d::CCArray::objectAtIndex(m_sprites, v7);\n      v12 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);\n      cocos2d::CCPoint::CCPoint(&v34, v12);\n      v13 = *(float *)(v11 + 604) - a2;\n      *(float *)(v11 + 604) = v13;\n      if ( v13 <= 0.0 )\n      {\n        v31 = *(cocos2d::CCParticleSystem **)(v11 + 616);\n        if ( v31 )\n        {\n          cocos2d::CCParticleSystem::stopSystem(v31);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v11 + 616) + 520LL))(*(_QWORD *)(v11 + 616));\n          *(_QWORD *)(v11 + 616) = 0;\n        }\n        cocos2d::CCArray::removeObjectAtIndex(a1->m_sprites, v7, 1);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 520LL))(v11);\n        goto LABEL_4;\n      }\n      v14 = *(float *)(v11 + 596);\n      v15 = *(float *)(v11 + 600) - v5;\n      *(float *)(v11 + 600) = v15;\n      v16 = (float)((float)((float)(1.0 - v4) * 0.02) + 0.98) * v14;\n      *(float *)(v11 + 596) = v16;\n      cocos2d::CCPoint::CCPoint(&v36, v4 * v16, v4 * v15);\n      cocos2d::CCPoint::operator+(&v35, &v34, &v36);\n      v17 = *(float *)(v11 + 432);\n      v18 = *(float *)(v11 + 436);\n      if ( v17 <= v18 )\n        v19 = v17 * 0.5;\n      else\n        v19 = v18 * 0.5;\n      v20 = v19 + v8;\n      if ( v20 > *((float *)&v35 + 1) )\n      {\n        v21 = *(float *)(v11 + 600);\n        if ( v21 < 0.0 )\n        {\n          *((float *)&v35 + 1) = v20;\n          v33 = v21 * -0.8;\n          if ( v33 >= 1.5 )\n            *(float *)(v11 + 600) = v33;\n          else\n            *(float *)(v11 + 600) = 1.5;\n        }\n      }\n      (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL))(v11, &v35);\n      v22 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 344LL);\n      v23 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 352LL))(v11);\n      v22(v11, v23 + (float)(*(float *)(v11 + 612) * v4));\n      v24 = *(float *)(v11 + 604);\n      v25 = *(float *)(v11 + 608);\n      if ( v24 >= v25 )\n        goto LABEL_11;\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 896LL))(\n        v11,\n        (unsigned int)(float)((float)(v24 / v25) * 255.0));\n      v32 = *(_QWORD *)(v11 + 616);\n      if ( v32 )\n        break;\nLABEL_13:\n      v9 = ++v7 >= (unsigned int)cocos2d::CCArray::count(a1->m_sprites);\n      m_sprites = a1->m_sprites;\n      if ( v9 )\n        goto LABEL_15;\n    }\n    *(_BYTE *)(v32 + 814) = (unsigned int)(float)((float)(*(float *)(v11 + 604) / *(float *)(v11 + 608)) * 255.0);\nLABEL_11:\n    v26 = *(_QWORD *)(v11 + 616);\n    if ( v26 )\n    {\n      v27 = v11;\n      v28 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL);\n      v29 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 184LL);\n      v30 = v28(v27);\n      v29(v26, v30);\n    }\n    goto LABEL_13;\n  }\nLABEL_15:\n  if ( !(unsigned int)cocos2d::CCArray::count(m_sprites) )\n  {\n    cocos2d::CCNode::unscheduleUpdate(a1);\n    a1->removeMeAndCleanup(a1);\n  }\n}", "assembly": "; \n; ExplodeItemNode::update from 0xa266c8 to 0xa269c8 (768 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x66888\n; > <???> @ 0x11d9788\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\nSTP             X29, X30, [SP,#var_B0]!                                ; +0x0, 0xa266c8\nMOV             X29, SP                                                ; +0x4, 0xa266cc\nSTP             X23, X24, [SP,#0xB0+var_80]                            ; +0x8, 0xa266d0\nSTP             D8, D9, [SP,#0xB0+var_70]                              ; +0xc, 0xa266d4\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xa266d8\nSTP             D10, D11, [SP,#0xB0+var_60]                            ; +0x14, 0xa266dc\nSTP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x18, 0xa266e0\nSTP             D12, D13, [SP,#0xB0+var_50]                            ; +0x1c, 0xa266e4\nSTP             D14, D15, [SP,#0xB0+var_40]                            ; +0x20, 0xa266e8\nSTP             X21, X22, [SP,#0xB0+var_90]                            ; +0x24, 0xa266ec\nLDR             X20, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0xa266f0\nMOV             X21, X0                                                ; +0x2c, 0xa266f4\nLDRB            W19, [X0,#0x158]                                       ; +0x30, 0xa266f8\nLDR             S8, =0x42580000                                        ; +0x34, 0xa266fc\nLDR             X0, [X20]                                              ; +0x38, 0xa26700\nSTR             X0, [X29,#0xB0+var_8]                                  ; +0x3c, 0xa26704\nFMOV            S9, S0                                                 ; +0x40, 0xa26708\nFMUL            S8, S0, S8                                             ; +0x44, 0xa2670c\nFMOV            S11, WZR                                               ; +0x48, 0xa26710\nCBNZ            W19, loc_A26720                                        ; +0x4c, 0xa26714\nFMOV            S11, #0.5                                              ; +0x50, 0xa26718\nFMUL            S11, S8, S11                                           ; +0x54, 0xa2671c\nLDR             X1, [X21]                                              ; +0x58, 0xa26720\nMOV             X0, X21                                                ; +0x5c, 0xa26724\nLDR             S10, [X21,#0x154]                                      ; +0x60, 0xa26728\nMOV             W20, #0                                                ; +0x64, 0xa2672c\nFMOV            S14, #1.0                                              ; +0x68, 0xa26730\nLDR             X1, [X1,#0xC0]                                         ; +0x6c, 0xa26734\nBLR             X1                                                     ; +0x70, 0xa26738\nLDR             S0, [X0,#4]                                            ; +0x74, 0xa2673c\nLDR             S13, =0x3CA3D70A                                       ; +0x78, 0xa26740\nFSUB            S10, S10, S0                                           ; +0x7c, 0xa26744\nLDR             S12, =0x3F7AE148                                       ; +0x80, 0xa26748\nLDR             S15, =0x437F0000                                       ; +0x84, 0xa2674c\nLDR             X0, [X21,#0x148]; this                                 ; +0x88, 0xa26750\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8c, 0xa26754\nCMP             W20, W0                                                ; +0x90, 0xa26758\nLDR             X0, [X21,#0x148]; this                                 ; +0x94, 0xa2675c\nB.CS            loc_A268AC                                             ; +0x98, 0xa26760\nMOV             W1, W20; unsigned int                                  ; +0x9c, 0xa26764\nADD             X22, X29, #0xB0+var_20                                 ; +0xa0, 0xa26768\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xa4, 0xa2676c\nLDR             X1, [X0]                                               ; +0xa8, 0xa26770\nMOV             X19, X0                                                ; +0xac, 0xa26774\nLDR             X1, [X1,#0xC0]                                         ; +0xb0, 0xa26778\nBLR             X1                                                     ; +0xb4, 0xa2677c\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0xb8, 0xa26780\nMOV             X0, X22; this                                          ; +0xbc, 0xa26784\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xc0, 0xa26788\nLDR             S0, [X19,#0x25C]                                       ; +0xc4, 0xa2678c\nFSUB            S0, S0, S9                                             ; +0xc8, 0xa26790\nFCMPE           S0, #0.0                                               ; +0xcc, 0xa26794\nSTR             S0, [X19,#0x25C]                                       ; +0xd0, 0xa26798\nB.LE            loc_A26904                                             ; +0xd4, 0xa2679c\nFSUB            S2, S14, S8                                            ; +0xd8, 0xa267a0\nADD             X1, X29, #0xB0+var_10                                  ; +0xdc, 0xa267a4\nLDR             S3, [X19,#0x254]                                       ; +0xe0, 0xa267a8\nMOV             X0, X1; this                                           ; +0xe4, 0xa267ac\nLDR             S0, [X19,#0x258]                                       ; +0xe8, 0xa267b0\nSTR             X1, [X29,#0xB0+var_28]                                 ; +0xec, 0xa267b4\nADD             X24, X29, #0xB0+var_18                                 ; +0xf0, 0xa267b8\nFMADD           S2, S2, S13, S12                                       ; +0xf4, 0xa267bc\nFSUB            S0, S0, S11                                            ; +0xf8, 0xa267c0\nFMUL            S1, S8, S0; float                                      ; +0xfc, 0xa267c4\nSTR             S0, [X19,#0x258]                                       ; +0x100, 0xa267c8\nFMUL            S2, S2, S3                                             ; +0x104, 0xa267cc\nFMUL            S0, S8, S2; float                                      ; +0x108, 0xa267d0\nSTR             S2, [X19,#0x254]                                       ; +0x10c, 0xa267d4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x110, 0xa267d8\nLDR             X1, [X29,#0xB0+var_28]                                 ; +0x114, 0xa267dc\nMOV             X8, X24                                                ; +0x118, 0xa267e0\nMOV             X0, X22                                                ; +0x11c, 0xa267e4\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x120, 0xa267e8\nLDR             S0, [X19,#0x1B0]                                       ; +0x124, 0xa267ec\nLDR             S1, [X19,#0x1B4]                                       ; +0x128, 0xa267f0\nFCMPE           S0, S1                                                 ; +0x12c, 0xa267f4\nB.LE            loc_A2694C                                             ; +0x130, 0xa267f8\nFMOV            S0, #0.5                                               ; +0x134, 0xa267fc\nFMUL            S0, S1, S0                                             ; +0x138, 0xa26800\nFADD            S0, S0, S10                                            ; +0x13c, 0xa26804\nLDR             S1, [X24,#4]                                           ; +0x140, 0xa26808\nFCMPE           S0, S1                                                 ; +0x144, 0xa2680c\nB.LE            loc_A26820                                             ; +0x148, 0xa26810\nLDR             S1, [X19,#0x258]                                       ; +0x14c, 0xa26814\nFCMPE           S1, #0.0                                               ; +0x150, 0xa26818\nB.MI            loc_A26998                                             ; +0x154, 0xa2681c\nLDR             X2, [X19]                                              ; +0x158, 0xa26820\nMOV             X1, X24                                                ; +0x15c, 0xa26824\nMOV             X0, X19                                                ; +0x160, 0xa26828\nLDR             X2, [X2,#0xB8]                                         ; +0x164, 0xa2682c\nBLR             X2                                                     ; +0x168, 0xa26830\nLDR             X1, [X19]                                              ; +0x16c, 0xa26834\nMOV             X0, X19                                                ; +0x170, 0xa26838\nLDR             X2, [X1,#0x160]                                        ; +0x174, 0xa2683c\nLDR             X22, [X1,#0x158]                                       ; +0x178, 0xa26840\nBLR             X2                                                     ; +0x17c, 0xa26844\nLDR             S1, [X19,#0x264]                                       ; +0x180, 0xa26848\nMOV             X0, X19                                                ; +0x184, 0xa2684c\nFMADD           S0, S1, S8, S0                                         ; +0x188, 0xa26850\nBLR             X22                                                    ; +0x18c, 0xa26854\nLDR             S0, [X19,#0x25C]                                       ; +0x190, 0xa26858\nLDR             S1, [X19,#0x260]                                       ; +0x194, 0xa2685c\nFCMPE           S0, S1                                                 ; +0x198, 0xa26860\nB.MI            loc_A26958                                             ; +0x19c, 0xa26864\nLDR             X22, [X19,#0x268]                                      ; +0x1a0, 0xa26868\nCBZ             X22, loc_A26894                                        ; +0x1a4, 0xa2686c\nLDR             X1, [X19]                                              ; +0x1a8, 0xa26870\nMOV             X0, X19                                                ; +0x1ac, 0xa26874\nLDR             X2, [X22]                                              ; +0x1b0, 0xa26878\nLDR             X1, [X1,#0xC0]                                         ; +0x1b4, 0xa2687c\nLDR             X19, [X2,#0xB8]                                        ; +0x1b8, 0xa26880\nBLR             X1                                                     ; +0x1bc, 0xa26884\nMOV             X1, X0                                                 ; +0x1c0, 0xa26888\nMOV             X0, X22                                                ; +0x1c4, 0xa2688c\nBLR             X19                                                    ; +0x1c8, 0xa26890\nLDR             X0, [X21,#0x148]; this                                 ; +0x1cc, 0xa26894\nADD             W20, W20, #1                                           ; +0x1d0, 0xa26898\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1d4, 0xa2689c\nCMP             W20, W0                                                ; +0x1d8, 0xa268a0\nLDR             X0, [X21,#0x148]; this                                 ; +0x1dc, 0xa268a4\nB.CC            loc_A26764                                             ; +0x1e0, 0xa268a8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e4, 0xa268ac\nCBNZ            W0, loc_A268CC                                         ; +0x1e8, 0xa268b0\nMOV             X0, X21; this                                          ; +0x1ec, 0xa268b4\nBL              _ZN7cocos2d6CCNode16unscheduleUpdateEv; cocos2d::CCNode::unscheduleUpdate(void) ; +0x1f0, 0xa268b8\nLDR             X1, [X21]                                              ; +0x1f4, 0xa268bc\nMOV             X0, X21                                                ; +0x1f8, 0xa268c0\nLDR             X1, [X1,#0x208]                                        ; +0x1fc, 0xa268c4\nBLR             X1                                                     ; +0x200, 0xa268c8\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x204, 0xa268cc\nLDR             X1, [X29,#0xB0+var_8]                                  ; +0x208, 0xa268d0\nLDR             X0, [X23]                                              ; +0x20c, 0xa268d4\nCMP             X1, X0                                                 ; +0x210, 0xa268d8\nB.NE            loc_A269C4                                             ; +0x214, 0xa268dc\nLDP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x218, 0xa268e0\nLDP             D8, D9, [SP,#0xB0+var_70]                              ; +0x21c, 0xa268e4\nLDP             X21, X22, [SP,#0xB0+var_90]                            ; +0x220, 0xa268e8\nLDP             D10, D11, [SP,#0xB0+var_60]                            ; +0x224, 0xa268ec\nLDP             X23, X24, [SP,#0xB0+var_80]                            ; +0x228, 0xa268f0\nLDP             D12, D13, [SP,#0xB0+var_50]                            ; +0x22c, 0xa268f4\nLDP             D14, D15, [SP,#0xB0+var_40]                            ; +0x230, 0xa268f8\nLDP             X29, X30, [SP+0xB0+var_B0],#0xB0                       ; +0x234, 0xa268fc\nRET                                                                    ; +0x238, 0xa26900\nLDR             X0, [X19,#0x268]; this                                 ; +0x23c, 0xa26904\nCBZ             X0, loc_A26928                                         ; +0x240, 0xa26908\nBL              _ZN7cocos2d16CCParticleSystem10stopSystemEv; cocos2d::CCParticleSystem::stopSystem(void) ; +0x244, 0xa2690c\nLDR             X1, [X19,#0x268]                                       ; +0x248, 0xa26910\nMOV             X0, X1                                                 ; +0x24c, 0xa26914\nLDR             X1, [X1]                                               ; +0x250, 0xa26918\nLDR             X1, [X1,#0x208]                                        ; +0x254, 0xa2691c\nBLR             X1                                                     ; +0x258, 0xa26920\nSTR             XZR, [X19,#0x268]                                      ; +0x25c, 0xa26924\nLDR             X0, [X21,#0x148]; this                                 ; +0x260, 0xa26928\nMOV             W1, W20; unsigned int                                  ; +0x264, 0xa2692c\nMOV             W2, #1; bool                                           ; +0x268, 0xa26930\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x26c, 0xa26934\nLDR             X1, [X19]                                              ; +0x270, 0xa26938\nMOV             X0, X19                                                ; +0x274, 0xa2693c\nLDR             X1, [X1,#0x208]                                        ; +0x278, 0xa26940\nBLR             X1                                                     ; +0x27c, 0xa26944\nB               loc_A26750                                             ; +0x280, 0xa26948\nFMOV            S1, #0.5                                               ; +0x284, 0xa2694c\nFMUL            S0, S0, S1                                             ; +0x288, 0xa26950\nB               loc_A26804                                             ; +0x28c, 0xa26954\nFDIV            S0, S0, S1                                             ; +0x290, 0xa26958\nLDR             X1, [X19]                                              ; +0x294, 0xa2695c\nMOV             X0, X19                                                ; +0x298, 0xa26960\nLDR             X2, [X1,#0x380]                                        ; +0x29c, 0xa26964\nFMUL            S0, S0, S15                                            ; +0x2a0, 0xa26968\nFCVTZU          W1, S0                                                 ; +0x2a4, 0xa2696c\nBLR             X2                                                     ; +0x2a8, 0xa26970\nLDR             X1, [X19,#0x268]                                       ; +0x2ac, 0xa26974\nCBZ             X1, loc_A26894                                         ; +0x2b0, 0xa26978\nLDR             S0, [X19,#0x25C]                                       ; +0x2b4, 0xa2697c\nLDR             S1, [X19,#0x260]                                       ; +0x2b8, 0xa26980\nFDIV            S0, S0, S1                                             ; +0x2bc, 0xa26984\nFMUL            S0, S0, S15                                            ; +0x2c0, 0xa26988\nFCVTZU          W0, S0                                                 ; +0x2c4, 0xa2698c\nSTRB            W0, [X1,#0x32E]                                        ; +0x2c8, 0xa26990\nB               loc_A26868                                             ; +0x2cc, 0xa26994\nLDR             S2, =0xBF4CCCCD                                        ; +0x2d0, 0xa26998\nSTR             S0, [X24,#4]                                           ; +0x2d4, 0xa2699c\nFMUL            S1, S1, S2                                             ; +0x2d8, 0xa269a0\nFMOV            S0, #1.5                                               ; +0x2dc, 0xa269a4\nFCMPE           S1, S0                                                 ; +0x2e0, 0xa269a8\nB.PL            loc_A269BC                                             ; +0x2e4, 0xa269ac\nFMOV            S0, #1.5                                               ; +0x2e8, 0xa269b0\nSTR             S0, [X19,#0x258]                                       ; +0x2ec, 0xa269b4\nB               loc_A26820                                             ; +0x2f0, 0xa269b8\nSTR             S1, [X19,#0x258]                                       ; +0x2f4, 0xa269bc\nB               loc_A26820                                             ; +0x2f8, 0xa269c0\nBL              .__stack_chk_fail                                      ; +0x2fc, 0xa269c4", "xrefs": ["<???> @ 0x66888", "<???> @ 0x11d9788"], "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"}