{"type": "func", "start": 6442844768, "end": 6442844869, "name": "cocos2d::CCProgressTimer::setPercentage", "pseudocode": "// \n// cocos2d::CCProgressTimer::setPercentage from 0x180060260 to 0x1800602c5 (101 bytes)\n// \n// 9 xrefs:\n// > cocos2d::CCProgressTo::update @ 0x180039d0a\n// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180059727\n// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180059837\n// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x18005994c\n// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180059a15\n// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ae5\n// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059bf4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd510\n// \n// This function is hookable on this platform (idp: pc, 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 11:21:50 +0000\n// \n\nvoid __fastcall cocos2d::CCProgressTimer::setPercentage(cocos2d::CCProgressTimer *this, float a2)\n{\n  float v3; // xmm0_4\n  int v4; // ecx\n\n  if ( *((float *)this + 87) != a2 )\n  {\n    v3 = cocos2d::clampf(this, 0.0, 100.0, a2);\n    v4 = *((_DWORD *)this + 86);\n    *((float *)this + 87) = v3;\n    if ( v4 )\n    {\n      if ( v4 == 1 )\n        cocos2d::CCProgressTimer::updateBar(this);\n    }\n    else\n    {\n      cocos2d::CCProgressTimer::updateRadial(this);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setPercentage from 0x180060260 to 0x1800602c5 (101 bytes)\n; \n; 9 xrefs:\n; > cocos2d::CCProgressTo::update @ 0x180039d0a\n; > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180059727\n; > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180059837\n; > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x18005994c\n; > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180059a15\n; > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ae5\n; > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059bf4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd510\n; \n; This function is hookable on this platform (idp: pc, 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 11:21:50 +0000\n; \npush    rbx                                                            ; +0x0, 0x180060260\nsub     rsp, 20h                                                       ; +0x2, 0x180060262\nmovss   xmm0, dword ptr [rcx+15Ch]                                     ; +0x6, 0x180060266\nmovaps  xmm3, xmm1; float                                              ; +0xe, 0x18006026e\nucomiss xmm0, xmm3                                                     ; +0x11, 0x180060271\nmov     rbx, rcx                                                       ; +0x14, 0x180060274\njp      short loc_18006027B                                            ; +0x17, 0x180060277\njz      short loc_1800602BF                                            ; +0x19, 0x180060279\nmovss   xmm2, cs:flt_1800F0280; float                                  ; +0x1b, 0x18006027b\nxorps   xmm1, xmm1; float                                              ; +0x23, 0x180060283\nmovaps  xmm0, xmm3                                                     ; +0x26, 0x180060286\ncall    ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float)  ; +0x29, 0x180060289\nmov     ecx, [rbx+158h]                                                ; +0x2e, 0x18006028e\nmovss   dword ptr [rbx+15Ch], xmm0                                     ; +0x34, 0x180060294\ntest    ecx, ecx                                                       ; +0x3c, 0x18006029c\njz      short loc_1800602B2                                            ; +0x3e, 0x18006029e\ncmp     ecx, 1                                                         ; +0x40, 0x1800602a0\njnz     short loc_1800602BF                                            ; +0x43, 0x1800602a3\nmov     rcx, rbx; this                                                 ; +0x45, 0x1800602a5\nadd     rsp, 20h                                                       ; +0x48, 0x1800602a8\npop     rbx                                                            ; +0x4c, 0x1800602ac\njmp     ?updateBar@CCProgressTimer@cocos2d@@IEAAXXZ; cocos2d::CCProgressTimer::updateBar(void) ; +0x4d, 0x1800602ad\nmov     rcx, rbx; this                                                 ; +0x52, 0x1800602b2\nadd     rsp, 20h                                                       ; +0x55, 0x1800602b5\npop     rbx                                                            ; +0x59, 0x1800602b9\njmp     ?updateRadial@CCProgressTimer@cocos2d@@IEAAXXZ; cocos2d::CCProgressTimer::updateRadial(void) ; +0x5a, 0x1800602ba\nadd     rsp, 20h                                                       ; +0x5f, 0x1800602bf\npop     rbx                                                            ; +0x63, 0x1800602c3\nretn                                                                   ; +0x64, 0x1800602c4", "xrefs": ["cocos2d::CCProgressTo::update @ 0x180039d0a", "cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x180059727", "cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x180059837", "cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x18005994c", "cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180059a15", "cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ae5", "cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059bf4", "<???> @ 0x18014cf68", "<???> @ 0x1801bd510"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}