{"type": "func", "start": 6442836080, "end": 6442836181, "name": "cocos2d::CCProgressTimer::setPercentage", "pseudocode": "// \n// cocos2d::CCProgressTimer::setPercentage from 0x18005e070 to 0x18005e0d5 (101 bytes)\n// \n// 9 xrefs:\n// > cocos2d::CCProgressTo::update @ 0x1800395ca\n// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180057807\n// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180057917\n// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x180057a2c\n// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057af5\n// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bc5\n// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057cd4\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b324c\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 cocos2d::CCProgressTimer::setPercentage(cocos2d::CCProgressTimer *this, float a2)\n{\n  float v3; // xmm0_4\n  cocos2d::CCProgressTimerType m_eType; // ecx\n\n  if ( this->m_fPercentage != a2 )\n  {\n    v3 = cocos2d::clampf((cocos2d *)this, 0.0, 100.0, a2);\n    m_eType = this->m_eType;\n    this->m_fPercentage = v3;\n    if ( m_eType )\n    {\n      if ( m_eType == kCCProgressTimerTypeBar )\n        cocos2d::CCProgressTimer::updateBar(this);\n    }\n    else\n    {\n      cocos2d::CCProgressTimer::updateRadial(this);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setPercentage from 0x18005e070 to 0x18005e0d5 (101 bytes)\n; \n; 9 xrefs:\n; > cocos2d::CCProgressTo::update @ 0x1800395ca\n; > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180057807\n; > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180057917\n; > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x180057a2c\n; > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057af5\n; > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bc5\n; > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057cd4\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b324c\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    rbx                                                            ; +0x0, 0x18005e070\nsub     rsp, 20h                                                       ; +0x2, 0x18005e072\nmovss   xmm0, dword ptr [rcx+15Ch]                                     ; +0x6, 0x18005e076\nmovaps  xmm3, xmm1; float                                              ; +0xe, 0x18005e07e\nucomiss xmm0, xmm3                                                     ; +0x11, 0x18005e081\nmov     rbx, rcx                                                       ; +0x14, 0x18005e084\njp      short loc_18005E08B                                            ; +0x17, 0x18005e087\njz      short loc_18005E0CF                                            ; +0x19, 0x18005e089\nmovss   xmm2, cs:flt_1800EA220; float                                  ; +0x1b, 0x18005e08b\nxorps   xmm1, xmm1; float                                              ; +0x23, 0x18005e093\nmovaps  xmm0, xmm3                                                     ; +0x26, 0x18005e096\ncall    ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float)  ; +0x29, 0x18005e099\nmov     ecx, [rbx+158h]                                                ; +0x2e, 0x18005e09e\nmovss   dword ptr [rbx+15Ch], xmm0                                     ; +0x34, 0x18005e0a4\ntest    ecx, ecx                                                       ; +0x3c, 0x18005e0ac\njz      short loc_18005E0C2                                            ; +0x3e, 0x18005e0ae\ncmp     ecx, 1                                                         ; +0x40, 0x18005e0b0\njnz     short loc_18005E0CF                                            ; +0x43, 0x18005e0b3\nmov     rcx, rbx; this                                                 ; +0x45, 0x18005e0b5\nadd     rsp, 20h                                                       ; +0x48, 0x18005e0b8\npop     rbx                                                            ; +0x4c, 0x18005e0bc\njmp     ?updateBar@CCProgressTimer@cocos2d@@IEAAXXZ; cocos2d::CCProgressTimer::updateBar(void) ; +0x4d, 0x18005e0bd\nmov     rcx, rbx; this                                                 ; +0x52, 0x18005e0c2\nadd     rsp, 20h                                                       ; +0x55, 0x18005e0c5\npop     rbx                                                            ; +0x59, 0x18005e0c9\njmp     ?updateRadial@CCProgressTimer@cocos2d@@IEAAXXZ; cocos2d::CCProgressTimer::updateRadial(void) ; +0x5a, 0x18005e0ca\nadd     rsp, 20h                                                       ; +0x5f, 0x18005e0cf\npop     rbx                                                            ; +0x63, 0x18005e0d3\nretn                                                                   ; +0x64, 0x18005e0d4", "xrefs": ["cocos2d::CCProgressTo::update @ 0x1800395ca", "cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180057807", "cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180057917", "cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x180057a2c", "cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057af5", "cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bc5", "cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057cd4", "<???> @ 0x1801438a8", "<???> @ 0x1801b324c"], "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"}