{"type": "func", "start": 6442494688, "end": 6442494791, "name": "cocos2d::extension::CCControlSlider::valueForLocation", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::valueForLocation from 0x18000aae0 to 0x18000ab47 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bb04\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:37 +0000\n// \n\nfloat __fastcall cocos2d::extension::CCControlSlider::valueForLocation(__int64 a1, float *a2)\n{\n  float result; // xmm0_4\n\n  result = fminf(\n             (float)((float)(*(float *)(a1 + 480) - *(float *)(a1 + 476))\n                   * (float)(*a2\n                           / *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 320LL))(*(_QWORD *)(a1 + 512))))\n           + *(float *)(a1 + 476),\n             *(float *)(a1 + 488));\n  if ( result <= *(float *)(a1 + 484) )\n    return *(float *)(a1 + 484);\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControlSlider::valueForLocation from 0x18000aae0 to 0x18000ab47 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bb04\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:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000aae0\npush    rdi                                                            ; +0x5, 0x18000aae5\nsub     rsp, 20h                                                       ; +0x6, 0x18000aae6\nmov     rdi, rcx                                                       ; +0xa, 0x18000aaea\nmov     rbx, rdx                                                       ; +0xd, 0x18000aaed\nmov     rcx, [rcx+200h]                                                ; +0x10, 0x18000aaf0\nmov     rax, [rcx]                                                     ; +0x17, 0x18000aaf7\ncall    qword ptr [rax+140h]                                           ; +0x1a, 0x18000aafa\nmovss   xmm1, dword ptr [rbx]                                          ; +0x20, 0x18000ab00\nmovss   xmm2, dword ptr [rdi+1DCh]                                     ; +0x24, 0x18000ab04\nmovss   xmm0, dword ptr [rdi+1E0h]                                     ; +0x2c, 0x18000ab0c\ndivss   xmm1, dword ptr [rax]                                          ; +0x34, 0x18000ab14\nsubss   xmm0, xmm2                                                     ; +0x38, 0x18000ab18\nmulss   xmm0, xmm1                                                     ; +0x3c, 0x18000ab1c\nmovss   xmm1, dword ptr [rdi+1E4h]                                     ; +0x40, 0x18000ab20\naddss   xmm0, xmm2                                                     ; +0x48, 0x18000ab28\nminss   xmm0, dword ptr [rdi+1E8h]                                     ; +0x4c, 0x18000ab2c\ncomiss  xmm0, xmm1                                                     ; +0x54, 0x18000ab34\nja      short loc_18000AB3C                                            ; +0x57, 0x18000ab37\nmovaps  xmm0, xmm1                                                     ; +0x59, 0x18000ab39\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5c, 0x18000ab3c\nadd     rsp, 20h                                                       ; +0x61, 0x18000ab41\npop     rdi                                                            ; +0x65, 0x18000ab45\nretn                                                                   ; +0x66, 0x18000ab46", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004bb04"], "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"}