{"type": "func", "start": 5370430320, "end": 5370430670, "name": "GJScaleControl::ccTouchEnded", "pseudocode": "// \n// GJScaleControl::ccTouchEnded from 0x1401a4370 to 0x1401a44ce (350 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407503b0\n// > <???> @ 0x140919a84\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:27:49 +0000\n// \n\nvoid __fastcall GJScaleControl::ccTouchEnded(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rcx\n  __int16 v7; // ax\n  float v8; // xmm0_4\n  cocos2d::CCString *v9; // rax\n  float v10; // xmm0_4\n  __int64 v11; // rcx\n  float Value; // xmm0_4\n  cocos2d::CCString *v13; // rax\n  float v14; // xmm0_4\n\n  if ( *(_QWORD *)(a1 + 248) )\n  {\n    v6 = *(_QWORD *)(a1 + 248);\n    if ( v6 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)(v6 + 320) + 24LL))(v6 + 320);\n    *(_QWORD *)(a1 + 248) = 0;\n  }\n  else if ( *(_DWORD *)(a1 + 112) == *(_DWORD *)(a2 + 56) )\n  {\n    v7 = *(_WORD *)(a1 + 138);\n    if ( v7 )\n    {\n      if ( v7 == 1 )\n      {\n        Value = SliderThumb::getValue(*(float **)(*(_QWORD *)(*(_QWORD *)(a1 + 96) + 408LL) + 456LL));\n        v13 = cocos2d::CCString::createWithFormat(\n                \"%.02f\",\n                (float)((float)((float)(*(float *)(a1 + 264) - *(float *)(a1 + 268)) * Value) + *(float *)(a1 + 268)));\n        v14 = cocos2d::CCString::floatValue(v13);\n        v11 = *(_QWORD *)(a1 + 96);\n        *(float *)(a1 + 120) = v14;\n      }\n      else\n      {\n        v11 = *(_QWORD *)(a1 + 104);\n      }\n    }\n    else\n    {\n      v8 = SliderThumb::getValue(*(float **)(*(_QWORD *)(*(_QWORD *)(a1 + 88) + 408LL) + 456LL));\n      v9 = cocos2d::CCString::createWithFormat(\n             \"%.02f\",\n             (float)((float)((float)(*(float *)(a1 + 264) - *(float *)(a1 + 268)) * v8) + *(float *)(a1 + 268)));\n      v10 = cocos2d::CCString::floatValue(v9);\n      v11 = *(_QWORD *)(a1 + 88);\n      *(float *)(a1 + 116) = v10;\n    }\n    (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(v11 + 320) + 24LL))(v11 + 320, a2, a3);\n    GJScaleControl::finishTouch(a1 - 320);\n  }\n}", "assembly": "; \n; GJScaleControl::ccTouchEnded from 0x1401a4370 to 0x1401a44ce (350 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407503b0\n; > <???> @ 0x140919a84\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:27:49 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401a4370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401a4375\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1401a437a\npush    rdi                                                            ; +0xf, 0x1401a437f\nsub     rsp, 20h                                                       ; +0x10, 0x1401a4380\ncmp     qword ptr [rcx+0F8h], 0                                        ; +0x14, 0x1401a4384\nmov     rbp, r8                                                        ; +0x1c, 0x1401a438c\nmov     rdi, rdx                                                       ; +0x1f, 0x1401a438f\nmov     rbx, rcx                                                       ; +0x22, 0x1401a4392\njz      short loc_1401A43C0                                            ; +0x25, 0x1401a4395\nmov     rcx, [rcx+0F8h]                                                ; +0x27, 0x1401a4397\ntest    rcx, rcx                                                       ; +0x2e, 0x1401a439e\njz      short loc_1401A43B0                                            ; +0x31, 0x1401a43a1\nadd     rcx, 140h                                                      ; +0x33, 0x1401a43a3\nmov     rax, [rcx]                                                     ; +0x3a, 0x1401a43aa\ncall    qword ptr [rax+18h]                                            ; +0x3d, 0x1401a43ad\nmov     qword ptr [rbx+0F8h], 0                                        ; +0x40, 0x1401a43b0\njmp     loc_1401A44B9                                                  ; +0x4b, 0x1401a43bb\nmov     eax, [rdx+38h]                                                 ; +0x50, 0x1401a43c0\ncmp     [rcx+70h], eax                                                 ; +0x53, 0x1401a43c3\njnz     loc_1401A44B9                                                  ; +0x56, 0x1401a43c6\nmovzx   eax, word ptr [rcx+8Ah]                                        ; +0x5c, 0x1401a43cc\ntest    ax, ax                                                         ; +0x63, 0x1401a43d3\njnz     short loc_1401A4434                                            ; +0x66, 0x1401a43d6\nmov     rax, [rcx+58h]                                                 ; +0x68, 0x1401a43d8\nmov     rcx, [rax+198h]                                                ; +0x6c, 0x1401a43dc\nmov     rcx, [rcx+1C8h]                                                ; +0x73, 0x1401a43e3\ncall    SliderThumb__getValue                                          ; +0x7a, 0x1401a43ea\nmovss   xmm1, dword ptr [rbx+10Ch]                                     ; +0x7f, 0x1401a43ef\nlea     rcx, a02f; \"%.02f\"                                             ; +0x87, 0x1401a43f7\nmovss   xmm2, dword ptr [rbx+108h]                                     ; +0x8e, 0x1401a43fe\nsubss   xmm2, xmm1                                                     ; +0x96, 0x1401a4406\nmulss   xmm2, xmm0                                                     ; +0x9a, 0x1401a440a\naddss   xmm2, xmm1                                                     ; +0x9e, 0x1401a440e\ncvtps2pd xmm1, xmm2                                                    ; +0xa2, 0x1401a4412\nmovq    rdx, xmm1                                                      ; +0xa5, 0x1401a4415\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xaa, 0x1401a441a\nmov     rcx, rax                                                       ; +0xb0, 0x1401a4420\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0xb3, 0x1401a4423\nmov     rcx, [rbx+58h]                                                 ; +0xb9, 0x1401a4429\nmovss   dword ptr [rbx+74h], xmm0                                      ; +0xbd, 0x1401a442d\njmp     short loc_1401A449A                                            ; +0xc2, 0x1401a4432\ncmp     ax, 1                                                          ; +0xc4, 0x1401a4434\njnz     short loc_1401A4496                                            ; +0xc8, 0x1401a4438\nmov     rax, [rcx+60h]                                                 ; +0xca, 0x1401a443a\nmov     rcx, [rax+198h]                                                ; +0xce, 0x1401a443e\nmov     rcx, [rcx+1C8h]                                                ; +0xd5, 0x1401a4445\ncall    SliderThumb__getValue                                          ; +0xdc, 0x1401a444c\nmovss   xmm1, dword ptr [rbx+10Ch]                                     ; +0xe1, 0x1401a4451\nlea     rcx, a02f; \"%.02f\"                                             ; +0xe9, 0x1401a4459\nmovss   xmm2, dword ptr [rbx+108h]                                     ; +0xf0, 0x1401a4460\nsubss   xmm2, xmm1                                                     ; +0xf8, 0x1401a4468\nmulss   xmm2, xmm0                                                     ; +0xfc, 0x1401a446c\naddss   xmm2, xmm1                                                     ; +0x100, 0x1401a4470\ncvtps2pd xmm1, xmm2                                                    ; +0x104, 0x1401a4474\nmovq    rdx, xmm1                                                      ; +0x107, 0x1401a4477\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x10c, 0x1401a447c\nmov     rcx, rax                                                       ; +0x112, 0x1401a4482\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x115, 0x1401a4485\nmov     rcx, [rbx+60h]                                                 ; +0x11b, 0x1401a448b\nmovss   dword ptr [rbx+78h], xmm0                                      ; +0x11f, 0x1401a448f\njmp     short loc_1401A449A                                            ; +0x124, 0x1401a4494\nmov     rcx, [rcx+68h]                                                 ; +0x126, 0x1401a4496\nadd     rcx, 140h                                                      ; +0x12a, 0x1401a449a\nmov     r8, rbp                                                        ; +0x131, 0x1401a44a1\nmov     rdx, rdi                                                       ; +0x134, 0x1401a44a4\nmov     rax, [rcx]                                                     ; +0x137, 0x1401a44a7\ncall    qword ptr [rax+18h]                                            ; +0x13a, 0x1401a44aa\nlea     rcx, [rbx-140h]                                                ; +0x13d, 0x1401a44ad\ncall    GJScaleControl__finishTouch                                    ; +0x144, 0x1401a44b4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x149, 0x1401a44b9\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x14e, 0x1401a44be\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x153, 0x1401a44c3\nadd     rsp, 20h                                                       ; +0x158, 0x1401a44c8\npop     rdi                                                            ; +0x15c, 0x1401a44cc\nretn                                                                   ; +0x15d, 0x1401a44cd", "xrefs": ["<???> @ 0x1407503b0", "<???> @ 0x140919a84"], "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"}