{"type": "func", "start": 13262332, "end": 13262572, "name": "DeathMarkerSettingsPopup::onTimescaleSlider", "pseudocode": "// \n// DeathMarkerSettingsPopup::onTimescaleSlider from 0xca5dfc to 0xca5eec (240 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xdceb8\n// > DeathMarkerSettingsPopup::init @ 0xca689c\n// > <???> @ 0x1546a00\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:02 +0000\n// \n\n__int64 __fastcall DeathMarkerSettingsPopup::onTimescaleSlider(__int64 this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x19\n  float v3; // s8\n  GameManager *v4; // x0\n  int v5; // w20\n  GameManager *v6; // x0\n\n  if ( *(_QWORD *)(this + 1040) )\n  {\n    v2 = this;\n    if ( (int)llroundf(Slider::getValue(*(Slider **)(this + 1040)) * 15.0) <= 14 )\n    {\n      v5 = 50;\n      LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);\n      if ( (int)v4 <= 0 )\n        goto LABEL_5;\n      v3 = 15.0;\n      LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);\n      if ( (int)v4 > 14 )\n      {\nLABEL_4:\n        v5 = 200;\nLABEL_5:\n        v6 = (GameManager *)GameManager::sharedState(v4);\n        GameManager::setIntGameVariable(v6, \"0211\", v5);\n        return DeathMarkerSettingsPopup::updateTimescaleLabel(v2, v5);\n      }\n    }\n    else\n    {\n      v3 = 15.0;\n      LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);\n      if ( (int)v4 > 14 )\n        goto LABEL_4;\n    }\n    v4 = (GameManager *)(10 * llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * v3));\n    v5 = (_DWORD)v4 + 50;\n    goto LABEL_5;\n  }\n  return this;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::onTimescaleSlider from 0xca5dfc to 0xca5eec (240 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xdceb8\n; > DeathMarkerSettingsPopup::init @ 0xca689c\n; > <???> @ 0x1546a00\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:02 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xca5dfc\nMOV             X29, SP                                                ; +0x4, 0xca5e00\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xca5e04\nSTR             D8, [SP,#0x30+var_10]                                  ; +0xc, 0xca5e08\nLDR             X1, [X0,#0x410]                                        ; +0x10, 0xca5e0c\nCBZ             X1, loc_CA5EBC                                         ; +0x14, 0xca5e10\nFMOV            S8, #15.0                                              ; +0x18, 0xca5e14\nMOV             X19, X0                                                ; +0x1c, 0xca5e18\nMOV             X0, X1; this                                           ; +0x20, 0xca5e1c\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x24, 0xca5e20\nFMUL            S0, S0, S8                                             ; +0x28, 0xca5e24\nFCVTAS          W0, S0                                                 ; +0x2c, 0xca5e28\nCMP             W0, #0xE                                               ; +0x30, 0xca5e2c\nB.LE            loc_CA5E80                                             ; +0x34, 0xca5e30\nLDR             X0, [X19,#0x410]; this                                 ; +0x38, 0xca5e34\nFMOV            S8, #15.0                                              ; +0x3c, 0xca5e38\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x40, 0xca5e3c\nFMUL            S0, S0, S8                                             ; +0x44, 0xca5e40\nFCVTAS          W0, S0; this                                           ; +0x48, 0xca5e44\nCMP             W0, #0xE                                               ; +0x4c, 0xca5e48\nB.LE            loc_CA5ECC                                             ; +0x50, 0xca5e4c\nMOV             W20, #0xC8                                             ; +0x54, 0xca5e50\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0xca5e54\nADRP            X1, #a0211@PAGE; \"0211\"                                ; +0x5c, 0xca5e58\nMOV             W2, W20; int                                           ; +0x60, 0xca5e5c\nADD             X1, X1, #a0211@PAGEOFF; \"0211\"                         ; +0x64, 0xca5e60\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x68, 0xca5e64\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x6c, 0xca5e68\nMOV             X0, X19; this                                          ; +0x70, 0xca5e6c\nMOV             W1, W20; int                                           ; +0x74, 0xca5e70\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x78, 0xca5e74\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0xca5e78\nB               _ZN24DeathMarkerSettingsPopup20updateTimescaleLabelEi; DeathMarkerSettingsPopup::updateTimescaleLabel(int) ; +0x80, 0xca5e7c\nLDR             X0, [X19,#0x410]; this                                 ; +0x84, 0xca5e80\nMOV             W20, #0x32 ; '2'                                       ; +0x88, 0xca5e84\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x8c, 0xca5e88\nFMUL            S0, S0, S8                                             ; +0x90, 0xca5e8c\nFCVTAS          W0, S0                                                 ; +0x94, 0xca5e90\nCMP             W0, WZR                                                ; +0x98, 0xca5e94\nB.LE            loc_CA5E54                                             ; +0x9c, 0xca5e98\nLDR             X0, [X19,#0x410]; this                                 ; +0xa0, 0xca5e9c\nFMOV            S8, #15.0                                              ; +0xa4, 0xca5ea0\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0xa8, 0xca5ea4\nFMUL            S0, S0, S8                                             ; +0xac, 0xca5ea8\nFCVTAS          W0, S0                                                 ; +0xb0, 0xca5eac\nCMP             W0, #0xE                                               ; +0xb4, 0xca5eb0\nB.GT            loc_CA5E50                                             ; +0xb8, 0xca5eb4\nB               loc_CA5ECC                                             ; +0xbc, 0xca5eb8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xc0, 0xca5ebc\nLDR             D8, [SP,#0x30+var_10]                                  ; +0xc4, 0xca5ec0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xc8, 0xca5ec4\nRET                                                                    ; +0xcc, 0xca5ec8\nLDR             X0, [X19,#0x410]; this                                 ; +0xd0, 0xca5ecc\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0xd4, 0xca5ed0\nFMUL            S0, S0, S8                                             ; +0xd8, 0xca5ed4\nFCVTAS          W0, S0                                                 ; +0xdc, 0xca5ed8\nLSL             W1, W0, #3                                             ; +0xe0, 0xca5edc\nADD             W0, W1, W0,LSL#1                                       ; +0xe4, 0xca5ee0\nADD             W20, W0, #0x32 ; '2'                                   ; +0xe8, 0xca5ee4\nB               loc_CA5E54                                             ; +0xec, 0xca5ee8", "xrefs": ["<???> @ 0xdceb8", "DeathMarkerSettingsPopup::init @ 0xca689c", "<???> @ 0x1546a00"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}