{"type": "func", "start": 4685068, "end": 4685392, "name": "GJBaseGameLayer::playSpeedParticle", "pseudocode": "// \n// GJBaseGameLayer::playSpeedParticle from 0x477d0c to 0x477e50 (324 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::updateTimeMod @ 0x344b78\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 *v4; // r4\n  cocos2d::CCDirector *v5; // r0\n  bool v6; // r2\n  cocos2d::CCParticleSystem *v7; // r4\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCDirector *v9; // r0\n  float v10; // r0\n  void (__fastcall *setPosVar)(cocos2d::CCParticleSystem *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCDirector *v12; // r0\n  float v13; // r0\n  cocos2d::CCSize v14; // [sp+4h] [bp-18h] BYREF\n  cocos2d::CCPoint v15; // [sp+Ch] [bp-10h] 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(&v14, v5);\n    v7 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(\n                                        (cocos2d::CCParticleSystemQuad *)v4,\n                                        nullptr,\n                                        v6);\n    v7->setPositionType(v7, kCCPositionTypeGrouped);\n    v7->setAutoRemoveOnFinish(v7, 1);\n    a1->addChild_0(a1, v7, 100);\n    setPosition = v7->setPosition;\n    v9 = cocos2d::CCDirector::sharedDirector();\n    v10 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v9));\n    cocos2d::CCPoint::CCPoint(&v15, v10 + 10.0, v14.height * 0.5);\n    setPosition(v7, &v15);\n    setPosVar = v7->setPosVar;\n    v12 = cocos2d::CCDirector::sharedDirector();\n    v13 = COERCE_FLOAT(cocos2d::CCDirector::getScreenScaleFactorH(v12));\n    cocos2d::CCPoint::CCPoint(&v15, 10.0, (float)(v13 * 320.0) * 0.5);\n    setPosVar(v7, &v15);\n    cocos2d::CCParticleSystem::resetSystem(v7);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playSpeedParticle from 0x477d0c to 0x477e50 (324 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::updateTimeMod @ 0x344b78\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            {R4-R7,LR}                                             ; +0x0, 0x477d0c\nMOV             R5, R0                                                 ; +0x2, 0x477d0e\nLDR             R6, =(__stack_chk_guard_ptr - 0x477D1A)                ; +0x4, 0x477d10\nVPUSH           {D8}                                                   ; +0x6, 0x477d12\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x477d16\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x477d18\nLDR             R3, [R6]                                               ; +0xe, 0x477d1a\nVMOV            S16, R1                                                ; +0x10, 0x477d1c\nSUB             SP, SP, #0x1C                                          ; +0x14, 0x477d20\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x16, 0x477d22\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x477d24\nLDRB.W          R3, [R0,#0x29D]                                        ; +0x1c, 0x477d28\nCMP             R3, #0                                                 ; +0x20, 0x477d2c\nBNE.W           loc_477E3C                                             ; +0x22, 0x477d2e\nMOVW            R3, #0x2AE9                                            ; +0x26, 0x477d32\nLDRB            R3, [R5,R3]                                            ; +0x2a, 0x477d36\nCMP             R3, #0                                                 ; +0x2c, 0x477d38\nBNE             loc_477E3C                                             ; +0x2e, 0x477d3a\nVLDR            S15, =0.7                                              ; +0x30, 0x477d3c\nVCMP.F32        S16, S15                                               ; +0x34, 0x477d40\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x477d44\nBEQ             loc_477D8C                                             ; +0x3c, 0x477d48\nVLDR            S15, =1.1                                              ; +0x3e, 0x477d4a\nVCMP.F32        S16, S15                                               ; +0x42, 0x477d4e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x477d52\nBEQ             loc_477D7A                                             ; +0x4a, 0x477d56\nVLDR            S15, =1.3                                              ; +0x4c, 0x477d58\nVCMP.F32        S16, S15                                               ; +0x50, 0x477d5c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x54, 0x477d60\nBEQ             loc_477D80                                             ; +0x58, 0x477d64\nVLDR            S15, =1.6                                              ; +0x5a, 0x477d66\nVCMP.F32        S16, S15                                               ; +0x5e, 0x477d6a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x62, 0x477d6e\nBEQ             loc_477D86                                             ; +0x66, 0x477d72\nLDR             R4, =(aSpeedeffectNor - 0x477D7A); \"speedEffect_normal.plist\" ; +0x68, 0x477d74\nADD             R4, PC; \"speedEffect_normal.plist\"                     ; +0x6a, 0x477d76\nB               loc_477D90                                             ; +0x6c, 0x477d78\nLDR             R4, =(aSpeedeffectFas - 0x477D80); \"speedEffect_fast.plist\" ; +0x6e, 0x477d7a\nADD             R4, PC; \"speedEffect_fast.plist\"                       ; +0x70, 0x477d7c\nB               loc_477D90                                             ; +0x72, 0x477d7e\nLDR             R4, =(aSpeedeffectVfa - 0x477D86); \"speedEffect_vfast.plist\" ; +0x74, 0x477d80\nADD             R4, PC; \"speedEffect_vfast.plist\"                      ; +0x76, 0x477d82\nB               loc_477D90                                             ; +0x78, 0x477d84\nLDR             R4, =(aSpeedeffectVvf - 0x477D8C); \"speedEffect_vvfast.plist\" ; +0x7a, 0x477d86\nADD             R4, PC; \"speedEffect_vvfast.plist\"                     ; +0x7c, 0x477d88\nB               loc_477D90                                             ; +0x7e, 0x477d8a\nLDR             R4, =(aSpeedeffectSlo - 0x477D92); \"speedEffect_slow.plist\" ; +0x80, 0x477d8c\nADD             R4, PC; \"speedEffect_slow.plist\"                       ; +0x82, 0x477d8e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x84, 0x477d90\nVMOV.F32        S17, #10.0                                             ; +0x88, 0x477d94\nVMOV.F32        S16, #0.5                                              ; +0x8c, 0x477d98\nMOV             R1, R0                                                 ; +0x90, 0x477d9c\nADD             R0, SP, #0x1C+var_18; this                             ; +0x92, 0x477d9e\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x94, 0x477da0\nMOV             R0, R4; this                                           ; +0x98, 0x477da4\nMOVS            R1, #0; char *                                         ; +0x9a, 0x477da6\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x9c, 0x477da8\nMOVS            R1, #2                                                 ; +0xa0, 0x477dac\nLDR             R3, [R0]                                               ; +0xa2, 0x477dae\nMOV             R4, R0                                                 ; +0xa4, 0x477db0\nLDR.W           R3, [R3,#0x308]                                        ; +0xa6, 0x477db2\nBLX             R3                                                     ; +0xaa, 0x477db6\nLDR             R3, [R4]                                               ; +0xac, 0x477db8\nMOV             R0, R4                                                 ; +0xae, 0x477dba\nMOVS            R1, #1                                                 ; +0xb0, 0x477dbc\nLDR.W           R3, [R3,#0x310]                                        ; +0xb2, 0x477dbe\nBLX             R3                                                     ; +0xb6, 0x477dc2\nLDR             R3, [R5]                                               ; +0xb8, 0x477dc4\nMOV             R1, R4                                                 ; +0xba, 0x477dc6\nMOVS            R2, #0x64 ; 'd'                                        ; +0xbc, 0x477dc8\nMOV             R0, R5                                                 ; +0xbe, 0x477dca\nADD             R5, SP, #0x1C+var_10                                   ; +0xc0, 0x477dcc\nLDR.W           R3, [R3,#0xE0]                                         ; +0xc2, 0x477dce\nBLX             R3                                                     ; +0xc6, 0x477dd2\nLDR             R3, [R4]                                               ; +0xc8, 0x477dd4\nLDR             R7, [R3,#0x5C]                                         ; +0xca, 0x477dd6\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xcc, 0x477dd8\nBL              _ZN7cocos2d10CCDirector14getScreenRightEv; cocos2d::CCDirector::getScreenRight(void) ; +0xd0, 0x477ddc\nVMOV            S15, R0                                                ; +0xd4, 0x477de0\nMOV             R0, R5; this                                           ; +0xd8, 0x477de4\nVADD.F32        S15, S15, S17                                          ; +0xda, 0x477de6\nVMOV            R1, S15; float                                         ; +0xde, 0x477dea\nVLDR            S15, [SP,#0x1C+var_14]                                 ; +0xe2, 0x477dee\nVMUL.F32        S15, S15, S16                                          ; +0xe6, 0x477df2\nVMOV            R2, S15; float                                         ; +0xea, 0x477df6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xee, 0x477dfa\nMOV             R1, R5                                                 ; +0xf2, 0x477dfe\nMOV             R0, R4                                                 ; +0xf4, 0x477e00\nBLX             R7                                                     ; +0xf6, 0x477e02\nLDR             R3, [R4]                                               ; +0xf8, 0x477e04\nLDR.W           R7, [R3,#0x1D8]                                        ; +0xfa, 0x477e06\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0xfe, 0x477e0a\nBL              _ZN7cocos2d10CCDirector21getScreenScaleFactorHEv; cocos2d::CCDirector::getScreenScaleFactorH(void) ; +0x102, 0x477e0e\nVLDR            S15, =320.0                                            ; +0x106, 0x477e12\nVMOV            R1, S17; float                                         ; +0x10a, 0x477e16\nVMOV            S14, R0                                                ; +0x10e, 0x477e1a\nMOV             R0, R5; this                                           ; +0x112, 0x477e1e\nVMUL.F32        S15, S14, S15                                          ; +0x114, 0x477e20\nVMUL.F32        S15, S15, S16                                          ; +0x118, 0x477e24\nVMOV            R2, S15; float                                         ; +0x11c, 0x477e28\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x120, 0x477e2c\nMOV             R0, R4                                                 ; +0x124, 0x477e30\nMOV             R1, R5                                                 ; +0x126, 0x477e32\nBLX             R7                                                     ; +0x128, 0x477e34\nMOV             R0, R4; this                                           ; +0x12a, 0x477e36\nBL              _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0x12c, 0x477e38\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x130, 0x477e3c\nLDR             R3, [R6]                                               ; +0x132, 0x477e3e\nCMP             R2, R3                                                 ; +0x134, 0x477e40\nBEQ             loc_477E48                                             ; +0x136, 0x477e42\nBLX             __stack_chk_fail                                       ; +0x138, 0x477e44\nADD             SP, SP, #0x1C                                          ; +0x13c, 0x477e48\nVPOP            {D8}                                                   ; +0x13e, 0x477e4a\nPOP             {R4-R7,PC}                                             ; +0x142, 0x477e4e", "xrefs": ["PlayerObject::updateTimeMod @ 0x344b78"], "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"}