{"type": "func", "start": 4300168992, "end": 4300169228, "name": "GameToolbox::particleFromString", "pseudocode": "// \n// GameToolbox::particleFromString from 0x1004f5f20 to 0x1004f600c (236 bytes)\n// \n// 19 xrefs:\n// > ParticleGameObject::updateParticle @ 0x1001b23d1\n// > LevelAreaLayer::init @ 0x100278383\n// > GJDifficultySprite::updateFeatureState @ 0x1002b6f99\n// > GJPathPage::playUnlockAnimation @ 0x100301229\n// > GJPathPage::unlockAnimationStep2 @ 0x100301c63\n// > GJPathPage::unlockAnimationStep3 @ 0x1003022ec\n// > GJPathPage::unlockAnimationStep3 @ 0x1003024f8\n// > LevelPage::updateDynamicPage @ 0x100433094\n// > LevelPage::updateDynamicPage @ 0x100433168\n// > LevelPage::updateDynamicPage @ 0x10043324e\n// > CreateParticlePopup::init @ 0x10046ee8e\n// > CreateParticlePopup::init @ 0x10046eeab\n// > CreateParticlePopup::init @ 0x100472adb\n// > CreateParticlePopup::init @ 0x100472c1d\n// > SecretLayer5::onSubmit @ 0x10047b627\n// > GauntletSelectLayer::playUnlockAnimation @ 0x1005733d3\n// > GauntletSelectLayer::unlockAnimationStep2 @ 0x1005739be\n// > GauntletSelectLayer::unlockAnimationStep3 @ 0x100573c9e\n// > GauntletSelectLayer::unlockAnimationStep3 @ 0x100573e41\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\ncocos2d::CCParticleSystemQuad *__fastcall GameToolbox::particleFromString(\n        unsigned __int8 *a1,\n        cocos2d::CCParticleSystemQuad *a2,\n        bool a3)\n{\n  cocos2d::CCParticleSystemQuad *v4; // rbx\n  unsigned int v5; // eax\n  cocos2d::ParticleStruct v7; // [rsp+0h] [rbp-130h] BYREF\n\n  v4 = a2;\n  v5 = *a1;\n  if ( (v5 & 1) != 0 )\n  {\n    if ( !*((_QWORD *)a1 + 1) )\n      return v4;\n  }\n  else if ( !(v5 >> 1) )\n  {\n    return v4;\n  }\n  memset(&v7, 0, 221);\n  memset(&v7.frictionPos, 0, 21);\n  memset(&v7.frictionSize, 0, 40);\n  GameToolbox::particleStringToStruct(a1, (__int64)&v7);\n  v4 = GameToolbox::particleFromStruct(&v7, a2, a3);\n  if ( (v7.sFrame.m_data.m_short.sizex2 & 1) != 0 )\n    operator delete(v7.sFrame.m_data.m_long.longStorage);\n  return v4;\n}", "assembly": "; \n; GameToolbox::particleFromString from 0x1004f5f20 to 0x1004f600c (236 bytes)\n; \n; 19 xrefs:\n; > ParticleGameObject::updateParticle @ 0x1001b23d1\n; > LevelAreaLayer::init @ 0x100278383\n; > GJDifficultySprite::updateFeatureState @ 0x1002b6f99\n; > GJPathPage::playUnlockAnimation @ 0x100301229\n; > GJPathPage::unlockAnimationStep2 @ 0x100301c63\n; > GJPathPage::unlockAnimationStep3 @ 0x1003022ec\n; > GJPathPage::unlockAnimationStep3 @ 0x1003024f8\n; > LevelPage::updateDynamicPage @ 0x100433094\n; > LevelPage::updateDynamicPage @ 0x100433168\n; > LevelPage::updateDynamicPage @ 0x10043324e\n; > CreateParticlePopup::init @ 0x10046ee8e\n; > CreateParticlePopup::init @ 0x10046eeab\n; > CreateParticlePopup::init @ 0x100472adb\n; > CreateParticlePopup::init @ 0x100472c1d\n; > SecretLayer5::onSubmit @ 0x10047b627\n; > GauntletSelectLayer::playUnlockAnimation @ 0x1005733d3\n; > GauntletSelectLayer::unlockAnimationStep2 @ 0x1005739be\n; > GauntletSelectLayer::unlockAnimationStep3 @ 0x100573c9e\n; > GauntletSelectLayer::unlockAnimationStep3 @ 0x100573e41\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\npush    rbp                                                            ; +0x0, 0x1004f5f20\nmov     rbp, rsp                                                       ; +0x1, 0x1004f5f21\npush    r14                                                            ; +0x4, 0x1004f5f24\npush    rbx                                                            ; +0x6, 0x1004f5f26\nsub     rsp, 120h                                                      ; +0x7, 0x1004f5f27\nmov     r14d, edx                                                      ; +0xe, 0x1004f5f2e\nmov     rbx, rsi                                                       ; +0x11, 0x1004f5f31\nmovzx   eax, byte ptr [rdi]                                            ; +0x14, 0x1004f5f34\ntest    al, 1                                                          ; +0x17, 0x1004f5f37\njz      short loc_1004F5F49                                            ; +0x19, 0x1004f5f39\nmov     rax, [rdi+8]                                                   ; +0x1b, 0x1004f5f3b\ntest    rax, rax                                                       ; +0x1f, 0x1004f5f3f\njnz     short loc_1004F5F54                                            ; +0x22, 0x1004f5f42\njmp     loc_1004F5FFD                                                  ; +0x24, 0x1004f5f44\nshr     eax, 1                                                         ; +0x29, 0x1004f5f49\ntest    rax, rax                                                       ; +0x2b, 0x1004f5f4b\njz      loc_1004F5FFD                                                  ; +0x2e, 0x1004f5f4e\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1004f5f54\nmovups  [rbp+var_63], xmm0                                             ; +0x37, 0x1004f5f57\nmovaps  xmmword ptr [rbp-70h], xmm0                                    ; +0x3b, 0x1004f5f5b\nmovaps  [rbp+var_80], xmm0                                             ; +0x3f, 0x1004f5f5f\nmovaps  [rbp+var_90], xmm0                                             ; +0x43, 0x1004f5f63\nmovaps  [rbp+var_A0], xmm0                                             ; +0x4a, 0x1004f5f6a\nmovaps  [rbp+var_B0], xmm0                                             ; +0x51, 0x1004f5f71\nmovaps  [rbp+var_C0], xmm0                                             ; +0x58, 0x1004f5f78\nmovaps  [rbp+var_D0], xmm0                                             ; +0x5f, 0x1004f5f7f\nmovaps  [rbp+var_E0], xmm0                                             ; +0x66, 0x1004f5f86\nmovaps  [rbp+var_F0], xmm0                                             ; +0x6d, 0x1004f5f8d\nmovaps  [rbp+var_100], xmm0                                            ; +0x74, 0x1004f5f94\nmovaps  [rbp+var_110], xmm0                                            ; +0x7b, 0x1004f5f9b\nmovaps  [rbp+var_120], xmm0                                            ; +0x82, 0x1004f5fa2\nmovaps  [rbp+var_130], xmm0                                            ; +0x89, 0x1004f5fa9\nmovaps  [rbp+var_50], xmm0                                             ; +0x90, 0x1004f5fb0\nmov     qword ptr [rbp+var_50+0Dh], 0                                  ; +0x94, 0x1004f5fb4\nmovups  [rbp+var_38], xmm0                                             ; +0x9c, 0x1004f5fbc\nmovups  [rbp+var_28], xmm0                                             ; +0xa0, 0x1004f5fc0\nmov     [rbp+__p], 0                                                   ; +0xa4, 0x1004f5fc4\nlea     rsi, [rbp+var_130]                                             ; +0xac, 0x1004f5fcc\ncall    GameToolbox__particleStringToStruct                            ; +0xb3, 0x1004f5fd3\nmovzx   edx, r14b                                                      ; +0xb8, 0x1004f5fd8\nlea     rdi, [rbp+var_130]                                             ; +0xbc, 0x1004f5fdc\nmov     rsi, rbx                                                       ; +0xc3, 0x1004f5fe3\ncall    GameToolbox__particleFromStruct                                ; +0xc6, 0x1004f5fe6\nmov     rbx, rax                                                       ; +0xcb, 0x1004f5feb\ntest    byte ptr [rbp+var_28], 1                                       ; +0xce, 0x1004f5fee\njz      short loc_1004F5FFD                                            ; +0xd2, 0x1004f5ff2\nmov     rdi, [rbp+__p]; __p                                            ; +0xd4, 0x1004f5ff4\ncall    __ZdlPv; operator delete(void *)                               ; +0xd8, 0x1004f5ff8\nmov     rax, rbx                                                       ; +0xdd, 0x1004f5ffd\nadd     rsp, 120h                                                      ; +0xe0, 0x1004f6000\npop     rbx                                                            ; +0xe7, 0x1004f6007\npop     r14                                                            ; +0xe8, 0x1004f6008\npop     rbp                                                            ; +0xea, 0x1004f600a\nretn                                                                   ; +0xeb, 0x1004f600b", "xrefs": ["ParticleGameObject::updateParticle @ 0x1001b23d1", "LevelAreaLayer::init @ 0x100278383", "GJDifficultySprite::updateFeatureState @ 0x1002b6f99", "GJPathPage::playUnlockAnimation @ 0x100301229", "GJPathPage::unlockAnimationStep2 @ 0x100301c63", "GJPathPage::unlockAnimationStep3 @ 0x1003022ec", "GJPathPage::unlockAnimationStep3 @ 0x1003024f8", "LevelPage::updateDynamicPage @ 0x100433094", "LevelPage::updateDynamicPage @ 0x100433168", "LevelPage::updateDynamicPage @ 0x10043324e", "CreateParticlePopup::init @ 0x10046ee8e", "CreateParticlePopup::init @ 0x10046eeab", "CreateParticlePopup::init @ 0x100472adb", "CreateParticlePopup::init @ 0x100472c1d", "SecretLayer5::onSubmit @ 0x10047b627", "GauntletSelectLayer::playUnlockAnimation @ 0x1005733d3", "GauntletSelectLayer::unlockAnimationStep2 @ 0x1005739be", "GauntletSelectLayer::unlockAnimationStep3 @ 0x100573c9e", "GauntletSelectLayer::unlockAnimationStep3 @ 0x100573e41"], "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"}