{"type": "func", "start": 5369932688, "end": 5369932996, "name": "GJScaleControl::ccTouchEnded", "pseudocode": "// \n// GJScaleControl::ccTouchEnded from 0x14012ab90 to 0x14012acc4 (308 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140552bf0\n// > <???> @ 0x1406c9b34\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\nvoid GJScaleControl::ccTouchEnded(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  __int16 ty_high; // ax\n  float v7; // xmm0_4\n  cocos2d::CCString *v8; // rax\n  float v9; // xmm0_4\n  __int64 v10; // rcx\n  float Value; // xmm0_4\n  cocos2d::CCString *v12; // rax\n  float v13; // xmm0_4\n  __int64 v14; // rcx\n\n  if ( LODWORD(a1->m_obContentSize.height) == a2->m_nId )\n  {\n    ty_high = HIWORD(a1->m_sAdditionalTransform.ty);\n    if ( ty_high )\n    {\n      if ( ty_high == 1 )\n      {\n        Value = SliderThumb::getValue(*(SliderThumb **)(*(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPointInPoints.y + 408LL)\n                                                      + 456LL));\n        v12 = cocos2d::CCString::createWithFormat(\n                \"%.02f\",\n                (float)((float)((float)(a1->m_sInverse.d - a1->m_sInverse.tx) * Value) + a1->m_sInverse.tx));\n        v13 = cocos2d::CCString::floatValue(v12);\n        v10 = *(_QWORD *)&a1->m_obAnchorPointInPoints.y;\n        a1->m_sAdditionalTransform.b = v13;\n      }\n      else\n      {\n        v10 = *(_QWORD *)&a1->m_obAnchorPoint.y;\n      }\n    }\n    else\n    {\n      v7 = SliderThumb::getValue(*(SliderThumb **)(*(_QWORD *)(*(_QWORD *)&a1->m_fSkewY + 408LL) + 456LL));\n      v8 = cocos2d::CCString::createWithFormat(\n             \"%.02f\",\n             (float)((float)((float)(a1->m_sInverse.d - a1->m_sInverse.tx) * v7) + a1->m_sInverse.tx));\n      v9 = cocos2d::CCString::floatValue(v8);\n      v10 = *(_QWORD *)&a1->m_fSkewY;\n      a1->m_sAdditionalTransform.a = v9;\n    }\n    (*(void (__fastcall **)(__int64, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)(v10 + 320) + 24LL))(\n      v10 + 320,\n      a2,\n      a3);\n    if ( LODWORD(a1->m_obContentSize.height) != -1 )\n    {\n      v14 = *(_QWORD *)&a1->m_sInverse.b;\n      a1->m_obContentSize.height = NAN;\n      if ( v14 )\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 32LL))(v14);\n    }\n  }\n}", "assembly": "; \n; GJScaleControl::ccTouchEnded from 0x14012ab90 to 0x14012acc4 (308 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140552bf0\n; > <???> @ 0x1406c9b34\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, 0x14012ab90\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14012ab95\npush    rdi                                                            ; +0xa, 0x14012ab9a\nsub     rsp, 20h                                                       ; +0xb, 0x14012ab9b\nmov     eax, [rdx+38h]                                                 ; +0xf, 0x14012ab9f\nmov     rsi, r8                                                        ; +0x12, 0x14012aba2\nmov     rdi, rdx                                                       ; +0x15, 0x14012aba5\nmov     rbx, rcx                                                       ; +0x18, 0x14012aba8\ncmp     [rcx+70h], eax                                                 ; +0x1b, 0x14012abab\njnz     loc_14012ACB4                                                  ; +0x1e, 0x14012abae\nmovzx   eax, word ptr [rcx+8Ah]                                        ; +0x24, 0x14012abb4\ntest    ax, ax                                                         ; +0x2b, 0x14012abbb\njnz     short loc_14012AC1C                                            ; +0x2e, 0x14012abbe\nmov     rax, [rcx+58h]                                                 ; +0x30, 0x14012abc0\nmov     rdx, [rax+198h]                                                ; +0x34, 0x14012abc4\nmov     rcx, [rdx+1C8h]                                                ; +0x3b, 0x14012abcb\ncall    SliderThumb__getValue                                          ; +0x42, 0x14012abd2\nmovss   xmm1, dword ptr [rbx+0B4h]                                     ; +0x47, 0x14012abd7\nlea     rcx, a02f; \"%.02f\"                                             ; +0x4f, 0x14012abdf\nmovss   xmm2, dword ptr [rbx+0B0h]                                     ; +0x56, 0x14012abe6\nsubss   xmm2, xmm1                                                     ; +0x5e, 0x14012abee\nmulss   xmm2, xmm0                                                     ; +0x62, 0x14012abf2\naddss   xmm2, xmm1                                                     ; +0x66, 0x14012abf6\ncvtps2pd xmm1, xmm2                                                    ; +0x6a, 0x14012abfa\nmovq    rdx, xmm1                                                      ; +0x6d, 0x14012abfd\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x72, 0x14012ac02\nmov     rcx, rax                                                       ; +0x78, 0x14012ac08\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x7b, 0x14012ac0b\nmov     rcx, [rbx+58h]                                                 ; +0x81, 0x14012ac11\nmovss   dword ptr [rbx+74h], xmm0                                      ; +0x85, 0x14012ac15\njmp     short loc_14012AC82                                            ; +0x8a, 0x14012ac1a\ncmp     ax, 1                                                          ; +0x8c, 0x14012ac1c\njnz     short loc_14012AC7E                                            ; +0x90, 0x14012ac20\nmov     rax, [rcx+60h]                                                 ; +0x92, 0x14012ac22\nmov     rcx, [rax+198h]                                                ; +0x96, 0x14012ac26\nmov     rcx, [rcx+1C8h]                                                ; +0x9d, 0x14012ac2d\ncall    SliderThumb__getValue                                          ; +0xa4, 0x14012ac34\nmovss   xmm1, dword ptr [rbx+0B4h]                                     ; +0xa9, 0x14012ac39\nlea     rcx, a02f; \"%.02f\"                                             ; +0xb1, 0x14012ac41\nmovss   xmm2, dword ptr [rbx+0B0h]                                     ; +0xb8, 0x14012ac48\nsubss   xmm2, xmm1                                                     ; +0xc0, 0x14012ac50\nmulss   xmm2, xmm0                                                     ; +0xc4, 0x14012ac54\naddss   xmm2, xmm1                                                     ; +0xc8, 0x14012ac58\ncvtps2pd xmm1, xmm2                                                    ; +0xcc, 0x14012ac5c\nmovq    rdx, xmm1                                                      ; +0xcf, 0x14012ac5f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xd4, 0x14012ac64\nmov     rcx, rax                                                       ; +0xda, 0x14012ac6a\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0xdd, 0x14012ac6d\nmov     rcx, [rbx+60h]                                                 ; +0xe3, 0x14012ac73\nmovss   dword ptr [rbx+78h], xmm0                                      ; +0xe7, 0x14012ac77\njmp     short loc_14012AC82                                            ; +0xec, 0x14012ac7c\nmov     rcx, [rcx+68h]                                                 ; +0xee, 0x14012ac7e\nadd     rcx, 140h                                                      ; +0xf2, 0x14012ac82\nmov     r8, rsi                                                        ; +0xf9, 0x14012ac89\nmov     rdx, rdi                                                       ; +0xfc, 0x14012ac8c\nmov     rax, [rcx]                                                     ; +0xff, 0x14012ac8f\ncall    qword ptr [rax+18h]                                            ; +0x102, 0x14012ac92\ncmp     dword ptr [rbx+70h], 0FFFFFFFFh                                ; +0x105, 0x14012ac95\njz      short loc_14012ACB4                                            ; +0x109, 0x14012ac99\nmov     rcx, [rbx+0A8h]                                                ; +0x10b, 0x14012ac9b\nmov     dword ptr [rbx+70h], 0FFFFFFFFh                                ; +0x112, 0x14012aca2\ntest    rcx, rcx                                                       ; +0x119, 0x14012aca9\njz      short loc_14012ACB4                                            ; +0x11c, 0x14012acac\nmov     rax, [rcx]                                                     ; +0x11e, 0x14012acae\ncall    qword ptr [rax+20h]                                            ; +0x121, 0x14012acb1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x124, 0x14012acb4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x129, 0x14012acb9\nadd     rsp, 20h                                                       ; +0x12e, 0x14012acbe\npop     rdi                                                            ; +0x132, 0x14012acc2\nretn                                                                   ; +0x133, 0x14012acc3", "xrefs": ["<???> @ 0x140552bf0", "<???> @ 0x1406c9b34"], "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"}