{"type": "func", "start": 6442494608, "end": 6442494749, "name": "cocos2d::extension::CCControlSlider::locationFromTouch", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::locationFromTouch from 0x18000aa90 to 0x18000ab1d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049b94\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\nfloat *__fastcall cocos2d::extension::CCControlSlider::locationFromTouch(__int64 a1, float *a2, __int64 a3)\n{\n  __int64 v5; // rax\n  char v7; // [rsp+38h] [rbp+10h] BYREF\n\n  cocos2d::CCTouch::getLocation(a3);\n  v5 = cocos2d::CCNode::convertToNodeSpace(a1, &v7, a2);\n  cocos2d::CCPoint::operator=(a2, v5);\n  if ( *a2 >= 0.0 )\n  {\n    if ( *a2 > *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 304LL))(*(_QWORD *)(a1 + 512)) )\n      *a2 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 304LL))(*(_QWORD *)(a1 + 512));\n    return a2;\n  }\n  else\n  {\n    *a2 = 0.0;\n    return a2;\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlSlider::locationFromTouch from 0x18000aa90 to 0x18000ab1d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049b94\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000aa90\npush    rdi                                                            ; +0x5, 0x18000aa95\nsub     rsp, 20h                                                       ; +0x6, 0x18000aa96\nmov     rdi, rcx                                                       ; +0xa, 0x18000aa9a\nmov     rbx, rdx                                                       ; +0xd, 0x18000aa9d\nmov     rcx, r8                                                        ; +0x10, 0x18000aaa0\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x13, 0x18000aaa3\nmov     r8, rbx                                                        ; +0x19, 0x18000aaa9\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x1c, 0x18000aaac\nmov     rcx, rdi                                                       ; +0x21, 0x18000aab1\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x24, 0x18000aab4\nmov     rdx, rax                                                       ; +0x2a, 0x18000aaba\nmov     rcx, rbx                                                       ; +0x2d, 0x18000aabd\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x30, 0x18000aac0\nxorps   xmm0, xmm0                                                     ; +0x36, 0x18000aac6\ncomiss  xmm0, dword ptr [rbx]                                          ; +0x39, 0x18000aac9\njbe     short loc_18000AAE2                                            ; +0x3c, 0x18000aacc\nmov     dword ptr [rbx], 0                                             ; +0x3e, 0x18000aace\nmov     rax, rbx                                                       ; +0x44, 0x18000aad4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x47, 0x18000aad7\nadd     rsp, 20h                                                       ; +0x4c, 0x18000aadc\npop     rdi                                                            ; +0x50, 0x18000aae0\nretn                                                                   ; +0x51, 0x18000aae1\nmov     rcx, [rdi+200h]                                                ; +0x52, 0x18000aae2\nmov     rax, [rcx]                                                     ; +0x59, 0x18000aae9\ncall    qword ptr [rax+130h]                                           ; +0x5c, 0x18000aaec\nmovss   xmm0, dword ptr [rbx]                                          ; +0x62, 0x18000aaf2\ncomiss  xmm0, dword ptr [rax]                                          ; +0x66, 0x18000aaf6\njbe     short loc_18000AB0F                                            ; +0x69, 0x18000aaf9\nmov     rcx, [rdi+200h]                                                ; +0x6b, 0x18000aafb\nmov     rax, [rcx]                                                     ; +0x72, 0x18000ab02\ncall    qword ptr [rax+130h]                                           ; +0x75, 0x18000ab05\nmov     ecx, [rax]                                                     ; +0x7b, 0x18000ab0b\nmov     [rbx], ecx                                                     ; +0x7d, 0x18000ab0d\nmov     rax, rbx                                                       ; +0x7f, 0x18000ab0f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x82, 0x18000ab12\nadd     rsp, 20h                                                       ; +0x87, 0x18000ab17\npop     rdi                                                            ; +0x8b, 0x18000ab1b\nretn                                                                   ; +0x8c, 0x18000ab1c", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x180049b94"], "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"}