{"type": "func", "start": 5370430752, "end": 5370430893, "name": "GJScaleControl::updateLabelX", "pseudocode": "// \n// GJScaleControl::updateLabelX from 0x1401a4520 to 0x1401a45ad (141 bytes)\n// \n// 5 xrefs:\n// > GJScaleControl::loadValues @ 0x1401a3aa9\n// > GJScaleControl::ccTouchMoved @ 0x1401a427e\n// > GJScaleControl::onApplyScale @ 0x1401a4a6a\n// > GJScaleControl::onApplyScale @ 0x1401a4c1b\n// > <???> @ 0x140919a9c\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::updateLabelX(__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 + 488);\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 + 488), &v7);\n  }\n}", "assembly": "; \n; GJScaleControl::updateLabelX from 0x1401a4520 to 0x1401a45ad (141 bytes)\n; \n; 5 xrefs:\n; > GJScaleControl::loadValues @ 0x1401a3aa9\n; > GJScaleControl::ccTouchMoved @ 0x1401a427e\n; > GJScaleControl::onApplyScale @ 0x1401a4a6a\n; > GJScaleControl::onApplyScale @ 0x1401a4c1b\n; > <???> @ 0x140919a9c\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, 0x1401a4520\nsub     rsp, 40h                                                       ; +0x2, 0x1401a4522\nmov     rax, [rcx+1E8h]                                                ; +0x6, 0x1401a4526\nmov     rbx, rcx                                                       ; +0xd, 0x1401a452d\ntest    rax, rax                                                       ; +0x10, 0x1401a4530\njz      short loc_1401A45A7                                            ; +0x13, 0x1401a4533\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x15, 0x1401a4535\njnz     short loc_1401A45A7                                            ; +0x1c, 0x1401a453c\ncvtss2sd xmm1, xmm1                                                    ; +0x1e, 0x1401a453e\nlea     rcx, a2f; \"%.2f\"                                               ; +0x22, 0x1401a4542\nmovq    rdx, xmm1                                                      ; +0x29, 0x1401a4549\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2e, 0x1401a454e\nmov     rcx, rax                                                       ; +0x34, 0x1401a4554\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x37, 0x1401a4557\nxor     ecx, ecx                                                       ; +0x3d, 0x1401a455d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x1401a455f\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x42, 0x1401a4562\nmov     [rsp+48h+var_18], rcx                                          ; +0x47, 0x1401a4567\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x1401a456c\nmov     [rsp+48h+var_10], rcx                                          ; +0x53, 0x1401a4573\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x1401a4578\ninc     r8                                                             ; +0x60, 0x1401a4580\ncmp     [rax+r8], cl                                                   ; +0x63, 0x1401a4583\njnz     short loc_1401A4580                                            ; +0x67, 0x1401a4587\nmov     rdx, rax                                                       ; +0x69, 0x1401a4589\nlea     rcx, [rsp+48h+var_28]                                          ; +0x6c, 0x1401a458c\ncall    sub_14003D230                                                  ; +0x71, 0x1401a4591\nmov     rcx, [rbx+1E8h]                                                ; +0x76, 0x1401a4596\nlea     rdx, [rsp+48h+var_28]                                          ; +0x7d, 0x1401a459d\ncall    CCTextInputNode__setString                                     ; +0x82, 0x1401a45a2\nadd     rsp, 40h                                                       ; +0x87, 0x1401a45a7\npop     rbx                                                            ; +0x8b, 0x1401a45ab\nretn                                                                   ; +0x8c, 0x1401a45ac", "xrefs": ["GJScaleControl::loadValues @ 0x1401a3aa9", "GJScaleControl::ccTouchMoved @ 0x1401a427e", "GJScaleControl::onApplyScale @ 0x1401a4a6a", "GJScaleControl::onApplyScale @ 0x1401a4c1b", "<???> @ 0x140919a9c"], "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"}