{"type": "func", "start": 6442484576, "end": 6442484864, "name": "cocos2d::extension::CCControlHuePicker::setHuePercentage", "pseudocode": "// \n// cocos2d::extension::CCControlHuePicker::setHuePercentage from 0x180008360 to 0x180008480 (288 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180027350\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b81c\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 12:15:36 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlHuePicker::setHuePercentage(\n        cocos2d::extension::CCControlHuePicker *this,\n        float a2)\n{\n  __int64 *v3; // rdi\n  float v4; // xmm10_4\n  __int64 v5; // rbx\n  float v6; // xmm9_4\n  float v7; // xmm7_4\n  float v8; // xmm6_4\n  float v9; // xmm0_4\n  __int64 v10; // rax\n  __int64 v11; // [rsp+20h] [rbp-58h] BYREF\n  float v12; // [rsp+28h] [rbp-50h]\n  float v13; // [rsp+2Ch] [rbp-4Ch]\n  char v14; // [rsp+80h] [rbp+8h] BYREF\n\n  *((float *)this + 119) = a2;\n  *((float *)this + 118) = a2 * 360.0;\n  cocos2d::CCNode::boundingBox(*((_QWORD *)this + 60), &v11);\n  v3 = *((__int64 **)this + 61);\n  v4 = v12 * 0.5;\n  v5 = *v3;\n  v6 = (float)(v12 * 0.5) - 15.0;\n  v7 = (float)((float)(*((float *)this + 119) * 360.0) - 180.0) * 0.017453292;\n  v8 = (float)(sinf(v7) * v6) + (float)((float)(v13 * 0.5) + *((float *)this + 125));\n  v9 = (float)(cosf(v7) * v6) + (float)(v4 + *((float *)this + 124));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v9, v8);\n  (*(void (__fastcall **)(__int64 *, __int64))(v5 + 184))(v3, v10);\n}", "assembly": "; \n; cocos2d::extension::CCControlHuePicker::setHuePercentage from 0x180008360 to 0x180008480 (288 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180027350\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b81c\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 12:15:36 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x180008360\nmov     [rax+10h], rbx                                                 ; +0x3, 0x180008363\nmov     [rax+18h], rsi                                                 ; +0x7, 0x180008367\npush    rdi                                                            ; +0xb, 0x18000836b\nsub     rsp, 70h                                                       ; +0xc, 0x18000836c\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x10, 0x180008370\nlea     rdx, [rax-58h]                                                 ; +0x14, 0x180008374\nmovss   dword ptr [rcx+1DCh], xmm1                                     ; +0x18, 0x180008378\nmov     rsi, rcx                                                       ; +0x20, 0x180008380\nmulss   xmm1, cs:dword_18002BC90                                       ; +0x23, 0x180008383\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x2b, 0x18000838b\nmovaps  xmmword ptr [rax-38h], xmm9                                    ; +0x2f, 0x18000838f\nmovss   dword ptr [rcx+1D8h], xmm1                                     ; +0x34, 0x180008394\nmov     rcx, [rcx+1E0h]                                                ; +0x3c, 0x18000839c\nmovaps  xmmword ptr [rax-48h], xmm10                                   ; +0x43, 0x1800083a3\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0x48, 0x1800083a8\nmovss   xmm7, dword ptr [rsi+1DCh]                                     ; +0x4e, 0x1800083ae\nmulss   xmm7, cs:dword_18002BC90                                       ; +0x56, 0x1800083b6\nmov     rdi, [rsi+1E8h]                                                ; +0x5e, 0x1800083be\nmovss   xmm10, [rsp+78h+var_50]                                        ; +0x65, 0x1800083c5\nmulss   xmm10, cs:dword_18002BBD8                                      ; +0x6c, 0x1800083cc\nsubss   xmm7, cs:dword_18002BC84                                       ; +0x75, 0x1800083d5\nmov     rbx, [rdi]                                                     ; +0x7d, 0x1800083dd\nmovaps  xmm9, xmm10                                                    ; +0x80, 0x1800083e0\nsubss   xmm9, cs:dword_18002BC60                                       ; +0x84, 0x1800083e4\nmulss   xmm7, cs:dword_18002BBC0                                       ; +0x8d, 0x1800083ed\nmovaps  xmm0, xmm7; X                                                  ; +0x95, 0x1800083f5\ncall    sinf                                                           ; +0x98, 0x1800083f8\nmovss   xmm1, [rsp+78h+var_4C]                                         ; +0x9d, 0x1800083fd\nmovaps  xmm6, xmm0                                                     ; +0xa3, 0x180008403\nmulss   xmm1, cs:dword_18002BBD8                                       ; +0xa6, 0x180008406\nmovaps  xmm0, xmm7; X                                                  ; +0xae, 0x18000840e\nmulss   xmm6, xmm9                                                     ; +0xb1, 0x180008411\naddss   xmm1, dword ptr [rsi+1F4h]                                     ; +0xb6, 0x180008416\naddss   xmm6, xmm1                                                     ; +0xbe, 0x18000841e\ncall    cosf                                                           ; +0xc2, 0x180008422\naddss   xmm10, dword ptr [rsi+1F0h]                                    ; +0xc7, 0x180008427\nmulss   xmm0, xmm9                                                     ; +0xd0, 0x180008430\nlea     rcx, [rsp+78h+arg_0]                                           ; +0xd5, 0x180008435\nmovaps  xmm2, xmm6                                                     ; +0xdd, 0x18000843d\naddss   xmm0, xmm10                                                    ; +0xe0, 0x180008440\nmovaps  xmm1, xmm0                                                     ; +0xe5, 0x180008445\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x180008448\nmov     rdx, rax                                                       ; +0xee, 0x18000844e\nmov     rcx, rdi                                                       ; +0xf1, 0x180008451\ncall    qword ptr [rbx+0B8h]                                           ; +0xf4, 0x180008454\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xfa, 0x18000845a\nlea     r11, [rsp+78h+var_8]                                           ; +0xff, 0x18000845f\nmov     rbx, [r11+18h]                                                 ; +0x104, 0x180008464\nmov     rsi, [r11+20h]                                                 ; +0x108, 0x180008468\nmovaps  xmm9, xmmword ptr [r11-30h]                                    ; +0x10c, 0x18000846c\nmovaps  xmm10, xmmword ptr [r11-40h]                                   ; +0x111, 0x180008471\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0x116, 0x180008476\nmov     rsp, r11                                                       ; +0x11b, 0x18000847b\npop     rdi                                                            ; +0x11e, 0x18000847e\nretn                                                                   ; +0x11f, 0x18000847f", "xrefs": ["<???> @ 0x180027350", "<???> @ 0x180032408", "<???> @ 0x18004b81c"], "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"}