{"type": "func", "start": 5373068544, "end": 5373068708, "name": "SetupMGTrigger::updateValueYLabel", "pseudocode": "// \n// SetupMGTrigger::updateValueYLabel from 0x140428500 to 0x1404285a4 (164 bytes)\n// \n// 3 xrefs:\n// > SetupMGTrigger::init @ 0x1404281e8\n// > SetupMGTrigger::sliderYChanged @ 0x1404284eb\n// > <???> @ 0x1406d980c\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 SetupMGTrigger::updateValueYLabel(SetupMGTrigger *a1)\n{\n  int m_offsetY; // ecx\n  char *CString; // rax\n  float v4; // xmm0_4\n  cocos2d::CCString *v5; // 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  a1->m_disableTextDelegate = 1;\n  m_offsetY = a1->m_offsetY;\n  CString = byte_140518980;\n  if ( m_offsetY != -99999 )\n  {\n    v4 = floorf((float)m_offsetY / 3.0);\n    v5 = cocos2d::CCString::createWithFormat(\"%i\", (int)v4);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n  }\n  v7 = 0;\n  v8 = 0;\n  v6 = -1;\n  v9 = 0;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003A930(&v7, CString, v6);\n  CCTextInputNode::setString((__int64)a1->m_offsetYInput, &v7);\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; SetupMGTrigger::updateValueYLabel from 0x140428500 to 0x1404285a4 (164 bytes)\n; \n; 3 xrefs:\n; > SetupMGTrigger::init @ 0x1404281e8\n; > SetupMGTrigger::sliderYChanged @ 0x1404284eb\n; > <???> @ 0x1406d980c\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\npush    rbx                                                            ; +0x0, 0x140428500\nsub     rsp, 40h                                                       ; +0x2, 0x140428502\nmov     rbx, rcx                                                       ; +0x6, 0x140428506\nmov     byte ptr [rcx+2CCh], 1                                         ; +0x9, 0x140428509\nmov     ecx, [rcx+3F0h]                                                ; +0x10, 0x140428510\nlea     rax, byte_140518980                                            ; +0x16, 0x140428516\ncmp     ecx, 0FFFE7961h                                                ; +0x1d, 0x14042851d\njz      short loc_140428553                                            ; +0x23, 0x140428523\nmovd    xmm0, ecx                                                      ; +0x25, 0x140428525\ncvtdq2ps xmm0, xmm0                                                    ; +0x29, 0x140428529\ndivss   xmm0, cs:flt_140622F28; X                                      ; +0x2c, 0x14042852c\ncall    floorf                                                         ; +0x34, 0x140428534\ncvttss2si edx, xmm0                                                    ; +0x39, 0x140428539\nlea     rcx, aI_11; \"%i\"                                               ; +0x3d, 0x14042853d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x44, 0x140428544\nmov     rcx, rax                                                       ; +0x4a, 0x14042854a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4d, 0x14042854d\nxor     ecx, ecx                                                       ; +0x53, 0x140428553\nxorps   xmm0, xmm0                                                     ; +0x55, 0x140428555\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x58, 0x140428558\nmov     [rsp+48h+var_18], rcx                                          ; +0x5d, 0x14042855d\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x62, 0x140428562\nmov     [rsp+48h+var_10], rcx                                          ; +0x69, 0x140428569\nxchg    ax, ax                                                         ; +0x6e, 0x14042856e\ninc     r8                                                             ; +0x70, 0x140428570\ncmp     [rax+r8], cl                                                   ; +0x73, 0x140428573\njnz     short loc_140428570                                            ; +0x77, 0x140428577\nmov     rdx, rax                                                       ; +0x79, 0x140428579\nlea     rcx, [rsp+48h+var_28]                                          ; +0x7c, 0x14042857c\ncall    sub_14003A930                                                  ; +0x81, 0x140428581\nmov     rcx, [rbx+3E0h]                                                ; +0x86, 0x140428586\nlea     rdx, [rsp+48h+var_28]                                          ; +0x8d, 0x14042858d\ncall    CCTextInputNode__setString                                     ; +0x92, 0x140428592\nmov     byte ptr [rbx+2CCh], 0                                         ; +0x97, 0x140428597\nadd     rsp, 40h                                                       ; +0x9e, 0x14042859e\npop     rbx                                                            ; +0xa2, 0x1404285a2\nretn                                                                   ; +0xa3, 0x1404285a3", "xrefs": ["SetupMGTrigger::init @ 0x1404281e8", "SetupMGTrigger::sliderYChanged @ 0x1404284eb", "<???> @ 0x1406d980c"], "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"}