{"type": "func", "start": 4301534400, "end": 4301534791, "name": "GJScaleControl::ccTouchEnded", "pseudocode": "// \n// GJScaleControl::ccTouchEnded from 0x1006434c0 to 0x100643647 (391 bytes)\n// \n// 2 xrefs:\n// > sub_100643650 @ 0x10064365c\n// > <???> @ 0x100b81c20\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:34:44 +0000\n// \n\n__int64 __fastcall GJScaleControl::ccTouchEnded(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rdi\n  __int64 result; // rax\n  _QWORD *v6; // r14\n  __int64 v7; // r15\n  float v8; // xmm1_4\n  __int64 v9; // rax\n  float v10; // xmm0_4\n  __int64 v11; // r15\n  float v12; // xmm1_4\n  __int64 v13; // rax\n  float v14; // xmm0_4\n  __int64 v15; // rdi\n  __int64 v16; // rdi\n  char v17; // [rsp+0h] [rbp-20h]\n\n  v4 = *(_QWORD *)(a1 + 568);\n  if ( v4 )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 912LL))(v4);\n    *(_QWORD *)(a1 + 568) = 0;\n  }\n  else\n  {\n    result = *(unsigned int *)(a1 + 432);\n    if ( (_DWORD)result == *(_DWORD *)(a2 + 56) )\n    {\n      if ( *(_WORD *)(a1 + 458) == 1 )\n      {\n        v6 = (_QWORD *)(a1 + 416);\n        v11 = a3;\n        v12 = (float)((float)(*(float *)(a1 + 584) - *(float *)(a1 + 588))\n                    * Slider::getValue(*(_QWORD *)(a1 + 416)).f32[0])\n            + *(float *)(a1 + 588);\n        v13 = sub_10088E820(\"%.02f\", v17);\n        v14 = cocos2d::CCString::floatValue(v13, v12);\n        a3 = v11;\n        *(float *)(a1 + 440) = v14;\n      }\n      else if ( *(_WORD *)(a1 + 458) )\n      {\n        v6 = (_QWORD *)(a1 + 424);\n      }\n      else\n      {\n        v6 = (_QWORD *)(a1 + 408);\n        v7 = a3;\n        v8 = (float)((float)(*(float *)(a1 + 584) - *(float *)(a1 + 588))\n                   * Slider::getValue(*(_QWORD *)(a1 + 408)).f32[0])\n           + *(float *)(a1 + 588);\n        v9 = sub_10088E820(\"%.02f\", v17);\n        v10 = cocos2d::CCString::floatValue(v9, v8);\n        a3 = v7;\n        *(float *)(a1 + 436) = v10;\n      }\n      result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*v6 + 912LL))(*v6, a2, a3);\n      v15 = *(_QWORD *)(a1 + 568);\n      if ( v15 )\n        result = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v15 + 920LL))(v15, 0, 0);\n      *(_QWORD *)(a1 + 568) = 0;\n      if ( *(_DWORD *)(a1 + 432) != -1 )\n      {\n        *(_DWORD *)(a1 + 432) = -1;\n        v16 = *(_QWORD *)(a1 + 576);\n        if ( v16 )\n          return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 32LL))(v16);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJScaleControl::ccTouchEnded from 0x1006434c0 to 0x100643647 (391 bytes)\n; \n; 2 xrefs:\n; > sub_100643650 @ 0x10064365c\n; > <???> @ 0x100b81c20\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:34:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006434c0\nmov     rbp, rsp                                                       ; +0x1, 0x1006434c1\npush    r15                                                            ; +0x4, 0x1006434c4\npush    r14                                                            ; +0x6, 0x1006434c6\npush    r12                                                            ; +0x8, 0x1006434c8\npush    rbx; char                                                      ; +0xa, 0x1006434ca\nmov     rbx, rdi                                                       ; +0xb, 0x1006434cb\nmov     rdi, [rdi+238h]                                                ; +0xe, 0x1006434ce\ntest    rdi, rdi                                                       ; +0x15, 0x1006434d5\njz      short loc_1006434F3                                            ; +0x18, 0x1006434d8\nmov     rax, [rdi]                                                     ; +0x1a, 0x1006434da\ncall    qword ptr [rax+390h]                                           ; +0x1d, 0x1006434dd\nmov     qword ptr [rbx+238h], 0                                        ; +0x23, 0x1006434e3\njmp     loc_10064363E                                                  ; +0x2e, 0x1006434ee\nmov     eax, [rbx+1B0h]                                                ; +0x33, 0x1006434f3\ncmp     eax, [rsi+38h]                                                 ; +0x39, 0x1006434f9\njnz     loc_10064363E                                                  ; +0x3c, 0x1006434fc\nmovzx   eax, word ptr [rbx+1CAh]                                       ; +0x42, 0x100643502\ncmp     eax, 1                                                         ; +0x49, 0x100643509\njz      short loc_100643578                                            ; +0x4c, 0x10064350c\ntest    eax, eax                                                       ; +0x4e, 0x10064350e\njnz     loc_1006435DA                                                  ; +0x50, 0x100643510\nlea     r14, [rbx+198h]                                                ; +0x56, 0x100643516\nmov     rdi, [rbx+198h]                                                ; +0x5d, 0x10064351d\nmov     r15, rdx                                                       ; +0x64, 0x100643524\nmov     r12, rsi                                                       ; +0x67, 0x100643527\ncall    Slider__getValue                                               ; +0x6a, 0x10064352a\nmovss   xmm1, dword ptr [rbx+248h]                                     ; +0x6f, 0x10064352f\nmovss   xmm2, dword ptr [rbx+24Ch]                                     ; +0x77, 0x100643537\nsubss   xmm1, xmm2                                                     ; +0x7f, 0x10064353f\nmulss   xmm1, xmm0                                                     ; +0x83, 0x100643543\naddss   xmm1, xmm2                                                     ; +0x87, 0x100643547\nxorps   xmm0, xmm0                                                     ; +0x8b, 0x10064354b\ncvtss2sd xmm0, xmm1                                                    ; +0x8e, 0x10064354e\nlea     rdi, a02f; \"%.02f\"                                             ; +0x92, 0x100643552\nmov     al, 1                                                          ; +0x99, 0x100643559\ncall    sub_10088E820                                                  ; +0x9b, 0x10064355b\nmov     rdi, rax                                                       ; +0xa0, 0x100643560\ncall    cocos2d__CCString__floatValue                                  ; +0xa3, 0x100643563\nmov     rsi, r12                                                       ; +0xa8, 0x100643568\nmov     rdx, r15                                                       ; +0xab, 0x10064356b\nmovss   dword ptr [rbx+1B4h], xmm0                                     ; +0xae, 0x10064356e\njmp     short loc_1006435E1                                            ; +0xb6, 0x100643576\nlea     r14, [rbx+1A0h]                                                ; +0xb8, 0x100643578\nmov     rdi, [rbx+1A0h]                                                ; +0xbf, 0x10064357f\nmov     r15, rdx                                                       ; +0xc6, 0x100643586\nmov     r12, rsi                                                       ; +0xc9, 0x100643589\ncall    Slider__getValue                                               ; +0xcc, 0x10064358c\nmovss   xmm1, dword ptr [rbx+248h]                                     ; +0xd1, 0x100643591\nmovss   xmm2, dword ptr [rbx+24Ch]                                     ; +0xd9, 0x100643599\nsubss   xmm1, xmm2                                                     ; +0xe1, 0x1006435a1\nmulss   xmm1, xmm0                                                     ; +0xe5, 0x1006435a5\naddss   xmm1, xmm2                                                     ; +0xe9, 0x1006435a9\nxorps   xmm0, xmm0                                                     ; +0xed, 0x1006435ad\ncvtss2sd xmm0, xmm1                                                    ; +0xf0, 0x1006435b0\nlea     rdi, a02f; \"%.02f\"                                             ; +0xf4, 0x1006435b4\nmov     al, 1                                                          ; +0xfb, 0x1006435bb\ncall    sub_10088E820                                                  ; +0xfd, 0x1006435bd\nmov     rdi, rax                                                       ; +0x102, 0x1006435c2\ncall    cocos2d__CCString__floatValue                                  ; +0x105, 0x1006435c5\nmov     rsi, r12                                                       ; +0x10a, 0x1006435ca\nmov     rdx, r15                                                       ; +0x10d, 0x1006435cd\nmovss   dword ptr [rbx+1B8h], xmm0                                     ; +0x110, 0x1006435d0\njmp     short loc_1006435E1                                            ; +0x118, 0x1006435d8\nlea     r14, [rbx+1A8h]                                                ; +0x11a, 0x1006435da\nmov     rdi, [r14]                                                     ; +0x121, 0x1006435e1\nmov     rax, [rdi]                                                     ; +0x124, 0x1006435e4\ncall    qword ptr [rax+390h]                                           ; +0x127, 0x1006435e7\nmov     rdi, [rbx+238h]                                                ; +0x12d, 0x1006435ed\ntest    rdi, rdi                                                       ; +0x134, 0x1006435f4\njz      short loc_100643606                                            ; +0x137, 0x1006435f7\nmov     rax, [rdi]                                                     ; +0x139, 0x1006435f9\nxor     esi, esi                                                       ; +0x13c, 0x1006435fc\nxor     edx, edx                                                       ; +0x13e, 0x1006435fe\ncall    qword ptr [rax+398h]                                           ; +0x140, 0x100643600\nmov     qword ptr [rbx+238h], 0                                        ; +0x146, 0x100643606\ncmp     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x151, 0x100643611\njz      short loc_10064363E                                            ; +0x158, 0x100643618\nmov     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x15a, 0x10064361a\nmov     rdi, [rbx+240h]                                                ; +0x164, 0x100643624\ntest    rdi, rdi                                                       ; +0x16b, 0x10064362b\njz      short loc_10064363E                                            ; +0x16e, 0x10064362e\nmov     rax, [rdi]                                                     ; +0x170, 0x100643630\npop     rbx                                                            ; +0x173, 0x100643633\npop     r12                                                            ; +0x174, 0x100643634\npop     r14                                                            ; +0x176, 0x100643636\npop     r15                                                            ; +0x178, 0x100643638\npop     rbp                                                            ; +0x17a, 0x10064363a\njmp     qword ptr [rax+20h]                                            ; +0x17b, 0x10064363b\npop     rbx                                                            ; +0x17e, 0x10064363e\npop     r12                                                            ; +0x17f, 0x10064363f\npop     r14                                                            ; +0x181, 0x100643641\npop     r15                                                            ; +0x183, 0x100643643\npop     rbp                                                            ; +0x185, 0x100643645\nretn                                                                   ; +0x186, 0x100643646", "xrefs": ["sub_100643650 @ 0x10064365c", "<???> @ 0x100b81c20"], "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"}