{"type": "func", "start": 4297081412, "end": 4297081808, "name": "GJBaseGameLayer::playSpeedParticle", "pseudocode": "// \n// GJBaseGameLayer::playSpeedParticle from 0x100204244 to 0x1002043d0 (396 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::updateTimeMod @ 0x100218fac\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 __fastcall GJBaseGameLayer::playSpeedParticle(GJBaseGameLayer *a1, float a2)\n{\n  const char *v4; // x20\n  cocos2d::CCDirector *v5; // x0\n  cocos2d::CCParticleSystemQuad *v6; // x20\n  cocos2d::CCDirector *v7; // x0\n  __n128 v8; // q0\n  __n128 v9; // q1\n  cocos2d::CCDirector *v10; // x0\n  __n128 v11; // q1\n  __n128 v12; // q0\n  _DWORD v13[4]; // [xsp+0h] [xbp-30h] BYREF\n\n  if ( !GameManager::sharedState()->m_performanceMode && !a1->m_skipArtReload )\n  {\n    if ( a2 == 0.7 )\n    {\n      v4 = \"speedEffect_slow.plist\";\n    }\n    else if ( a2 == 1.1 )\n    {\n      v4 = \"speedEffect_fast.plist\";\n    }\n    else if ( a2 == 1.3 )\n    {\n      v4 = \"speedEffect_vfast.plist\";\n    }\n    else if ( a2 == 1.6 )\n    {\n      v4 = \"speedEffect_vvfast.plist\";\n    }\n    else\n    {\n      v4 = \"speedEffect_normal.plist\";\n    }\n    v5 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(v5);\n    v6 = cocos2d::CCParticleSystemQuad::create(v4, 0);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v6->setPositionType)(v6, 2);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v6->setAutoRemoveOnFinish)(v6, 1);\n    ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v6, 100);\n    v7 = cocos2d::CCDirector::sharedDirector();\n    v8.n128_f32[0] = sub_1001768E0((__int64)v7) + 10.0;\n    v9.n128_f32[0] = *(float *)&v13[3] * 0.5;\n    sub_100022980(v8, v9, v13);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD *))v6->setPosition)(v6, v13);\n    v10 = cocos2d::CCDirector::sharedDirector();\n    v11.n128_f32[0] = (float)(sub_1001768B8((__int64)v10) * 320.0) * 0.5;\n    v12.n128_u32[0] = 10.0;\n    sub_100022980(v12, v11, v13);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD *))v6->setPosVar)(v6, v13);\n    cocos2d::CCParticleSystem::resetSystem(v6);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playSpeedParticle from 0x100204244 to 0x1002043d0 (396 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::updateTimeMod @ 0x100218fac\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100204244\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100204248\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10020424c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100204250\nADD             X29, SP, #0x30                                         ; +0x10, 0x100204254\nFMOV            S8, S0                                                 ; +0x14, 0x100204258\nMOV             X19, X0                                                ; +0x18, 0x10020425c\nBL              GameManager__sharedState                               ; +0x1c, 0x100204260\nLDRB            W8, [X0,#0x375]                                        ; +0x20, 0x100204264\nTBNZ            W8, #0, loc_1002043BC                                  ; +0x24, 0x100204268\nMOV             W8, #0x30B5                                            ; +0x28, 0x10020426c\nLDRB            W8, [X19,X8]                                           ; +0x2c, 0x100204270\nTBNZ            W8, #0, loc_1002043BC                                  ; +0x30, 0x100204274\nADRP            X8, #dword_100635380@PAGE                              ; +0x34, 0x100204278\nLDR             S0, [X8,#dword_100635380@PAGEOFF]                      ; +0x38, 0x10020427c\nFCMP            S8, S0                                                 ; +0x3c, 0x100204280\nB.NE            loc_100204294                                          ; +0x40, 0x100204284\nADRL            X20, aSpeedeffectSlo; \"speedEffect_slow.plist\"         ; +0x44, 0x100204288\nB               loc_1002042EC                                          ; +0x4c, 0x100204290\nADRP            X8, #dword_100635540@PAGE                              ; +0x50, 0x100204294\nLDR             S0, [X8,#dword_100635540@PAGEOFF]                      ; +0x54, 0x100204298\nFCMP            S8, S0                                                 ; +0x58, 0x10020429c\nB.NE            loc_1002042B0                                          ; +0x5c, 0x1002042a0\nADRL            X20, aSpeedeffectFas; \"speedEffect_fast.plist\"         ; +0x60, 0x1002042a4\nB               loc_1002042EC                                          ; +0x68, 0x1002042ac\nADRP            X8, #dword_100635694@PAGE                              ; +0x6c, 0x1002042b0\nLDR             S0, [X8,#dword_100635694@PAGEOFF]                      ; +0x70, 0x1002042b4\nFCMP            S8, S0                                                 ; +0x74, 0x1002042b8\nB.NE            loc_1002042CC                                          ; +0x78, 0x1002042bc\nADRL            X20, aSpeedeffectVfa; \"speedEffect_vfast.plist\"        ; +0x7c, 0x1002042c0\nB               loc_1002042EC                                          ; +0x84, 0x1002042c8\nADRL            X8, aSpeedeffectNor; \"speedEffect_normal.plist\"        ; +0x88, 0x1002042cc\nADRL            X9, aSpeedeffectVvf; \"speedEffect_vvfast.plist\"        ; +0x90, 0x1002042d4\nADRP            X10, #dword_100635354@PAGE                             ; +0x98, 0x1002042dc\nLDR             S0, [X10,#dword_100635354@PAGEOFF]                     ; +0x9c, 0x1002042e0\nFCMP            S8, S0                                                 ; +0xa0, 0x1002042e4\nCSEL            X20, X9, X8, EQ                                        ; +0xa4, 0x1002042e8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xa8, 0x1002042ec\nADD             X8, SP, #0x30+var_28                                   ; +0xac, 0x1002042f0\nBL              cocos2d__CCDirector__getWinSize                        ; +0xb0, 0x1002042f4\nMOV             X0, X20                                                ; +0xb4, 0x1002042f8\nMOV             W1, #0                                                 ; +0xb8, 0x1002042fc\nBL              cocos2d__CCParticleSystemQuad__create                  ; +0xbc, 0x100204300\nMOV             X20, X0                                                ; +0xc0, 0x100204304\nLDR             X8, [X0]                                               ; +0xc4, 0x100204308\nLDR             X8, [X8,#0x610]                                        ; +0xc8, 0x10020430c\nMOV             W1, #2                                                 ; +0xcc, 0x100204310\nBLR             X8                                                     ; +0xd0, 0x100204314\nLDR             X8, [X20]                                              ; +0xd4, 0x100204318\nLDR             X8, [X8,#0x620]                                        ; +0xd8, 0x10020431c\nMOV             X0, X20                                                ; +0xdc, 0x100204320\nMOV             W1, #1                                                 ; +0xe0, 0x100204324\nBLR             X8                                                     ; +0xe4, 0x100204328\nLDR             X8, [X19]                                              ; +0xe8, 0x10020432c\nLDR             X8, [X8,#0x1C0]                                        ; +0xec, 0x100204330\nMOV             X0, X19                                                ; +0xf0, 0x100204334\nMOV             X1, X20                                                ; +0xf4, 0x100204338\nMOV             W2, #0x64 ; 'd'                                        ; +0xf8, 0x10020433c\nBLR             X8                                                     ; +0xfc, 0x100204340\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x100, 0x100204344\nBL              sub_1001768E0                                          ; +0x104, 0x100204348\nFMOV            S1, #10.0                                              ; +0x108, 0x10020434c\nFADD            S0, S0, S1                                             ; +0x10c, 0x100204350\nLDR             S1, [SP,#0x30+var_24]                                  ; +0x110, 0x100204354\nFMOV            S8, #0.5                                               ; +0x114, 0x100204358\nFMUL            S1, S1, S8                                             ; +0x118, 0x10020435c\nMOV             X0, SP                                                 ; +0x11c, 0x100204360\nBL              sub_100022980                                          ; +0x120, 0x100204364\nLDR             X8, [X20]                                              ; +0x124, 0x100204368\nLDR             X8, [X8,#0xB8]                                         ; +0x128, 0x10020436c\nMOV             X1, SP                                                 ; +0x12c, 0x100204370\nMOV             X0, X20                                                ; +0x130, 0x100204374\nBLR             X8                                                     ; +0x134, 0x100204378\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x138, 0x10020437c\nBL              sub_1001768B8                                          ; +0x13c, 0x100204380\nMOV             W8, #0x43A00000                                        ; +0x140, 0x100204384\nFMOV            S1, W8                                                 ; +0x144, 0x100204388\nFMUL            S0, S0, S1                                             ; +0x148, 0x10020438c\nFMUL            S1, S0, S8                                             ; +0x14c, 0x100204390\nMOV             X0, SP                                                 ; +0x150, 0x100204394\nFMOV            S0, #10.0                                              ; +0x154, 0x100204398\nBL              sub_100022980                                          ; +0x158, 0x10020439c\nLDR             X8, [X20]                                              ; +0x15c, 0x1002043a0\nLDR             X8, [X8,#0x3B0]                                        ; +0x160, 0x1002043a4\nMOV             X1, SP                                                 ; +0x164, 0x1002043a8\nMOV             X0, X20                                                ; +0x168, 0x1002043ac\nBLR             X8                                                     ; +0x16c, 0x1002043b0\nMOV             X0, X20                                                ; +0x170, 0x1002043b4\nBL              cocos2d__CCParticleSystem__resetSystem                 ; +0x174, 0x1002043b8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x178, 0x1002043bc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x17c, 0x1002043c0\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x180, 0x1002043c4\nADD             SP, SP, #0x40 ; '@'                                    ; +0x184, 0x1002043c8\nRET                                                                    ; +0x188, 0x1002043cc", "xrefs": ["PlayerObject::updateTimeMod @ 0x100218fac"], "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"}