{"type": "func", "start": 13262028, "end": 13262244, "name": "DeathMarkerSettingsPopup::onFrequencySlider", "pseudocode": "// \n// DeathMarkerSettingsPopup::onFrequencySlider from 0xca5ccc to 0xca5da4 (216 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x70f60\n// > DeathMarkerSettingsPopup::init @ 0xca660c\n// > <???> @ 0x1542d40\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\nSlider **__fastcall DeathMarkerSettingsPopup::onFrequencySlider(Slider **this, cocos2d::CCObject *a2)\n{\n  Slider **v2; // x19\n  GameManager *v3; // x0\n  int v4; // w2\n  int v5; // w20\n  GameManager *v6; // x0\n  unsigned int v7; // [xsp+38h] [xbp+38h]\n\n  if ( *(this + 128) )\n  {\n    v2 = this;\n    if ( (int)llroundf(Slider::getValue(*(this + 128)) * 5.0) > 4\n      || (LODWORD(v3) = llroundf(Slider::getValue(v2[128]) * 5.0), (int)v3 > 0) )\n    {\n      LODWORD(v3) = llroundf(Slider::getValue(v2[128]) * 5.0);\n      if ( (int)v3 <= 4 )\n      {\n        v5 = llroundf(Slider::getValue(v2[128]) * 5.0);\n        v4 = v5 + 1;\n      }\n      else\n      {\n        v4 = 6;\n        v5 = 5;\n      }\n    }\n    else\n    {\n      v4 = 1;\n      v5 = 0;\n    }\n    v7 = v4;\n    v6 = (GameManager *)GameManager::sharedState(v3);\n    GameManager::setIntGameVariable(v6, \"0205\", v7);\n    return (Slider **)DeathMarkerSettingsPopup::updateFrequencyLabel((DeathMarkerSettingsPopup *)v2, v5);\n  }\n  return this;\n}", "assembly": "; \n; DeathMarkerSettingsPopup::onFrequencySlider from 0xca5ccc to 0xca5da4 (216 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x70f60\n; > DeathMarkerSettingsPopup::init @ 0xca660c\n; > <???> @ 0x1542d40\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_40]!                                ; +0x0, 0xca5ccc\nMOV             X29, SP                                                ; +0x4, 0xca5cd0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xca5cd4\nSTR             D8, [SP,#0x40+var_20]                                  ; +0xc, 0xca5cd8\nLDR             X1, [X0,#0x400]                                        ; +0x10, 0xca5cdc\nCBZ             X1, loc_CA5D7C                                         ; +0x14, 0xca5ce0\nFMOV            S8, #5.0                                               ; +0x18, 0xca5ce4\nMOV             X19, X0                                                ; +0x1c, 0xca5ce8\nMOV             X0, X1; this                                           ; +0x20, 0xca5cec\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x24, 0xca5cf0\nFMUL            S0, S0, S8                                             ; +0x28, 0xca5cf4\nFCVTAS          W0, S0                                                 ; +0x2c, 0xca5cf8\nCMP             W0, #4                                                 ; +0x30, 0xca5cfc\nB.LE            loc_CA5D58                                             ; +0x34, 0xca5d00\nLDR             X0, [X19,#0x400]; this                                 ; +0x38, 0xca5d04\nFMOV            S8, #5.0                                               ; +0x3c, 0xca5d08\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x40, 0xca5d0c\nFMUL            S0, S0, S8                                             ; +0x44, 0xca5d10\nFCVTAS          W0, S0; this                                           ; +0x48, 0xca5d14\nCMP             W0, #4                                                 ; +0x4c, 0xca5d18\nB.LE            loc_CA5D8C                                             ; +0x50, 0xca5d1c\nMOV             W2, #6                                                 ; +0x54, 0xca5d20\nMOV             W20, #5                                                ; +0x58, 0xca5d24\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x5c, 0xca5d28\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x60, 0xca5d2c\nLDR             X2, [X29,#0x40+var_8]; int                             ; +0x64, 0xca5d30\nADRL            X1, a0205; \"0205\"                                      ; +0x68, 0xca5d34\nBL              _ZN11GameManager18setIntGameVariableEPKci; GameManager::setIntGameVariable(char const*,int) ; +0x70, 0xca5d3c\nLDR             D8, [SP,#0x40+var_20]                                  ; +0x74, 0xca5d40\nMOV             X0, X19; this                                          ; +0x78, 0xca5d44\nMOV             W1, W20; int                                           ; +0x7c, 0xca5d48\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0xca5d4c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0xca5d50\nB               _ZN24DeathMarkerSettingsPopup20updateFrequencyLabelEi; DeathMarkerSettingsPopup::updateFrequencyLabel(int) ; +0x88, 0xca5d54\nLDR             X0, [X19,#0x400]; this                                 ; +0x8c, 0xca5d58\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0x90, 0xca5d5c\nFMUL            S0, S0, S8                                             ; +0x94, 0xca5d60\nFCVTAS          W0, S0                                                 ; +0x98, 0xca5d64\nCMP             W0, WZR                                                ; +0x9c, 0xca5d68\nB.GT            loc_CA5D04                                             ; +0xa0, 0xca5d6c\nMOV             W2, #1                                                 ; +0xa4, 0xca5d70\nMOV             W20, #0                                                ; +0xa8, 0xca5d74\nB               loc_CA5D28                                             ; +0xac, 0xca5d78\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0xca5d7c\nLDR             D8, [SP,#0x40+var_20]                                  ; +0xb4, 0xca5d80\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0xca5d84\nRET                                                                    ; +0xbc, 0xca5d88\nLDR             X0, [X19,#0x400]; this                                 ; +0xc0, 0xca5d8c\nBL              _ZN6Slider8getValueEv; Slider::getValue(void)          ; +0xc4, 0xca5d90\nFMUL            S0, S0, S8                                             ; +0xc8, 0xca5d94\nFCVTAS          W20, S0                                                ; +0xcc, 0xca5d98\nADD             W2, W20, #1                                            ; +0xd0, 0xca5d9c\nB               loc_CA5D28                                             ; +0xd4, 0xca5da0", "xrefs": ["<???> @ 0x70f60", "DeathMarkerSettingsPopup::init @ 0xca660c", "<???> @ 0x1542d40"], "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"}