{"type": "func", "start": 5373414112, "end": 5373414533, "name": "SetupTriggerPopup::updateEaseLabel", "pseudocode": "// \n// SetupTriggerPopup::updateEaseLabel from 0x14047cae0 to 0x14047cc85 (421 bytes)\n// \n// 3 xrefs:\n// > SetupTriggerPopup::createEasingControls @ 0x14047ca8a\n// > SetupTriggerPopup::onEase @ 0x14047cfd1\n// > <???> @ 0x1406db864\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// Hidden C++ exception states: #wind=1\nvoid SetupTriggerPopup::updateEaseLabel(SetupTriggerPopup *a1)\n{\n  unsigned __int64 v2; // rdi\n  EasingType m_easingType; // edx\n  __int64 v4; // rbx\n  void **v5; // rdx\n  void *v6; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-58h] BYREF\n  __int128 v8; // [rsp+30h] [rbp-48h]\n  _BYTE v9[32]; // [rsp+40h] [rbp-38h] BYREF\n\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v8 = 5;\n  v2 = 15;\n  *((_QWORD *)&v8 + 1) = 15;\n  LODWORD(Block[0]) = *(_DWORD *)\"Mixed\";\n  WORD2(Block[0]) = (unsigned __int8)aMixed[4];\n  m_easingType = a1->m_easingType;\n  if ( m_easingType != -99999 )\n  {\n    v4 = GameToolbox::easeToText((__int64)v9, m_easingType);\n    if ( Block != (void **)v4 )\n    {\n      *(_QWORD *)&v8 = 0;\n      *((_QWORD *)&v8 + 1) = 15;\n      LOBYTE(Block[0]) = 0;\n      *(_OWORD *)Block = *(_OWORD *)v4;\n      v8 = *(_OWORD *)(v4 + 16);\n      *(_QWORD *)(v4 + 16) = 0;\n      *(_QWORD *)(v4 + 24) = 15;\n      *(_BYTE *)v4 = 0;\n    }\n    sub_14003A830((__int64)v9);\n    v2 = *((_QWORD *)&v8 + 1);\n  }\n  v5 = Block;\n  if ( v2 > 0xF )\n    v5 = (void **)Block[0];\n  a1->m_easingLabel->setString(&a1->m_easingLabel->cocos2d::CCLabelProtocol, (const char *)v5);\n  cocos2d::CCLabelBMFont::limitLabelWidth(\n    a1->m_easingLabel,\n    a1->m_easingControlScale * 150.0,\n    a1->m_easingControlScale * 0.69999999,\n    0.0);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v6);\n  }\n}", "assembly": "; \n; SetupTriggerPopup::updateEaseLabel from 0x14047cae0 to 0x14047cc85 (421 bytes)\n; \n; 3 xrefs:\n; > SetupTriggerPopup::createEasingControls @ 0x14047ca8a\n; > SetupTriggerPopup::onEase @ 0x14047cfd1\n; > <???> @ 0x1406db864\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, 0x14047cae0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14047cae5\npush    rdi                                                            ; +0xa, 0x14047caea\nsub     rsp, 70h                                                       ; +0xb, 0x14047caeb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14047caef\nxor     rax, rsp                                                       ; +0x16, 0x14047caf6\nmov     [rsp+78h+var_18], rax                                          ; +0x19, 0x14047caf9\nmov     rsi, rcx                                                       ; +0x1e, 0x14047cafe\nxorps   xmm0, xmm0                                                     ; +0x21, 0x14047cb01\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x24, 0x14047cb04\nmov     qword ptr [rsp+78h+var_48], 5                                  ; +0x29, 0x14047cb09\nmov     edi, 0Fh                                                       ; +0x32, 0x14047cb12\nmov     qword ptr [rsp+78h+var_48+8], rdi                              ; +0x37, 0x14047cb17\nmov     eax, dword ptr cs:aMixed; \"Mixed\"                              ; +0x3c, 0x14047cb1c\nmov     dword ptr [rsp+78h+Block], eax                                 ; +0x42, 0x14047cb22\nmovzx   eax, byte ptr cs:aMixed+4; \"d\"                                 ; +0x46, 0x14047cb26\nmov     byte ptr [rsp+78h+Block+4], al                                 ; +0x4d, 0x14047cb2d\nmov     byte ptr [rsp+78h+Block+5], 0                                  ; +0x51, 0x14047cb31\nmov     edx, [rcx+310h]                                                ; +0x56, 0x14047cb36\ncmp     edx, 0FFFE7961h                                                ; +0x5c, 0x14047cb3c\njz      loc_14047CBD8                                                  ; +0x62, 0x14047cb42\nlea     rcx, [rsp+78h+var_38]                                          ; +0x68, 0x14047cb48\ncall    GameToolbox__easeToText                                        ; +0x6d, 0x14047cb4d\nmov     rbx, rax                                                       ; +0x72, 0x14047cb52\nlea     rax, [rsp+78h+Block]                                           ; +0x75, 0x14047cb55\ncmp     rax, rbx                                                       ; +0x7a, 0x14047cb5a\njz      short loc_14047CBC9                                            ; +0x7d, 0x14047cb5d\nmov     rdx, qword ptr [rsp+78h+var_48+8]                              ; +0x7f, 0x14047cb5f\ncmp     rdx, rdi                                                       ; +0x84, 0x14047cb64\njbe     short loc_14047CB9E                                            ; +0x87, 0x14047cb67\ninc     rdx                                                            ; +0x89, 0x14047cb69\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x8c, 0x14047cb6c\nmov     rax, rcx                                                       ; +0x91, 0x14047cb71\ncmp     rdx, 1000h                                                     ; +0x94, 0x14047cb74\njb      short loc_14047CB99                                            ; +0x9b, 0x14047cb7b\nadd     rdx, 27h ; '''                                                 ; +0x9d, 0x14047cb7d\nmov     rcx, [rcx-8]                                                   ; +0xa1, 0x14047cb81\nsub     rax, rcx                                                       ; +0xa5, 0x14047cb85\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa8, 0x14047cb88\ncmp     rax, 1Fh                                                       ; +0xac, 0x14047cb8c\njbe     short loc_14047CB99                                            ; +0xb0, 0x14047cb90\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb2, 0x14047cb92\ndb 0CCh                                                                ; +0xb8, 0x14047cb98\ncall    j_j_free                                                       ; +0xb9, 0x14047cb99\nxor     eax, eax                                                       ; +0xbe, 0x14047cb9e\nmov     qword ptr [rsp+78h+var_48], rax                                ; +0xc0, 0x14047cba0\nmov     qword ptr [rsp+78h+var_48+8], rdi                              ; +0xc5, 0x14047cba5\nmov     byte ptr [rsp+78h+Block], al                                   ; +0xca, 0x14047cbaa\nmovups  xmm0, xmmword ptr [rbx]                                        ; +0xce, 0x14047cbae\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0xd1, 0x14047cbb1\nmovups  xmm1, xmmword ptr [rbx+10h]                                    ; +0xd6, 0x14047cbb6\nmovups  [rsp+78h+var_48], xmm1                                         ; +0xda, 0x14047cbba\nmov     [rbx+10h], rax                                                 ; +0xdf, 0x14047cbbf\nmov     [rbx+18h], rdi                                                 ; +0xe3, 0x14047cbc3\nmov     [rbx], al                                                      ; +0xe7, 0x14047cbc7\nlea     rcx, [rsp+78h+var_38]                                          ; +0xe9, 0x14047cbc9\ncall    sub_14003A830                                                  ; +0xee, 0x14047cbce\nmov     rdi, qword ptr [rsp+78h+var_48+8]                              ; +0xf3, 0x14047cbd3\nlea     rdx, [rsp+78h+Block]                                           ; +0xf8, 0x14047cbd8\ncmp     rdi, 0Fh                                                       ; +0xfd, 0x14047cbdd\ncmova   rdx, [rsp+78h+Block]                                           ; +0x101, 0x14047cbe1\nmov     rcx, [rsi+2F8h]                                                ; +0x107, 0x14047cbe7\nadd     rcx, 168h                                                      ; +0x10e, 0x14047cbee\nmov     rax, [rcx]                                                     ; +0x115, 0x14047cbf5\ncall    qword ptr [rax]                                                ; +0x118, 0x14047cbf8\nmovss   xmm1, dword ptr [rsi+35Ch]                                     ; +0x11a, 0x14047cbfa\nmovaps  xmm2, xmm1                                                     ; +0x122, 0x14047cc02\nmulss   xmm2, cs:dword_140622B74                                       ; +0x125, 0x14047cc05\nmulss   xmm1, cs:dword_140623358                                       ; +0x12d, 0x14047cc0d\nxorps   xmm3, xmm3                                                     ; +0x135, 0x14047cc15\nmov     rcx, [rsi+2F8h]                                                ; +0x138, 0x14047cc18\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x13f, 0x14047cc1f\nnop                                                                    ; +0x145, 0x14047cc25\nmov     rdx, qword ptr [rsp+78h+var_48+8]                              ; +0x146, 0x14047cc26\ncmp     rdx, 0Fh                                                       ; +0x14b, 0x14047cc2b\njbe     short loc_14047CC66                                            ; +0x14f, 0x14047cc2f\ninc     rdx                                                            ; +0x151, 0x14047cc31\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x154, 0x14047cc34\nmov     rax, rcx                                                       ; +0x159, 0x14047cc39\ncmp     rdx, 1000h                                                     ; +0x15c, 0x14047cc3c\njb      short loc_14047CC61                                            ; +0x163, 0x14047cc43\nadd     rdx, 27h ; '''                                                 ; +0x165, 0x14047cc45\nmov     rcx, [rcx-8]                                                   ; +0x169, 0x14047cc49\nsub     rax, rcx                                                       ; +0x16d, 0x14047cc4d\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x170, 0x14047cc50\ncmp     rax, 1Fh                                                       ; +0x174, 0x14047cc54\njbe     short loc_14047CC61                                            ; +0x178, 0x14047cc58\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x17a, 0x14047cc5a\ndb 0CCh                                                                ; +0x180, 0x14047cc60\ncall    j_j_free                                                       ; +0x181, 0x14047cc61\nmov     rcx, [rsp+78h+var_18]                                          ; +0x186, 0x14047cc66\nxor     rcx, rsp; StackCookie                                          ; +0x18b, 0x14047cc6b\ncall    __security_check_cookie                                        ; +0x18e, 0x14047cc6e\nlea     r11, [rsp+78h+var_8]                                           ; +0x193, 0x14047cc73\nmov     rbx, [r11+18h]                                                 ; +0x198, 0x14047cc78\nmov     rsi, [r11+20h]                                                 ; +0x19c, 0x14047cc7c\nmov     rsp, r11                                                       ; +0x1a0, 0x14047cc80\npop     rdi                                                            ; +0x1a3, 0x14047cc83\nretn                                                                   ; +0x1a4, 0x14047cc84", "xrefs": ["SetupTriggerPopup::createEasingControls @ 0x14047ca8a", "SetupTriggerPopup::onEase @ 0x14047cfd1", "<???> @ 0x1406db864"], "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"}