{"type": "func", "start": 5660768, "end": 5661370, "name": "ExplodeItemNode::update", "pseudocode": "// \n// ExplodeItemNode::update from 0x566060 to 0x5662ba (602 bytes)\n// \n// 0 xrefs:\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; // s16\n  float v5; // s17\n  unsigned int v6; // r7\n  float m_floorHeight; // s18\n  float v8; // s18\n  bool v9; // cf\n  cocos2d::CCArray *m_sprites; // r0\n  int v11; // r4\n  const cocos2d::CCPoint *v12; // r0\n  float v13; // s15\n  float v14; // s15\n  float v15; // s14\n  float v16; // s14\n  float v17; // s13\n  float v18; // s15\n  float v19; // s15\n  float v20; // s14\n  float v21; // s15\n  void (__fastcall *v22)(int, _DWORD); // r8\n  float v23; // r0\n  float v24; // s15\n  float v25; // s14\n  int v26; // r2\n  int v27; // r8\n  void (__fastcall *v28)(int, int); // r9\n  int v29; // r0\n  cocos2d::CCParticleSystem *v30; // r0\n  cocos2d::CCPoint v31; // [sp+Ch] [bp-1Ch] BYREF\n  _BYTE v32[4]; // [sp+14h] [bp-14h] BYREF\n  float v33; // [sp+18h] [bp-10h]\n  cocos2d::CCPoint v34; // [sp+1Ch] [bp-Ch] BYREF\n\n  v4 = a2 * 54.0;\n  if ( a1->m_noGravity )\n    v5 = 0.0;\n  else\n    v5 = v4 * 0.5;\n  v6 = 0;\n  m_floorHeight = a1->m_floorHeight;\n  v8 = m_floorHeight - a1->getPosition(a1)->y;\n  while ( 1 )\n  {\n    v9 = v6 >= cocos2d::CCArray::count(a1->m_sprites);\n    m_sprites = a1->m_sprites;\n    if ( v9 )\n      break;\n    v11 = cocos2d::CCArray::objectAtIndex(m_sprites, v6);\n    v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);\n    cocos2d::CCPoint::CCPoint(&v31, v12);\n    v13 = *(float *)(v11 + 516) - a2;\n    *(float *)(v11 + 516) = v13;\n    if ( v13 <= 0.0 )\n    {\n      v30 = *(cocos2d::CCParticleSystem **)(v11 + 528);\n      if ( v30 )\n      {\n        cocos2d::CCParticleSystem::stopSystem(v30);\n        (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v11 + 528) + 260))(*(_DWORD *)(v11 + 528));\n        *(_DWORD *)(v11 + 528) = 0;\n      }\n      cocos2d::CCArray::removeObjectAtIndex(a1->m_sprites, v6, 1);\n      (*(void (__fastcall **)(int))(*(_DWORD *)v11 + 260))(v11);\n    }\n    else\n    {\n      v14 = *(float *)(v11 + 512) - v5;\n      v15 = (float)((float)((float)(1.0 - v4) * 0.02) + 0.98) * *(float *)(v11 + 508);\n      *(float *)(v11 + 512) = v14;\n      *(float *)(v11 + 508) = v15;\n      cocos2d::CCPoint::CCPoint(&v34, v15 * v4, v14 * v4);\n      cocos2d::CCPoint::operator+(v32, &v31, &v34);\n      v16 = *(float *)(v11 + 344);\n      v17 = *(float *)(v11 + 348);\n      if ( v16 > v17 )\n        v18 = v17 * 0.5;\n      else\n        v18 = v16 * 0.5;\n      v19 = v8 + v18;\n      if ( v33 < v19 )\n      {\n        v20 = *(float *)(v11 + 512);\n        if ( v20 < 0.0 )\n        {\n          v33 = v19;\n          v21 = v20 * -0.8;\n          if ( (float)(v20 * -0.8) < 1.5 )\n            v21 = 1.5;\n          *(float *)(v11 + 512) = v21;\n        }\n      }\n      (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92))(v11, v32);\n      v22 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 172);\n      v23 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v11 + 176))(v11));\n      v22(v11, v23 + (float)(v4 * *(float *)(v11 + 524)));\n      v24 = *(float *)(v11 + 516);\n      v25 = *(float *)(v11 + 520);\n      if ( v24 < v25 )\n      {\n        (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 448))(\n          v11,\n          (unsigned __int8)(unsigned int)(float)((float)(v24 / v25) * 255.0));\n        v26 = *(_DWORD *)(v11 + 528);\n        if ( v26 )\n          *(_BYTE *)(v26 + 726) = (unsigned int)(float)((float)(*(float *)(v11 + 516) / *(float *)(v11 + 520)) * 255.0);\n      }\n      v27 = *(_DWORD *)(v11 + 528);\n      if ( v27 )\n      {\n        v28 = *(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 92);\n        v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);\n        v28(v27, v29);\n      }\n      ++v6;\n    }\n  }\n  if ( !cocos2d::CCArray::count(m_sprites) )\n  {\n    cocos2d::CCNode::unscheduleUpdate(a1);\n    a1->removeMeAndCleanup(a1);\n  }\n}", "assembly": "; \n; ExplodeItemNode::update from 0x566060 to 0x5662ba (602 bytes)\n; \n; 0 xrefs:\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\nLDR             R2, =(__stack_chk_guard_ptr - 0x56606A)                ; +0x0, 0x566060\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x566062\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x6, 0x566066\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x8, 0x566068\nVPUSH           {D8-D11}                                               ; +0xa, 0x56606a\nMOV             R5, R0                                                 ; +0xe, 0x56606e\nLDR             R3, [R2]                                               ; +0x10, 0x566070\nMOV             R6, R2                                                 ; +0x12, 0x566072\nVLDR            S16, =54.0                                             ; +0x14, 0x566074\nSUB             SP, SP, #0x28                                          ; +0x18, 0x566078\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x1a, 0x56607a\nVMOV            S19, R1                                                ; +0x1c, 0x56607c\nLDRB.W          R3, [R0,#0x118]                                        ; +0x20, 0x566080\nVMUL.F32        S16, S19, S16                                          ; +0x24, 0x566084\nCBNZ            R3, loc_566094                                         ; +0x28, 0x566088\nVMOV.F32        S17, #0.5                                              ; +0x2a, 0x56608a\nVMUL.F32        S17, S16, S17                                          ; +0x2e, 0x56608e\nB               loc_566098                                             ; +0x32, 0x566092\nVLDR            S17, =0.0                                              ; +0x34, 0x566094\nLDR             R3, [R5]                                               ; +0x38, 0x566098\nMOV             R0, R5                                                 ; +0x3a, 0x56609a\nMOVS            R7, #0                                                 ; +0x3c, 0x56609c\nVLDR            S18, [R5,#0x114]                                       ; +0x3e, 0x56609e\nLDR             R3, [R3,#0x60]                                         ; +0x42, 0x5660a2\nBLX             R3                                                     ; +0x44, 0x5660a4\nVLDR            S21, =0.02                                             ; +0x46, 0x5660a6\nVLDR            S22, =0.98                                             ; +0x4a, 0x5660aa\nVLDR            S20, =255.0                                            ; +0x4e, 0x5660ae\nVLDR            S13, [R0,#4]                                           ; +0x52, 0x5660b2\nVSUB.F32        S18, S18, S13                                          ; +0x56, 0x5660b6\nLDR.W           R0, [R5,#0x10C]; this                                  ; +0x5a, 0x5660ba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5e, 0x5660be\nCMP             R7, R0                                                 ; +0x62, 0x5660c2\nLDR.W           R0, [R5,#0x10C]; this                                  ; +0x64, 0x5660c4\nBCS.W           loc_566288                                             ; +0x68, 0x5660c8\nMOV             R1, R7; unsigned int                                   ; +0x6c, 0x5660cc\nADD.W           R10, SP, #0x28+var_1C                                  ; +0x6e, 0x5660ce\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x72, 0x5660d2\nLDR             R3, [R0]                                               ; +0x76, 0x5660d6\nMOV             R4, R0                                                 ; +0x78, 0x5660d8\nLDR             R3, [R3,#0x60]                                         ; +0x7a, 0x5660da\nBLX             R3                                                     ; +0x7c, 0x5660dc\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x7e, 0x5660de\nMOV             R0, R10; this                                          ; +0x80, 0x5660e0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x82, 0x5660e2\nVLDR            S15, [R4,#0x204]                                       ; +0x86, 0x5660e6\nVSUB.F32        S15, S15, S19                                          ; +0x8a, 0x5660ea\nVCMPE.F32       S15, #0.0                                              ; +0x8e, 0x5660ee\nVSTR            S15, [R4,#0x204]                                       ; +0x92, 0x5660f2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x96, 0x5660f6\nBLE.W           loc_566254                                             ; +0x9a, 0x5660fa\nVMOV.F32        S14, #1.0                                              ; +0x9e, 0x5660fe\nADD.W           R9, SP, #0x28+var_C                                    ; +0xa2, 0x566102\nVLDR            S15, [R4,#0x200]                                       ; +0xa6, 0x566106\nADD.W           R8, SP, #0x28+var_14                                   ; +0xaa, 0x56610a\nMOV             R0, R9; this                                           ; +0xae, 0x56610e\nVSUB.F32        S14, S14, S16                                          ; +0xb0, 0x566110\nVMOV.F32        S13, S22                                               ; +0xb4, 0x566114\nVMLA.F32        S13, S14, S21                                          ; +0xb8, 0x566118\nVMOV.F32        S14, S13                                               ; +0xbc, 0x56611c\nVLDR            S13, [R4,#0x1FC]                                       ; +0xc0, 0x566120\nVSUB.F32        S15, S15, S17                                          ; +0xc4, 0x566124\nVMUL.F32        S14, S14, S13                                          ; +0xc8, 0x566128\nVSTR            S15, [R4,#0x200]                                       ; +0xcc, 0x56612c\nVSTR            S14, [R4,#0x1FC]                                       ; +0xd0, 0x566130\nVMUL.F32        S15, S15, S16                                          ; +0xd4, 0x566134\nVMUL.F32        S14, S14, S16                                          ; +0xd8, 0x566138\nVMOV            R2, S15; float                                         ; +0xdc, 0x56613c\nVMOV            R1, S14; float                                         ; +0xe0, 0x566140\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe4, 0x566144\nMOV             R0, R8                                                 ; +0xe8, 0x566148\nMOV             R1, R10                                                ; +0xea, 0x56614a\nMOV             R2, R9                                                 ; +0xec, 0x56614c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xee, 0x56614e\nVMOV.F32        S15, #0.5                                              ; +0xf2, 0x566152\nVLDR            S14, [R4,#0x158]                                       ; +0xf6, 0x566156\nVLDR            S13, [R4,#0x15C]                                       ; +0xfa, 0x56615a\nVCMPE.F32       S14, S13                                               ; +0xfe, 0x56615e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x102, 0x566162\nIT LE                                                                  ; +0x106, 0x566166\nVMULLE.F32      S15, S14, S15                                          ; +0x108, 0x566168\nVLDR            S14, [SP,#0x28+var_10]                                 ; +0x10c, 0x56616c\nIT GT                                                                  ; +0x110, 0x566170\nVMULGT.F32      S15, S13, S15                                          ; +0x112, 0x566172\nVADD.F32        S15, S18, S15                                          ; +0x116, 0x566176\nVCMPE.F32       S14, S15                                               ; +0x11a, 0x56617a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x11e, 0x56617e\nBPL             loc_5661B4                                             ; +0x122, 0x566182\nVLDR            S14, [R4,#0x200]                                       ; +0x124, 0x566184\nVCMPE.F32       S14, #0.0                                              ; +0x128, 0x566188\nVMRS            APSR_nzcv, FPSCR                                       ; +0x12c, 0x56618c\nBPL             loc_5661B4                                             ; +0x130, 0x566190\nVSTR            S15, [SP,#0x28+var_10]                                 ; +0x132, 0x566192\nVLDR            S15, =-0.8                                             ; +0x136, 0x566196\nVMUL.F32        S15, S14, S15                                          ; +0x13a, 0x56619a\nVMOV.F32        S14, #1.5                                              ; +0x13e, 0x56619e\nVCMPE.F32       S15, S14                                               ; +0x142, 0x5661a2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x146, 0x5661a6\nIT MI                                                                  ; +0x14a, 0x5661aa\nVMOVMI.F32      S15, S14                                               ; +0x14c, 0x5661ac\nVSTR            S15, [R4,#0x200]                                       ; +0x150, 0x5661b0\nLDR             R3, [R4]                                               ; +0x154, 0x5661b4\nMOV             R1, R8                                                 ; +0x156, 0x5661b6\nMOV             R0, R4                                                 ; +0x158, 0x5661b8\nLDR             R3, [R3,#0x5C]                                         ; +0x15a, 0x5661ba\nBLX             R3                                                     ; +0x15c, 0x5661bc\nLDR             R3, [R4]                                               ; +0x15e, 0x5661be\nMOV             R0, R4                                                 ; +0x160, 0x5661c0\nLDR.W           R8, [R3,#0xAC]                                         ; +0x162, 0x5661c2\nLDR.W           R3, [R3,#0xB0]                                         ; +0x166, 0x5661c6\nBLX             R3                                                     ; +0x16a, 0x5661ca\nVLDR            S15, [R4,#0x20C]                                       ; +0x16c, 0x5661cc\nVMOV            S14, R0                                                ; +0x170, 0x5661d0\nMOV             R0, R4                                                 ; +0x174, 0x5661d4\nVMLA.F32        S14, S16, S15                                          ; +0x176, 0x5661d6\nVMOV            R1, S14                                                ; +0x17a, 0x5661da\nBLX             R8                                                     ; +0x17e, 0x5661de\nVLDR            S15, [R4,#0x204]                                       ; +0x180, 0x5661e0\nVLDR            S14, [R4,#0x208]                                       ; +0x184, 0x5661e4\nVCMPE.F32       S15, S14                                               ; +0x188, 0x5661e8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x18c, 0x5661ec\nBPL             loc_566232                                             ; +0x190, 0x5661f0\nVDIV.F32        S15, S15, S14                                          ; +0x192, 0x5661f2\nLDR             R3, [R4]                                               ; +0x196, 0x5661f6\nMOV             R0, R4                                                 ; +0x198, 0x5661f8\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x19a, 0x5661fa\nVMUL.F32        S15, S15, S20                                          ; +0x19e, 0x5661fe\nVCVT.U32.F32    S15, S15                                               ; +0x1a2, 0x566202\nVSTR            S15, [SP,#0x28+var_24]                                 ; +0x1a6, 0x566206\nLDRB.W          R1, [SP,#0x28+var_24]                                  ; +0x1aa, 0x56620a\nBLX             R3                                                     ; +0x1ae, 0x56620e\nLDR.W           R2, [R4,#0x210]                                        ; +0x1b0, 0x566210\nCBZ             R2, loc_566232                                         ; +0x1b4, 0x566214\nVLDR            S15, [R4,#0x204]                                       ; +0x1b6, 0x566216\nVLDR            S14, [R4,#0x208]                                       ; +0x1ba, 0x56621a\nVDIV.F32        S15, S15, S14                                          ; +0x1be, 0x56621e\nVMUL.F32        S15, S15, S20                                          ; +0x1c2, 0x566222\nVCVT.U32.F32    S15, S15                                               ; +0x1c6, 0x566226\nVMOV            R3, S15                                                ; +0x1ca, 0x56622a\nSTRB.W          R3, [R2,#0x2D6]                                        ; +0x1ce, 0x56622e\nLDR.W           R8, [R4,#0x210]                                        ; +0x1d2, 0x566232\nCMP.W           R8, #0                                                 ; +0x1d6, 0x566236\nBEQ             loc_5662A0                                             ; +0x1da, 0x56623a\nLDR.W           R3, [R8]                                               ; +0x1dc, 0x56623c\nMOV             R0, R4                                                 ; +0x1e0, 0x566240\nLDR.W           R9, [R3,#0x5C]                                         ; +0x1e2, 0x566242\nLDR             R3, [R4]                                               ; +0x1e6, 0x566246\nLDR             R3, [R3,#0x60]                                         ; +0x1e8, 0x566248\nBLX             R3                                                     ; +0x1ea, 0x56624a\nMOV             R1, R0                                                 ; +0x1ec, 0x56624c\nMOV             R0, R8                                                 ; +0x1ee, 0x56624e\nBLX             R9                                                     ; +0x1f0, 0x566250\nB               loc_5662A0                                             ; +0x1f2, 0x566252\nLDR.W           R0, [R4,#0x210]; this                                  ; +0x1f4, 0x566254\nCBZ             R0, loc_566270                                         ; +0x1f8, 0x566258\nBL              _ZN7cocos2d16CCParticleSystem10stopSystemEv; cocos2d::CCParticleSystem::stopSystem(void) ; +0x1fa, 0x56625a\nLDR.W           R0, [R4,#0x210]                                        ; +0x1fe, 0x56625e\nLDR             R3, [R0]                                               ; +0x202, 0x566262\nLDR.W           R3, [R3,#0x104]                                        ; +0x204, 0x566264\nBLX             R3                                                     ; +0x208, 0x566268\nMOVS            R3, #0                                                 ; +0x20a, 0x56626a\nSTR.W           R3, [R4,#0x210]                                        ; +0x20c, 0x56626c\nLDR.W           R0, [R5,#0x10C]; this                                  ; +0x210, 0x566270\nMOV             R1, R7; unsigned int                                   ; +0x214, 0x566274\nMOVS            R2, #1; bool                                           ; +0x216, 0x566276\nBL              _ZN7cocos2d7CCArray19removeObjectAtIndexEjb; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x218, 0x566278\nLDR             R3, [R4]                                               ; +0x21c, 0x56627c\nMOV             R0, R4                                                 ; +0x21e, 0x56627e\nLDR.W           R3, [R3,#0x104]                                        ; +0x220, 0x566280\nBLX             R3                                                     ; +0x224, 0x566284\nB               loc_5660BA                                             ; +0x226, 0x566286\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x228, 0x566288\nCBNZ            R0, loc_5662A4                                         ; +0x22c, 0x56628c\nMOV             R0, R5; this                                           ; +0x22e, 0x56628e\nBL              _ZN7cocos2d6CCNode16unscheduleUpdateEv; cocos2d::CCNode::unscheduleUpdate(void) ; +0x230, 0x566290\nLDR             R3, [R5]                                               ; +0x234, 0x566294\nMOV             R0, R5                                                 ; +0x236, 0x566296\nLDR.W           R3, [R3,#0x104]                                        ; +0x238, 0x566298\nBLX             R3                                                     ; +0x23c, 0x56629c\nB               loc_5662A4                                             ; +0x23e, 0x56629e\nADDS            R7, #1                                                 ; +0x240, 0x5662a0\nB               loc_5660BA                                             ; +0x242, 0x5662a2\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x244, 0x5662a4\nLDR             R3, [R6]                                               ; +0x246, 0x5662a6\nCMP             R2, R3                                                 ; +0x248, 0x5662a8\nBEQ             loc_5662B0                                             ; +0x24a, 0x5662aa\nBLX             __stack_chk_fail                                       ; +0x24c, 0x5662ac\nADD             SP, SP, #0x28 ; '('                                    ; +0x250, 0x5662b0\nVPOP            {D8-D11}                                               ; +0x252, 0x5662b2\nPOP.W           {R4-R10,PC}                                            ; +0x256, 0x5662b6", "xrefs": [], "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"}