{"type": "func", "start": 5373168560, "end": 5373169284, "name": "SetupRandTriggerPopup::textChanged", "pseudocode": "// \n// SetupRandTriggerPopup::textChanged from 0x140440bb0 to 0x140440e84 (724 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405ec2e8\n// > <???> @ 0x1406a2034\n// > <???> @ 0x1406a2044\n// > <???> @ 0x1406da370\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 SetupRandTriggerPopup::textChanged(SetupRandTriggerPopup *a1, CCTextInputNode *a2)\n{\n  const char *v4; // rax\n  size_t v5; // r8\n  const char *v6; // rcx\n  int v7; // eax\n  unsigned __int64 v8; // rdx\n  char *v9; // rcx\n  const char *v10; // rax\n  size_t v11; // r8\n  const char *v12; // rcx\n  int v13; // eax\n  unsigned __int64 v14; // rdx\n  char *v15; // rcx\n  const char *v16; // rax\n  size_t v17; // r8\n  const char *v18; // rcx\n  float v19; // xmm6_4\n  char *v20; // rcx\n  cocos2d::CCString *v21; // rax\n  char *String[2]; // [rsp+28h] [rbp-38h] BYREF\n  __int128 v23; // [rsp+38h] [rbp-28h]\n\n  if ( !LOBYTE(a1->m_fSkewX) )\n  {\n    if ( a2->getTag(a2) == 3 )\n    {\n      v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n      *(_OWORD *)String = 0;\n      v5 = -1;\n      v23 = 0;\n      do\n        ++v5;\n      while ( v4[v5] );\n      sub_14003A930(String, v4, v5);\n      v6 = (const char *)String;\n      if ( *((_QWORD *)&v23 + 1) > 0xFu )\n        v6 = String[0];\n      v7 = atoi(v6);\n      v8 = *((_QWORD *)&v23 + 1);\n      LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable) = v7;\n      if ( v8 > 0xF )\n      {\n        v9 = String[0];\n        if ( v8 + 1 >= 0x1000 )\n        {\n          v9 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F )\n            invalid_parameter_noinfo_noreturn();\n        }\n        j_j_free(v9);\n      }\n      SetupRandTriggerPopup::updateTargetID((SetupRandTriggerPopup *)((char *)a1 - 632));\n      SetupTriggerPopup::updateEditorLabel((SetupRandTriggerPopup *)((char *)a1 - 632));\n    }\n    else if ( a2->getTag(a2) == 5 )\n    {\n      v10 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n      *(_OWORD *)String = 0;\n      v11 = -1;\n      v23 = 0;\n      do\n        ++v11;\n      while ( v10[v11] );\n      sub_14003A930(String, v10, v11);\n      v12 = (const char *)String;\n      if ( *((_QWORD *)&v23 + 1) > 0xFu )\n        v12 = String[0];\n      v13 = atoi(v12);\n      v14 = *((_QWORD *)&v23 + 1);\n      HIDWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable) = v13;\n      if ( v14 > 0xF )\n      {\n        v15 = String[0];\n        if ( v14 + 1 >= 0x1000 )\n        {\n          v15 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v15 - 8) > 0x1F )\n            invalid_parameter_noinfo_noreturn();\n        }\n        j_j_free(v15);\n      }\n      SetupRandTriggerPopup::updateTargetID2((SetupRandTriggerPopup *)((char *)a1 - 632));\n      SetupTriggerPopup::updateEditorLabel((SetupRandTriggerPopup *)((char *)a1 - 632));\n    }\n    else if ( a2->getTag(a2) == 4 )\n    {\n      v16 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n      *(_OWORD *)String = 0;\n      v17 = -1;\n      v23 = 0;\n      do\n        ++v17;\n      while ( v16[v17] );\n      sub_14003A930(String, v16, v17);\n      v18 = (const char *)String;\n      if ( *((_QWORD *)&v23 + 1) > 0xFu )\n        v18 = String[0];\n      v19 = atof(v18);\n      if ( *((_QWORD *)&v23 + 1) > 0xFu )\n      {\n        v20 = String[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 )\n        {\n          v20 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v20 - 8) > 0x1F )\n            invalid_parameter_noinfo_noreturn();\n        }\n        j_j_free(v20);\n      }\n      v21 = cocos2d::CCString::createWithFormat(\"%.04f\", v19);\n      *(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = cocos2d::CCString::floatValue(v21);\n      GJFollowCommandLayer::updateDuration((__int64)&a1[-1].cocos2d::CCMouseDelegate);\n    }\n  }\n}", "assembly": "; \n; SetupRandTriggerPopup::textChanged from 0x140440bb0 to 0x140440e84 (724 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405ec2e8\n; > <???> @ 0x1406a2034\n; > <???> @ 0x1406a2044\n; > <???> @ 0x1406da370\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-8+arg_10], rbx                                            ; +0x0, 0x140440bb0\nmov     [rsp-8+arg_18], rdi                                            ; +0x5, 0x140440bb5\npush    rbp                                                            ; +0xa, 0x140440bba\nmov     rbp, rsp                                                       ; +0xb, 0x140440bbb\nsub     rsp, 60h                                                       ; +0xe, 0x140440bbe\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140440bc2\nxor     rax, rsp                                                       ; +0x19, 0x140440bc9\nmov     [rbp+var_18], rax                                              ; +0x1c, 0x140440bcc\ncmp     byte ptr [rcx+54h], 0                                          ; +0x20, 0x140440bd0\nmov     rbx, rdx                                                       ; +0x24, 0x140440bd4\nmov     rdi, rcx                                                       ; +0x27, 0x140440bd7\njnz     loc_140440E66                                                  ; +0x2a, 0x140440bda\nmov     rax, [rdx]                                                     ; +0x30, 0x140440be0\nmov     rcx, rdx                                                       ; +0x33, 0x140440be3\ncall    qword ptr [rax+38h]                                            ; +0x36, 0x140440be6\ncmp     eax, 3                                                         ; +0x39, 0x140440be9\njnz     loc_140440CAB                                                  ; +0x3c, 0x140440bec\nmov     rcx, [rbx+228h]                                                ; +0x42, 0x140440bf2\nadd     rcx, 258h                                                      ; +0x49, 0x140440bf9\nmov     rax, [rcx]                                                     ; +0x50, 0x140440c00\ncall    qword ptr [rax+8]                                              ; +0x53, 0x140440c03\nxorps   xmm0, xmm0                                                     ; +0x56, 0x140440c06\nxorps   xmm1, xmm1                                                     ; +0x59, 0x140440c09\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x5c, 0x140440c0c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x60, 0x140440c10\nmovdqu  [rbp+var_28], xmm1                                             ; +0x67, 0x140440c17\nnop     dword ptr [rax+00h]                                            ; +0x6c, 0x140440c1c\ninc     r8                                                             ; +0x70, 0x140440c20\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x140440c23\njnz     short loc_140440C20                                            ; +0x78, 0x140440c28\nmov     rdx, rax                                                       ; +0x7a, 0x140440c2a\nlea     rcx, [rbp+String]                                              ; +0x7d, 0x140440c2d\ncall    sub_14003A930                                                  ; +0x81, 0x140440c31\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0x86, 0x140440c36\nlea     rcx, [rbp+String]                                              ; +0x8b, 0x140440c3b\ncmova   rcx, [rbp+String]; String                                      ; +0x8f, 0x140440c3f\ncall    cs:atoi                                                        ; +0x94, 0x140440c44\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0x9a, 0x140440c4a\nmov     [rdi+158h], eax                                                ; +0x9e, 0x140440c4e\ncmp     rdx, 0Fh                                                       ; +0xa4, 0x140440c54\njbe     short loc_140440C8E                                            ; +0xa8, 0x140440c58\nmov     rcx, [rbp+String]; Block                                       ; +0xaa, 0x140440c5a\ninc     rdx                                                            ; +0xae, 0x140440c5e\nmov     rax, rcx                                                       ; +0xb1, 0x140440c61\ncmp     rdx, 1000h                                                     ; +0xb4, 0x140440c64\njb      short loc_140440C89                                            ; +0xbb, 0x140440c6b\nmov     rcx, [rcx-8]                                                   ; +0xbd, 0x140440c6d\nadd     rdx, 27h ; '''                                                 ; +0xc1, 0x140440c71\nsub     rax, rcx                                                       ; +0xc5, 0x140440c75\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xc8, 0x140440c78\ncmp     rax, 1Fh                                                       ; +0xcc, 0x140440c7c\njbe     short loc_140440C89                                            ; +0xd0, 0x140440c80\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xd2, 0x140440c82\ndb 0CCh                                                                ; +0xd8, 0x140440c88\ncall    j_j_free                                                       ; +0xd9, 0x140440c89\nlea     rcx, [rdi-278h]                                                ; +0xde, 0x140440c8e\ncall    SetupRandTriggerPopup__updateTargetID                          ; +0xe5, 0x140440c95\nlea     rcx, [rdi-278h]                                                ; +0xea, 0x140440c9a\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xf1, 0x140440ca1\njmp     loc_140440E66                                                  ; +0xf6, 0x140440ca6\nmov     rax, [rbx]                                                     ; +0xfb, 0x140440cab\nmov     rcx, rbx                                                       ; +0xfe, 0x140440cae\ncall    qword ptr [rax+38h]                                            ; +0x101, 0x140440cb1\ncmp     eax, 5                                                         ; +0x104, 0x140440cb4\njnz     loc_140440D7B                                                  ; +0x107, 0x140440cb7\nmov     rcx, [rbx+228h]                                                ; +0x10d, 0x140440cbd\nadd     rcx, 258h                                                      ; +0x114, 0x140440cc4\nmov     rax, [rcx]                                                     ; +0x11b, 0x140440ccb\ncall    qword ptr [rax+8]                                              ; +0x11e, 0x140440cce\nxorps   xmm0, xmm0                                                     ; +0x121, 0x140440cd1\nxorps   xmm1, xmm1                                                     ; +0x124, 0x140440cd4\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x127, 0x140440cd7\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x12b, 0x140440cdb\nmovdqu  [rbp+var_28], xmm1                                             ; +0x132, 0x140440ce2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x137, 0x140440ce7\ninc     r8                                                             ; +0x140, 0x140440cf0\ncmp     byte ptr [rax+r8], 0                                           ; +0x143, 0x140440cf3\njnz     short loc_140440CF0                                            ; +0x148, 0x140440cf8\nmov     rdx, rax                                                       ; +0x14a, 0x140440cfa\nlea     rcx, [rbp+String]                                              ; +0x14d, 0x140440cfd\ncall    sub_14003A930                                                  ; +0x151, 0x140440d01\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0x156, 0x140440d06\nlea     rcx, [rbp+String]                                              ; +0x15b, 0x140440d0b\ncmova   rcx, [rbp+String]; String                                      ; +0x15f, 0x140440d0f\ncall    cs:atoi                                                        ; +0x164, 0x140440d14\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0x16a, 0x140440d1a\nmov     [rdi+15Ch], eax                                                ; +0x16e, 0x140440d1e\ncmp     rdx, 0Fh                                                       ; +0x174, 0x140440d24\njbe     short loc_140440D5E                                            ; +0x178, 0x140440d28\nmov     rcx, [rbp+String]; Block                                       ; +0x17a, 0x140440d2a\ninc     rdx                                                            ; +0x17e, 0x140440d2e\nmov     rax, rcx                                                       ; +0x181, 0x140440d31\ncmp     rdx, 1000h                                                     ; +0x184, 0x140440d34\njb      short loc_140440D59                                            ; +0x18b, 0x140440d3b\nmov     rcx, [rcx-8]                                                   ; +0x18d, 0x140440d3d\nadd     rdx, 27h ; '''                                                 ; +0x191, 0x140440d41\nsub     rax, rcx                                                       ; +0x195, 0x140440d45\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x198, 0x140440d48\ncmp     rax, 1Fh                                                       ; +0x19c, 0x140440d4c\njbe     short loc_140440D59                                            ; +0x1a0, 0x140440d50\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1a2, 0x140440d52\ndb 0CCh                                                                ; +0x1a8, 0x140440d58\ncall    j_j_free                                                       ; +0x1a9, 0x140440d59\nlea     rcx, [rdi-278h]                                                ; +0x1ae, 0x140440d5e\ncall    SetupRandTriggerPopup__updateTargetID2                         ; +0x1b5, 0x140440d65\nlea     rcx, [rdi-278h]                                                ; +0x1ba, 0x140440d6a\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x1c1, 0x140440d71\njmp     loc_140440E66                                                  ; +0x1c6, 0x140440d76\nmov     rax, [rbx]                                                     ; +0x1cb, 0x140440d7b\nmov     rcx, rbx                                                       ; +0x1ce, 0x140440d7e\ncall    qword ptr [rax+38h]                                            ; +0x1d1, 0x140440d81\ncmp     eax, 4                                                         ; +0x1d4, 0x140440d84\njnz     loc_140440E66                                                  ; +0x1d7, 0x140440d87\nmov     rcx, [rbx+228h]                                                ; +0x1dd, 0x140440d8d\nadd     rcx, 258h                                                      ; +0x1e4, 0x140440d94\nmovaps  [rsp+60h+var_10], xmm6                                         ; +0x1eb, 0x140440d9b\nmov     rax, [rcx]                                                     ; +0x1f0, 0x140440da0\ncall    qword ptr [rax+8]                                              ; +0x1f3, 0x140440da3\nxorps   xmm0, xmm0                                                     ; +0x1f6, 0x140440da6\nxorps   xmm1, xmm1                                                     ; +0x1f9, 0x140440da9\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x1fc, 0x140440dac\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x200, 0x140440db0\nmovdqu  [rbp+var_28], xmm1                                             ; +0x207, 0x140440db7\nnop     dword ptr [rax+00h]                                            ; +0x20c, 0x140440dbc\ninc     r8                                                             ; +0x210, 0x140440dc0\ncmp     byte ptr [rax+r8], 0                                           ; +0x213, 0x140440dc3\njnz     short loc_140440DC0                                            ; +0x218, 0x140440dc8\nmov     rdx, rax                                                       ; +0x21a, 0x140440dca\nlea     rcx, [rbp+String]                                              ; +0x21d, 0x140440dcd\ncall    sub_14003A930                                                  ; +0x221, 0x140440dd1\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0x226, 0x140440dd6\nlea     rcx, [rbp+String]                                              ; +0x22b, 0x140440ddb\ncmova   rcx, [rbp+String]; String                                      ; +0x22f, 0x140440ddf\ncall    cs:atof                                                        ; +0x234, 0x140440de4\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0x23a, 0x140440dea\nxorps   xmm6, xmm6                                                     ; +0x23e, 0x140440dee\ncvtsd2ss xmm6, xmm0                                                    ; +0x241, 0x140440df1\ncmp     rdx, 0Fh                                                       ; +0x245, 0x140440df5\njbe     short loc_140440E2F                                            ; +0x249, 0x140440df9\nmov     rcx, [rbp+String]; Block                                       ; +0x24b, 0x140440dfb\ninc     rdx                                                            ; +0x24f, 0x140440dff\nmov     rax, rcx                                                       ; +0x252, 0x140440e02\ncmp     rdx, 1000h                                                     ; +0x255, 0x140440e05\njb      short loc_140440E2A                                            ; +0x25c, 0x140440e0c\nmov     rcx, [rcx-8]                                                   ; +0x25e, 0x140440e0e\nadd     rdx, 27h ; '''                                                 ; +0x262, 0x140440e12\nsub     rax, rcx                                                       ; +0x266, 0x140440e16\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x269, 0x140440e19\ncmp     rax, 1Fh                                                       ; +0x26d, 0x140440e1d\njbe     short loc_140440E2A                                            ; +0x271, 0x140440e21\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x273, 0x140440e23\nalign 2                                                                ; +0x279, 0x140440e29\ncall    j_j_free                                                       ; +0x27a, 0x140440e2a\ncvtps2pd xmm1, xmm6                                                    ; +0x27f, 0x140440e2f\nlea     rcx, a04f; \"%.04f\"                                             ; +0x282, 0x140440e32\nmovq    rdx, xmm1                                                      ; +0x289, 0x140440e39\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x28e, 0x140440e3e\nmov     rcx, rax                                                       ; +0x294, 0x140440e44\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x297, 0x140440e47\nlea     rcx, [rdi-278h]                                                ; +0x29d, 0x140440e4d\nmovss   dword ptr [rdi+140h], xmm0                                     ; +0x2a4, 0x140440e54\ncall    GJFollowCommandLayer__updateDuration; Merged with: GJFollowCommandLayer::updateDuration, GJPFollowCommandLayer::updateDuration, SetupCameraOffsetTrigger::updateDuration, SetupMGTrigger::updateDuration, SetupRandTriggerPopup::updateChance, SetupShakePopup::updateDuration ; +0x2ac, 0x140440e5c\nmovaps  xmm6, [rsp+60h+var_10]                                         ; +0x2b1, 0x140440e61\nmov     rcx, [rbp+var_18]                                              ; +0x2b6, 0x140440e66\nxor     rcx, rsp; StackCookie                                          ; +0x2ba, 0x140440e6a\ncall    __security_check_cookie                                        ; +0x2bd, 0x140440e6d\nlea     r11, [rsp+60h+var_s0]                                          ; +0x2c2, 0x140440e72\nmov     rbx, [r11+20h]                                                 ; +0x2c7, 0x140440e77\nmov     rdi, [r11+28h]                                                 ; +0x2cb, 0x140440e7b\nmov     rsp, r11                                                       ; +0x2cf, 0x140440e7f\npop     rbp                                                            ; +0x2d2, 0x140440e82\nretn                                                                   ; +0x2d3, 0x140440e83", "xrefs": ["<???> @ 0x1405ec2e8", "<???> @ 0x1406a2034", "<???> @ 0x1406a2044", "<???> @ 0x1406da370"], "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"}