{"type": "func", "start": 8813692, "end": 8814124, "name": "GJBaseGameLayer::playSpeedParticle", "pseudocode": "// \n// GJBaseGameLayer::playSpeedParticle from 0x867c7c to 0x867e2c (432 bytes)\n// \n// 2 xrefs:\n// > PlayerObject::updateTimeMod @ 0x62e184\n// > <???> @ 0x59d90\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 GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *a1, float a2)\n{\n  char *v3; // x20\n  cocos2d::CCDirector *v4; // x0\n  bool v5; // w2\n  cocos2d::CCParticleSystem *v6; // x20\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  cocos2d::CCDirector *v8; // x0\n  float v9; // s0\n  void (__fastcall *setPosVar)(cocos2d::CCParticleSystem *__hidden, const cocos2d::CCPoint *); // x22\n  cocos2d::CCDirector *v11; // x0\n  float v12; // s0\n  float v14; // [xsp+5Ch] [xbp+5Ch]\n  cocos2d::CCPoint v15; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( !GameManager::sharedState()->m_performanceMode && !a1->m_skipArtReload )\n  {\n    if ( a2 == 0.7 )\n    {\n      v3 = \"speedEffect_slow.plist\";\n    }\n    else if ( a2 == 1.1 )\n    {\n      v3 = \"speedEffect_fast.plist\";\n    }\n    else if ( a2 == 1.3 )\n    {\n      v3 = \"speedEffect_vfast.plist\";\n    }\n    else if ( a2 == 1.6 )\n    {\n      v3 = \"speedEffect_vvfast.plist\";\n    }\n    else\n    {\n      v3 = \"speedEffect_normal.plist\";\n    }\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v4);\n    v6 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(\n                                        (cocos2d::CCParticleSystemQuad *)v3,\n                                        nullptr,\n                                        v5);\n    v6->setPositionType(v6, kCCPositionTypeGrouped);\n    v6->setAutoRemoveOnFinish(v6, 1);\n    a1->addChild_0(a1, v6, 100);\n    setPosition = v6->setPosition;\n    v8 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getScreenRight(v8);\n    cocos2d::CCPoint::CCPoint(&v15, v9 + 10.0, v14 * 0.5);\n    setPosition(v6, &v15);\n    setPosVar = v6->setPosVar;\n    v11 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getScreenScaleFactorH(v11);\n    cocos2d::CCPoint::CCPoint(&v15, 10.0, (float)(v12 * 320.0) * 0.5);\n    setPosVar(v6, &v15);\n    cocos2d::CCParticleSystem::resetSystem(v6);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playSpeedParticle from 0x867c7c to 0x867e2c (432 bytes)\n; \n; 2 xrefs:\n; > PlayerObject::updateTimeMod @ 0x62e184\n; > <???> @ 0x59d90\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_70]!                                ; +0x0, 0x867c7c\nMOV             X29, SP                                                ; +0x4, 0x867c80\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x867c84\nSTP             D8, D9, [SP,#0x70+var_40]                              ; +0xc, 0x867c88\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x867c8c\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x867c90\nMOV             X22, X0                                                ; +0x18, 0x867c94\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x867c98\nSTR             Q0, [X29,#0x70+var_30]                                 ; +0x20, 0x867c9c\nLDR             X0, [X0]; this                                         ; +0x24, 0x867ca0\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x28, 0x867ca4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2c, 0x867ca8\nLDRB            W0, [X0,#0x335]                                        ; +0x30, 0x867cac\nLDR             Q0, [X29,#0x70+var_30]                                 ; +0x34, 0x867cb0\nCBNZ            W0, loc_867CC4                                         ; +0x38, 0x867cb4\nADD             X0, X22, #3,LSL#12                                     ; +0x3c, 0x867cb8\nLDRB            W0, [X0,#0x285]; this                                  ; +0x40, 0x867cbc\nCBZ             W0, loc_867CEC                                         ; +0x44, 0x867cc0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x48, 0x867cc4\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x4c, 0x867cc8\nLDR             X0, [X19]                                              ; +0x50, 0x867ccc\nCMP             X1, X0                                                 ; +0x54, 0x867cd0\nB.NE            loc_867E28                                             ; +0x58, 0x867cd4\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x5c, 0x867cd8\nLDP             D8, D9, [SP,#0x70+var_40]                              ; +0x60, 0x867cdc\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0x64, 0x867ce0\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x68, 0x867ce4\nRET                                                                    ; +0x6c, 0x867ce8\nLDR             S1, =0x3F333333                                        ; +0x70, 0x867cec\nFCMP            S0, S1                                                 ; +0x74, 0x867cf0\nB.EQ            loc_867D28                                             ; +0x78, 0x867cf4\nLDR             S1, =0x3F8CCCCD                                        ; +0x7c, 0x867cf8\nFCMP            S0, S1                                                 ; +0x80, 0x867cfc\nB.EQ            loc_867E04                                             ; +0x84, 0x867d00\nLDR             S1, =0x3FA66666                                        ; +0x88, 0x867d04\nFCMP            S0, S1                                                 ; +0x8c, 0x867d08\nB.EQ            loc_867E10                                             ; +0x90, 0x867d0c\nLDR             S1, =0x3FCCCCCD                                        ; +0x94, 0x867d10\nFCMP            S0, S1                                                 ; +0x98, 0x867d14\nB.EQ            loc_867E1C                                             ; +0x9c, 0x867d18\nADRL            X20, aSpeedeffectNor; \"speedEffect_normal.plist\"       ; +0xa0, 0x867d1c\nB               loc_867D30                                             ; +0xa8, 0x867d24\nADRL            X20, aSpeedeffectSlo; \"speedEffect_slow.plist\"         ; +0xac, 0x867d28\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xb4, 0x867d30\nADD             X21, X29, #0x70+var_10                                 ; +0xb8, 0x867d34\nFMOV            S9, #10.0                                              ; +0xbc, 0x867d38\nADD             X8, X29, #0x70+var_18                                  ; +0xc0, 0x867d3c\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0xc4, 0x867d40\nFMOV            S8, #0.5                                               ; +0xc8, 0x867d44\nMOV             X0, X20; this                                          ; +0xcc, 0x867d48\nMOV             W1, #0; char *                                         ; +0xd0, 0x867d4c\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0xd4, 0x867d50\nLDR             X2, [X0]                                               ; +0xd8, 0x867d54\nMOV             X20, X0                                                ; +0xdc, 0x867d58\nMOV             W1, #2                                                 ; +0xe0, 0x867d5c\nLDR             X2, [X2,#0x610]                                        ; +0xe4, 0x867d60\nBLR             X2                                                     ; +0xe8, 0x867d64\nLDR             X2, [X20]                                              ; +0xec, 0x867d68\nMOV             X0, X20                                                ; +0xf0, 0x867d6c\nMOV             W1, #1                                                 ; +0xf4, 0x867d70\nLDR             X2, [X2,#0x620]                                        ; +0xf8, 0x867d74\nBLR             X2                                                     ; +0xfc, 0x867d78\nLDR             X3, [X22]                                              ; +0x100, 0x867d7c\nMOV             W2, #0x64 ; 'd'                                        ; +0x104, 0x867d80\nMOV             X1, X20                                                ; +0x108, 0x867d84\nMOV             X0, X22                                                ; +0x10c, 0x867d88\nLDR             X3, [X3,#0x1C0]                                        ; +0x110, 0x867d8c\nBLR             X3                                                     ; +0x114, 0x867d90\nLDR             X0, [X20]; this                                        ; +0x118, 0x867d94\nLDR             X22, [X0,#0xB8]                                        ; +0x11c, 0x867d98\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x120, 0x867d9c\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0x124, 0x867da0\nLDR             S1, [X29,#0x70+var_14]                                 ; +0x128, 0x867da4\nMOV             X0, X21; this                                          ; +0x12c, 0x867da8\nFADD            S0, S0, S9; float                                      ; +0x130, 0x867dac\nFMUL            S1, S1, S8; float                                      ; +0x134, 0x867db0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x138, 0x867db4\nMOV             X1, X21                                                ; +0x13c, 0x867db8\nMOV             X0, X20                                                ; +0x140, 0x867dbc\nBLR             X22                                                    ; +0x144, 0x867dc0\nLDR             X0, [X20]; this                                        ; +0x148, 0x867dc4\nLDR             X22, [X0,#0x3B0]                                       ; +0x14c, 0x867dc8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x150, 0x867dcc\nBL              _ZN7cocos2d10CCDirector21getScreenScaleFactorHEv; cocos2d::CCDirector::getScreenScaleFactorH(void) ; +0x154, 0x867dd0\nLDR             S1, =0x43A00000                                        ; +0x158, 0x867dd4\nMOV             X0, X21; this                                          ; +0x15c, 0x867dd8\nFMUL            S1, S0, S1                                             ; +0x160, 0x867ddc\nFMOV            S0, S9; float                                          ; +0x164, 0x867de0\nFMUL            S1, S1, S8; float                                      ; +0x168, 0x867de4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x16c, 0x867de8\nMOV             X0, X20                                                ; +0x170, 0x867dec\nMOV             X1, X21                                                ; +0x174, 0x867df0\nBLR             X22                                                    ; +0x178, 0x867df4\nMOV             X0, X20; this                                          ; +0x17c, 0x867df8\nBL              _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0x180, 0x867dfc\nB               loc_867CC4                                             ; +0x184, 0x867e00\nADRL            X20, aSpeedeffectFas; \"speedEffect_fast.plist\"         ; +0x188, 0x867e04\nB               loc_867D30                                             ; +0x190, 0x867e0c\nADRL            X20, aSpeedeffectVfa; \"speedEffect_vfast.plist\"        ; +0x194, 0x867e10\nB               loc_867D30                                             ; +0x19c, 0x867e18\nADRL            X20, aSpeedeffectVvf; \"speedEffect_vvfast.plist\"       ; +0x1a0, 0x867e1c\nB               loc_867D30                                             ; +0x1a8, 0x867e24\nBL              .__stack_chk_fail                                      ; +0x1ac, 0x867e28", "xrefs": ["PlayerObject::updateTimeMod @ 0x62e184", "<???> @ 0x59d90"], "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"}