{"type": "func", "start": 5372996496, "end": 5372996968, "name": "SetupCameraOffsetTrigger::updateEasingRateLabel", "pseudocode": "// \n// SetupCameraOffsetTrigger::updateEasingRateLabel from 0x140416b90 to 0x140416d68 (472 bytes)\n// \n// 4 xrefs:\n// > SetupCameraOffsetTrigger::init @ 0x140415e55\n// > SetupCameraOffsetTrigger::valuePopupClosed @ 0x140416b7e\n// > SetupMGTrigger::init @ 0x140427c47\n// > <???> @ 0x1406d8f54\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: SetupCameraOffsetTrigger::updateEasingRateLabel, SetupMGTrigger::updateEasingRateLabel\n// Hidden C++ exception states: #wind=1\nvoid __fastcall SetupCameraOffsetTrigger::updateEasingRateLabel(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // rax\n  size_t v4; // r8\n  void **v5; // rax\n  _QWORD *v6; // rsi\n  void **v7; // rdx\n  void *v8; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int64 v10; // [rsp+30h] [rbp-28h]\n  unsigned __int64 v11; // [rsp+38h] [rbp-20h]\n\n  v2 = cocos2d::CCString::createWithFormat(\"%.02f\", *(float *)(a1 + 972));\n  CString = cocos2d::CCString::getCString(v2);\n  *(_OWORD *)Block = 0;\n  v10 = 0;\n  v11 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003A930(Block, CString, v4);\n  if ( *(float *)(a1 + 972) == -99999.0 )\n  {\n    if ( v11 )\n    {\n      v5 = Block;\n      if ( v11 > 0xF )\n        v5 = (void **)Block[0];\n      v10 = 1;\n      *(_WORD *)v5 = 45;\n    }\n    else\n    {\n      v6 = sub_14003AA10(0x10u);\n      v10 = 1;\n      v11 = 15;\n      *(_WORD *)v6 = 45;\n      Block[0] = v6;\n    }\n  }\n  v7 = Block;\n  if ( v11 > 0xF )\n    v7 = (void **)Block[0];\n  (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 984) + 360LL))(*(_QWORD *)(a1 + 984) + 360LL, v7);\n  if ( v11 > 0xF )\n  {\n    v8 = Block[0];\n    if ( v11 + 1 >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; SetupCameraOffsetTrigger::updateEasingRateLabel from 0x140416b90 to 0x140416d68 (472 bytes)\n; \n; 4 xrefs:\n; > SetupCameraOffsetTrigger::init @ 0x140415e55\n; > SetupCameraOffsetTrigger::valuePopupClosed @ 0x140416b7e\n; > SetupMGTrigger::init @ 0x140427c47\n; > <???> @ 0x1406d8f54\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_8], rbx                                               ; +0x0, 0x140416b90\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140416b95\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x140416b9a\npush    rdi                                                            ; +0xf, 0x140416b9f\nsub     rsp, 50h                                                       ; +0x10, 0x140416ba0\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x140416ba4\nxor     rax, rsp                                                       ; +0x1b, 0x140416bab\nmov     [rsp+58h+var_18], rax                                          ; +0x1e, 0x140416bae\nmov     rbp, rcx                                                       ; +0x23, 0x140416bb3\nmovss   xmm1, dword ptr [rcx+3CCh]                                     ; +0x26, 0x140416bb6\ncvtps2pd xmm1, xmm1                                                    ; +0x2e, 0x140416bbe\nmovq    rdx, xmm1                                                      ; +0x31, 0x140416bc1\nlea     rcx, a02f; \"%.02f\"                                             ; +0x36, 0x140416bc6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3d, 0x140416bcd\nmov     rcx, rax                                                       ; +0x43, 0x140416bd3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x46, 0x140416bd6\nxorps   xmm0, xmm0                                                     ; +0x4c, 0x140416bdc\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x4f, 0x140416bdf\nxor     ecx, ecx                                                       ; +0x54, 0x140416be4\nmov     [rsp+58h+var_28], rcx                                          ; +0x56, 0x140416be6\nmov     [rsp+58h+var_20], rcx                                          ; +0x5b, 0x140416beb\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x60, 0x140416bf0\ninc     r8                                                             ; +0x67, 0x140416bf7\ncmp     [rax+r8], cl                                                   ; +0x6a, 0x140416bfa\njnz     short loc_140416BF7                                            ; +0x6e, 0x140416bfe\nmov     rdx, rax                                                       ; +0x70, 0x140416c00\nlea     rcx, [rsp+58h+Block]                                           ; +0x73, 0x140416c03\ncall    sub_14003A930                                                  ; +0x78, 0x140416c08\nnop                                                                    ; +0x7d, 0x140416c0d\nmovss   xmm0, dword ptr [rbp+3CCh]                                     ; +0x7e, 0x140416c0e\nucomiss xmm0, cs:dword_140623AFC                                       ; +0x86, 0x140416c16\njp      loc_140416CE1                                                  ; +0x8d, 0x140416c1d\njnz     loc_140416CE1                                                  ; +0x93, 0x140416c23\nmov     rbx, [rsp+58h+var_20]                                          ; +0x99, 0x140416c29\ncmp     rbx, 1                                                         ; +0x9e, 0x140416c2e\njb      short loc_140416C56                                            ; +0xa2, 0x140416c32\nlea     rax, [rsp+58h+Block]                                           ; +0xa4, 0x140416c34\ncmp     rbx, 0Fh                                                       ; +0xa9, 0x140416c39\ncmova   rax, [rsp+58h+Block]                                           ; +0xad, 0x140416c3d\nmov     [rsp+58h+var_28], 1                                            ; +0xb3, 0x140416c43\nmov     word ptr [rax], 2Dh ; '-'                                      ; +0xbc, 0x140416c4c\njmp     loc_140416CE1                                                  ; +0xc1, 0x140416c51\nmov     rcx, rbx                                                       ; +0xc6, 0x140416c56\nshr     rcx, 1                                                         ; +0xc9, 0x140416c59\nmov     rdi, 7FFFFFFFFFFFFFFFh                                         ; +0xcc, 0x140416c5c\nmov     rax, rdi                                                       ; +0xd6, 0x140416c66\nsub     rax, rcx                                                       ; +0xd9, 0x140416c69\ncmp     rbx, rax                                                       ; +0xdc, 0x140416c6c\nja      short loc_140416C81                                            ; +0xdf, 0x140416c6f\nlea     rax, [rbx+rcx]                                                 ; +0xe1, 0x140416c71\nmov     edi, 0Fh                                                       ; +0xe5, 0x140416c75\ncmp     rax, rdi                                                       ; +0xea, 0x140416c7a\ncmova   rdi, rax                                                       ; +0xed, 0x140416c7d\nlea     rcx, [rdi+1]                                                   ; +0xf1, 0x140416c81\ncall    sub_14003AA10                                                  ; +0xf5, 0x140416c85\nmov     rsi, rax                                                       ; +0xfa, 0x140416c8a\nmov     [rsp+58h+var_28], 1                                            ; +0xfd, 0x140416c8d\nmov     [rsp+58h+var_20], rdi                                          ; +0x106, 0x140416c96\nmov     word ptr [rax], 2Dh ; '-'                                      ; +0x10b, 0x140416c9b\ncmp     rbx, 0Fh                                                       ; +0x110, 0x140416ca0\njbe     short loc_140416CDC                                            ; +0x114, 0x140416ca4\nlea     rdx, [rbx+1]                                                   ; +0x116, 0x140416ca6\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x11a, 0x140416caa\nmov     rax, rcx                                                       ; +0x11f, 0x140416caf\ncmp     rdx, 1000h                                                     ; +0x122, 0x140416cb2\njb      short loc_140416CD7                                            ; +0x129, 0x140416cb9\nadd     rdx, 27h ; '''                                                 ; +0x12b, 0x140416cbb\nmov     rcx, [rcx-8]                                                   ; +0x12f, 0x140416cbf\nsub     rax, rcx                                                       ; +0x133, 0x140416cc3\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x136, 0x140416cc6\ncmp     rax, 1Fh                                                       ; +0x13a, 0x140416cca\njbe     short loc_140416CD7                                            ; +0x13e, 0x140416cce\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x140, 0x140416cd0\ndb 0CCh                                                                ; +0x146, 0x140416cd6\ncall    j_j_free                                                       ; +0x147, 0x140416cd7\nmov     [rsp+58h+Block], rsi                                           ; +0x14c, 0x140416cdc\nlea     rdx, [rsp+58h+Block]                                           ; +0x151, 0x140416ce1\ncmp     [rsp+58h+var_20], 0Fh                                          ; +0x156, 0x140416ce6\ncmova   rdx, [rsp+58h+Block]                                           ; +0x15c, 0x140416cec\nmov     rcx, [rbp+3D8h]                                                ; +0x162, 0x140416cf2\nadd     rcx, 168h                                                      ; +0x169, 0x140416cf9\nmov     rax, [rcx]                                                     ; +0x170, 0x140416d00\ncall    qword ptr [rax]                                                ; +0x173, 0x140416d03\nnop                                                                    ; +0x175, 0x140416d05\nmov     rdx, [rsp+58h+var_20]                                          ; +0x176, 0x140416d06\ncmp     rdx, 0Fh                                                       ; +0x17b, 0x140416d0b\njbe     short loc_140416D46                                            ; +0x17f, 0x140416d0f\ninc     rdx                                                            ; +0x181, 0x140416d11\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x184, 0x140416d14\nmov     rax, rcx                                                       ; +0x189, 0x140416d19\ncmp     rdx, 1000h                                                     ; +0x18c, 0x140416d1c\njb      short loc_140416D41                                            ; +0x193, 0x140416d23\nadd     rdx, 27h ; '''                                                 ; +0x195, 0x140416d25\nmov     rcx, [rcx-8]                                                   ; +0x199, 0x140416d29\nsub     rax, rcx                                                       ; +0x19d, 0x140416d2d\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x1a0, 0x140416d30\ncmp     rax, 1Fh                                                       ; +0x1a4, 0x140416d34\njbe     short loc_140416D41                                            ; +0x1a8, 0x140416d38\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1aa, 0x140416d3a\ndb 0CCh                                                                ; +0x1b0, 0x140416d40\ncall    j_j_free                                                       ; +0x1b1, 0x140416d41\nmov     rcx, [rsp+58h+var_18]                                          ; +0x1b6, 0x140416d46\nxor     rcx, rsp; StackCookie                                          ; +0x1bb, 0x140416d4b\ncall    __security_check_cookie                                        ; +0x1be, 0x140416d4e\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x1c3, 0x140416d53\nmov     rbp, [rsp+58h+arg_10]                                          ; +0x1c8, 0x140416d58\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x1cd, 0x140416d5d\nadd     rsp, 50h                                                       ; +0x1d2, 0x140416d62\npop     rdi                                                            ; +0x1d6, 0x140416d66\nretn                                                                   ; +0x1d7, 0x140416d67", "xrefs": ["SetupCameraOffsetTrigger::init @ 0x140415e55", "SetupCameraOffsetTrigger::valuePopupClosed @ 0x140416b7e", "SetupMGTrigger::init @ 0x140427c47", "<???> @ 0x1406d8f54"], "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"}