{"type": "func", "start": 5371272672, "end": 5371272870, "name": "GJFollowCommandLayer::updateDurLabel", "pseudocode": "// \n// GJFollowCommandLayer::updateDurLabel from 0x140271de0 to 0x140271ea6 (198 bytes)\n// \n// 6 xrefs:\n// > GJFollowCommandLayer::init @ 0x140270e79\n// > GJPFollowCommandLayer::init @ 0x14028af61\n// > SetupCameraOffsetTrigger::init @ 0x140415bab\n// > SetupMGTrigger::init @ 0x140427987\n// > SetupShakePopup::init @ 0x1404559ed\n// > <???> @ 0x1406d0ddc\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\n// Merged with: GJFollowCommandLayer::updateDurLabel, GJPFollowCommandLayer::updateDurLabel, SetupMGTrigger::updateDurLabel, SetupShakePopup::updateDurLabel\nvoid __fastcall GJFollowCommandLayer::updateDurLabel(__int64 a1, char a2)\n{\n  float v2; // xmm3_4\n  const char *CString; // rax\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  v2 = *(float *)(a1 + 952);\n  CString = \"Mixed\";\n  *(_BYTE *)(a1 + 716) = 1;\n  if ( v2 != -99999.0 )\n  {\n    if ( a2 || (float)(v2 - (float)(int)v2) != 0.0 )\n      v5 = cocos2d::CCString::createWithFormat(\"%.02f\", v2);\n    else\n      v5 = cocos2d::CCString::createWithFormat(\"%i\", (int)v2);\n    CString = 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(*(_QWORD *)(a1 + 936), &v7);\n  *(_BYTE *)(a1 + 716) = 0;\n}", "assembly": "; \n; GJFollowCommandLayer::updateDurLabel from 0x140271de0 to 0x140271ea6 (198 bytes)\n; \n; 6 xrefs:\n; > GJFollowCommandLayer::init @ 0x140270e79\n; > GJPFollowCommandLayer::init @ 0x14028af61\n; > SetupCameraOffsetTrigger::init @ 0x140415bab\n; > SetupMGTrigger::init @ 0x140427987\n; > SetupShakePopup::init @ 0x1404559ed\n; > <???> @ 0x1406d0ddc\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, 0x140271de0\nsub     rsp, 40h                                                       ; +0x2, 0x140271de2\nmovss   xmm3, dword ptr [rcx+3B8h]                                     ; +0x6, 0x140271de6\nlea     rax, aMixed; \"Mixed\"                                           ; +0xe, 0x140271dee\nucomiss xmm3, cs:dword_140623AFC                                       ; +0x15, 0x140271df5\nmov     rbx, rcx                                                       ; +0x1c, 0x140271dfc\nmov     byte ptr [rcx+2CCh], 1                                         ; +0x1f, 0x140271dff\njp      short loc_140271E0A                                            ; +0x26, 0x140271e06\njz      short loc_140271E57                                            ; +0x28, 0x140271e08\ntest    dl, dl                                                         ; +0x2a, 0x140271e0a\njnz     short loc_140271E39                                            ; +0x2c, 0x140271e0c\ncvttss2si edx, xmm3                                                    ; +0x2e, 0x140271e0e\nmovaps  xmm2, xmm3                                                     ; +0x32, 0x140271e12\nxorps   xmm1, xmm1                                                     ; +0x35, 0x140271e15\nmovd    xmm0, edx                                                      ; +0x38, 0x140271e18\ncvtdq2ps xmm0, xmm0                                                    ; +0x3c, 0x140271e1c\nsubss   xmm2, xmm0                                                     ; +0x3f, 0x140271e1f\nucomiss xmm2, xmm1                                                     ; +0x43, 0x140271e23\njp      short loc_140271E39                                            ; +0x46, 0x140271e26\njnz     short loc_140271E39                                            ; +0x48, 0x140271e28\nlea     rcx, aI_11; \"%i\"                                               ; +0x4a, 0x140271e2a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x51, 0x140271e31\njmp     short loc_140271E4E                                            ; +0x57, 0x140271e37\ncvtps2pd xmm1, xmm3                                                    ; +0x59, 0x140271e39\nlea     rcx, a02f; \"%.02f\"                                             ; +0x5c, 0x140271e3c\nmovq    rdx, xmm1                                                      ; +0x63, 0x140271e43\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x68, 0x140271e48\nmov     rcx, rax                                                       ; +0x6e, 0x140271e4e\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x71, 0x140271e51\nxor     ecx, ecx                                                       ; +0x77, 0x140271e57\nxorps   xmm0, xmm0                                                     ; +0x79, 0x140271e59\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x7c, 0x140271e5c\nmov     [rsp+48h+var_18], rcx                                          ; +0x81, 0x140271e61\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x86, 0x140271e66\nmov     [rsp+48h+var_10], rcx                                          ; +0x8d, 0x140271e6d\ninc     r8                                                             ; +0x92, 0x140271e72\ncmp     [rax+r8], cl                                                   ; +0x95, 0x140271e75\njnz     short loc_140271E72                                            ; +0x99, 0x140271e79\nmov     rdx, rax                                                       ; +0x9b, 0x140271e7b\nlea     rcx, [rsp+48h+var_28]                                          ; +0x9e, 0x140271e7e\ncall    sub_14003A930                                                  ; +0xa3, 0x140271e83\nmov     rcx, [rbx+3A8h]                                                ; +0xa8, 0x140271e88\nlea     rdx, [rsp+48h+var_28]                                          ; +0xaf, 0x140271e8f\ncall    CCTextInputNode__setString                                     ; +0xb4, 0x140271e94\nmov     byte ptr [rbx+2CCh], 0                                         ; +0xb9, 0x140271e99\nadd     rsp, 40h                                                       ; +0xc0, 0x140271ea0\npop     rbx                                                            ; +0xc4, 0x140271ea4\nretn                                                                   ; +0xc5, 0x140271ea5", "xrefs": ["GJFollowCommandLayer::init @ 0x140270e79", "GJPFollowCommandLayer::init @ 0x14028af61", "SetupCameraOffsetTrigger::init @ 0x140415bab", "SetupMGTrigger::init @ 0x140427987", "SetupShakePopup::init @ 0x1404559ed", "<???> @ 0x1406d0ddc"], "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"}