{"type": "func", "start": 7839244, "end": 7839452, "name": "EasingSelectPopup::refreshRateVisual", "pseudocode": "// \n// EasingSelectPopup::refreshRateVisual from 0x779e0c to 0x779edc (208 bytes)\n// \n// 2 xrefs:\n// > EasingSelectPopup::onCell @ 0x779f58\n// > EasingSelectPopup::init @ 0x77a46e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:22 +0000\n// \n\nSlider *__fastcall EasingSelectPopup::refreshRateVisual(EasingSelectPopup *this, int a2, int a3)\n{\n  Slider *result; // r0\n  int v5; // r1\n  GameToolbox *v6; // r0\n  char v7; // r3\n  int v8; // r0\n  unsigned int v9; // r0\n  Slider *v10; // r4\n  int v11; // r0\n  int Thumb; // r0\n  _DWORD v13[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v13[0] = this;\n  v13[1] = a2;\n  v13[2] = a3;\n  result = *((Slider **)this + 178);\n  if ( result )\n  {\n    v5 = *((_DWORD *)this + 180);\n    if ( v5 == 30 )\n      v6 = *((GameToolbox **)result + 151);\n    else\n      v6 = (GameToolbox *)(int)(*(float (__fastcall **)(Slider *))(*(_DWORD *)result + 732))(result);\n    if ( GameToolbox::isRateEasing(v6, v5) )\n    {\n      v7 = -1;\n      LOWORD(v13[0]) = -1;\n    }\n    else\n    {\n      v7 = -81;\n      LOWORD(v13[0]) = -20561;\n    }\n    BYTE2(v13[0]) = v7;\n    v8 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 153), *((_DWORD *)this + 181));\n    if ( v8 )\n      (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 536))(v8, v13);\n    v9 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 144), *((_DWORD *)this + 181));\n    if ( v9 )\n      CCTextInputNode::setLabelNormalColor(v9);\n    result = (Slider *)cocos2d::CCDictionary::objectForKey(\n                         *((cocos2d::CCDictionary **)this + 145),\n                         *((_DWORD *)this + 181));\n    v10 = result;\n    if ( result )\n    {\n      v11 = *((_DWORD *)result + 81);\n      if ( v11 )\n        (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 480))(v11, v13);\n      result = (Slider *)Slider::getThumb(v10);\n      if ( result )\n      {\n        Thumb = Slider::getThumb(v10);\n        return (Slider *)(*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)Thumb + 480))(Thumb, v13);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EasingSelectPopup::refreshRateVisual from 0x779e0c to 0x779edc (208 bytes)\n; \n; 2 xrefs:\n; > EasingSelectPopup::onCell @ 0x779f58\n; > EasingSelectPopup::init @ 0x77a46e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:22 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x779E14)                ; +0x0, 0x779e0c\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x779e0e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x779e10\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x779e12\nMOV             R4, R0                                                 ; +0x8, 0x779e14\nLDR.W           R0, [R0,#0x2C8]                                        ; +0xa, 0x779e16\nLDR             R2, [R3]                                               ; +0xe, 0x779e1a\nMOV             R5, R3                                                 ; +0x10, 0x779e1c\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x12, 0x779e1e\nCMP             R0, #0                                                 ; +0x14, 0x779e20\nBEQ             loc_779ECC                                             ; +0x16, 0x779e22\nLDR.W           R1, [R4,#0x2D0]                                        ; +0x18, 0x779e24\nCMP             R1, #0x1E                                              ; +0x1c, 0x779e28\nBNE             loc_779E32                                             ; +0x1e, 0x779e2a\nLDR.W           R0, [R0,#0x25C]                                        ; +0x20, 0x779e2c\nB               loc_779E46                                             ; +0x24, 0x779e30\nLDR             R3, [R0]                                               ; +0x26, 0x779e32\nLDR.W           R3, [R3,#0x2DC]                                        ; +0x28, 0x779e34\nBLX             R3                                                     ; +0x2c, 0x779e38\nVMOV            S15, R0                                                ; +0x2e, 0x779e3a\nVCVT.S32.F32    S15, S15                                               ; +0x32, 0x779e3e\nVMOV            R0, S15; this                                          ; +0x36, 0x779e42\nBL              _ZN11GameToolbox12isRateEasingEi; GameToolbox::isRateEasing(int) ; +0x3a, 0x779e46\nCBZ             R0, loc_779E5A                                         ; +0x3e, 0x779e4a\nLDR             R3, =(word_BF0B78 - 0x779E52)                          ; +0x40, 0x779e4c\nADD             R3, PC; word_BF0B78                                    ; +0x42, 0x779e4e\nLDRH            R2, [R3]                                               ; +0x44, 0x779e50\nLDRB            R3, [R3,#(byte_BF0B7A - 0xBF0B78)]                     ; +0x46, 0x779e52\nSTRH.W          R2, [SP,#0xC+var_C]                                    ; +0x48, 0x779e54\nB               loc_779E64                                             ; +0x4c, 0x779e58\nMOVS            R3, #0xAF                                              ; +0x4e, 0x779e5a\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x50, 0x779e5c\nSTRB.W          R3, [SP,#0xC+var_C+1]                                  ; +0x54, 0x779e60\nSTRB.W          R3, [SP,#0xC+var_C+2]                                  ; +0x58, 0x779e64\nLDR.W           R0, [R4,#0x264]; this                                  ; +0x5c, 0x779e68\nLDR.W           R1, [R4,#0x2D4]; int                                   ; +0x60, 0x779e6c\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x64, 0x779e70\nCBZ             R0, loc_779E80                                         ; +0x68, 0x779e74\nLDR             R3, [R0]                                               ; +0x6a, 0x779e76\nMOV             R1, SP                                                 ; +0x6c, 0x779e78\nLDR.W           R3, [R3,#0x218]                                        ; +0x6e, 0x779e7a\nBLX             R3                                                     ; +0x72, 0x779e7e\nLDR.W           R0, [R4,#0x240]; this                                  ; +0x74, 0x779e80\nLDR.W           R1, [R4,#0x2D4]; int                                   ; +0x78, 0x779e84\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x7c, 0x779e88\nCBZ             R0, loc_779E94                                         ; +0x80, 0x779e8c\nLDR             R1, [SP,#0xC+var_C]                                    ; +0x82, 0x779e8e\nBL              _ZN15CCTextInputNode19setLabelNormalColorEN7cocos2d10_ccColor3BE; CCTextInputNode::setLabelNormalColor(cocos2d::_ccColor3B) ; +0x84, 0x779e90\nLDR.W           R0, [R4,#0x244]; this                                  ; +0x88, 0x779e94\nLDR.W           R1, [R4,#0x2D4]; int                                   ; +0x8c, 0x779e98\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x90, 0x779e9c\nMOV             R4, R0                                                 ; +0x94, 0x779ea0\nCBZ             R0, loc_779ECC                                         ; +0x96, 0x779ea2\nLDR.W           R0, [R0,#0x144]                                        ; +0x98, 0x779ea4\nCBZ             R0, loc_779EB4                                         ; +0x9c, 0x779ea8\nLDR             R3, [R0]                                               ; +0x9e, 0x779eaa\nMOV             R1, SP                                                 ; +0xa0, 0x779eac\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xa2, 0x779eae\nBLX             R3                                                     ; +0xa6, 0x779eb2\nMOV             R0, R4; this                                           ; +0xa8, 0x779eb4\nBL              _ZN6Slider8getThumbEv; Slider::getThumb(void)          ; +0xaa, 0x779eb6\nCBZ             R0, loc_779ECC                                         ; +0xae, 0x779eba\nMOV             R0, R4; this                                           ; +0xb0, 0x779ebc\nBL              _ZN6Slider8getThumbEv; Slider::getThumb(void)          ; +0xb2, 0x779ebe\nMOV             R1, SP                                                 ; +0xb6, 0x779ec2\nLDR             R3, [R0]                                               ; +0xb8, 0x779ec4\nLDR.W           R3, [R3,#0x1E0]                                        ; +0xba, 0x779ec6\nBLX             R3                                                     ; +0xbe, 0x779eca\nLDR             R2, [SP,#0xC+var_8]                                    ; +0xc0, 0x779ecc\nLDR             R3, [R5]                                               ; +0xc2, 0x779ece\nCMP             R2, R3                                                 ; +0xc4, 0x779ed0\nBEQ             loc_779ED8                                             ; +0xc6, 0x779ed2\nBLX             __stack_chk_fail                                       ; +0xc8, 0x779ed4\nADD             SP, SP, #0xC                                           ; +0xcc, 0x779ed8\nPOP             {R4,R5,PC}                                             ; +0xce, 0x779eda", "xrefs": ["EasingSelectPopup::onCell @ 0x779f58", "EasingSelectPopup::init @ 0x77a46e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}