{"type": "func", "start": 6442493200, "end": 6442493341, "name": "cocos2d::extension::CCControlSlider::locationFromTouch", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::locationFromTouch from 0x18000a510 to 0x18000a59d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004ba74\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::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) + 320LL))(*(_QWORD *)(a1 + 512)) )\n      *a2 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 512) + 320LL))(*(_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 0x18000a510 to 0x18000a59d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004ba74\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, 0x18000a510\npush    rdi                                                            ; +0x5, 0x18000a515\nsub     rsp, 20h                                                       ; +0x6, 0x18000a516\nmov     rdi, rcx                                                       ; +0xa, 0x18000a51a\nmov     rbx, rdx                                                       ; +0xd, 0x18000a51d\nmov     rcx, r8                                                        ; +0x10, 0x18000a520\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x13, 0x18000a523\nmov     r8, rbx                                                        ; +0x19, 0x18000a529\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x1c, 0x18000a52c\nmov     rcx, rdi                                                       ; +0x21, 0x18000a531\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x24, 0x18000a534\nmov     rdx, rax                                                       ; +0x2a, 0x18000a53a\nmov     rcx, rbx                                                       ; +0x2d, 0x18000a53d\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x30, 0x18000a540\nxorps   xmm0, xmm0                                                     ; +0x36, 0x18000a546\ncomiss  xmm0, dword ptr [rbx]                                          ; +0x39, 0x18000a549\njbe     short loc_18000A562                                            ; +0x3c, 0x18000a54c\nmov     dword ptr [rbx], 0                                             ; +0x3e, 0x18000a54e\nmov     rax, rbx                                                       ; +0x44, 0x18000a554\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x47, 0x18000a557\nadd     rsp, 20h                                                       ; +0x4c, 0x18000a55c\npop     rdi                                                            ; +0x50, 0x18000a560\nretn                                                                   ; +0x51, 0x18000a561\nmov     rcx, [rdi+200h]                                                ; +0x52, 0x18000a562\nmov     rax, [rcx]                                                     ; +0x59, 0x18000a569\ncall    qword ptr [rax+140h]                                           ; +0x5c, 0x18000a56c\nmovss   xmm0, dword ptr [rbx]                                          ; +0x62, 0x18000a572\ncomiss  xmm0, dword ptr [rax]                                          ; +0x66, 0x18000a576\njbe     short loc_18000A58F                                            ; +0x69, 0x18000a579\nmov     rcx, [rdi+200h]                                                ; +0x6b, 0x18000a57b\nmov     rax, [rcx]                                                     ; +0x72, 0x18000a582\ncall    qword ptr [rax+140h]                                           ; +0x75, 0x18000a585\nmov     ecx, [rax]                                                     ; +0x7b, 0x18000a58b\nmov     [rbx], ecx                                                     ; +0x7d, 0x18000a58d\nmov     rax, rbx                                                       ; +0x7f, 0x18000a58f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x82, 0x18000a592\nadd     rsp, 20h                                                       ; +0x87, 0x18000a597\npop     rdi                                                            ; +0x8b, 0x18000a59b\nretn                                                                   ; +0x8c, 0x18000a59c", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004ba74"], "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"}