{"type": "func", "start": 5370431040, "end": 5370431181, "name": "GJScaleControl::updateLabelXY", "pseudocode": "// \n// GJScaleControl::updateLabelXY from 0x1401a4640 to 0x1401a46cd (141 bytes)\n// \n// 4 xrefs:\n// > GJScaleControl::loadValues @ 0x1401a3ac0\n// > GJScaleControl::ccTouchMoved @ 0x1401a429f\n// > GJScaleControl::onApplyScale @ 0x1401a4c34\n// > <???> @ 0x140919ab4\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::updateLabelXY(__int64 a1, float a2)\n{\n  __int64 v2; // rax\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  __int128 v7; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+30h] [rbp-18h]\n  __int64 v9; // [rsp+38h] [rbp-10h]\n\n  v2 = *(_QWORD *)(a1 + 504);\n  if ( v2 && !*(_BYTE *)(v2 + 468) )\n  {\n    v4 = cocos2d::CCString::createWithFormat(\"%.2f\", a2);\n    CString = cocos2d::CCString::getCString(v4);\n    v7 = 0;\n    v8 = 0;\n    v6 = -1;\n    v9 = 0;\n    do\n      ++v6;\n    while ( CString[v6] );\n    sub_14003D230(&v7, CString, v6);\n    CCTextInputNode::setString(*(_QWORD **)(a1 + 504), &v7);\n  }\n}", "assembly": "; \n; GJScaleControl::updateLabelXY from 0x1401a4640 to 0x1401a46cd (141 bytes)\n; \n; 4 xrefs:\n; > GJScaleControl::loadValues @ 0x1401a3ac0\n; > GJScaleControl::ccTouchMoved @ 0x1401a429f\n; > GJScaleControl::onApplyScale @ 0x1401a4c34\n; > <???> @ 0x140919ab4\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; \npush    rbx                                                            ; +0x0, 0x1401a4640\nsub     rsp, 40h                                                       ; +0x2, 0x1401a4642\nmov     rax, [rcx+1F8h]                                                ; +0x6, 0x1401a4646\nmov     rbx, rcx                                                       ; +0xd, 0x1401a464d\ntest    rax, rax                                                       ; +0x10, 0x1401a4650\njz      short loc_1401A46C7                                            ; +0x13, 0x1401a4653\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x15, 0x1401a4655\njnz     short loc_1401A46C7                                            ; +0x1c, 0x1401a465c\ncvtss2sd xmm1, xmm1                                                    ; +0x1e, 0x1401a465e\nlea     rcx, a2f; \"%.2f\"                                               ; +0x22, 0x1401a4662\nmovq    rdx, xmm1                                                      ; +0x29, 0x1401a4669\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2e, 0x1401a466e\nmov     rcx, rax                                                       ; +0x34, 0x1401a4674\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x37, 0x1401a4677\nxor     ecx, ecx                                                       ; +0x3d, 0x1401a467d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x1401a467f\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x42, 0x1401a4682\nmov     [rsp+48h+var_18], rcx                                          ; +0x47, 0x1401a4687\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x1401a468c\nmov     [rsp+48h+var_10], rcx                                          ; +0x53, 0x1401a4693\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x1401a4698\ninc     r8                                                             ; +0x60, 0x1401a46a0\ncmp     [rax+r8], cl                                                   ; +0x63, 0x1401a46a3\njnz     short loc_1401A46A0                                            ; +0x67, 0x1401a46a7\nmov     rdx, rax                                                       ; +0x69, 0x1401a46a9\nlea     rcx, [rsp+48h+var_28]                                          ; +0x6c, 0x1401a46ac\ncall    sub_14003D230                                                  ; +0x71, 0x1401a46b1\nmov     rcx, [rbx+1F8h]                                                ; +0x76, 0x1401a46b6\nlea     rdx, [rsp+48h+var_28]                                          ; +0x7d, 0x1401a46bd\ncall    CCTextInputNode__setString                                     ; +0x82, 0x1401a46c2\nadd     rsp, 40h                                                       ; +0x87, 0x1401a46c7\npop     rbx                                                            ; +0x8b, 0x1401a46cb\nretn                                                                   ; +0x8c, 0x1401a46cc", "xrefs": ["GJScaleControl::loadValues @ 0x1401a3ac0", "GJScaleControl::ccTouchMoved @ 0x1401a429f", "GJScaleControl::onApplyScale @ 0x1401a4c34", "<???> @ 0x140919ab4"], "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"}