{"type": "func", "start": 4299646800, "end": 4299646985, "name": "CreateParticlePopup::textChanged", "pseudocode": "// \n// CreateParticlePopup::textChanged from 0x100476750 to 0x100476809 (185 bytes)\n// \n// 2 xrefs:\n// > sub_100476810 @ 0x10047681c\n// > <???> @ 0x10093a4c8\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 __fastcall CreateParticlePopup::textChanged(CreateParticlePopup *a1, CCTextInputNode *a2)\n{\n  double v2; // xmm0_8\n  double v3; // xmm0_8\n  char *v4; // r14\n  float v5; // xmm0_4\n  gjParticleValue v6; // eax\n  gjParticleValue v7; // eax\n  _QWORD v8[2]; // [rsp-40h] [rbp-40h] BYREF\n  char *v9; // [rsp-30h] [rbp-30h]\n  double v10; // [rsp-28h] [rbp-28h]\n\n  if ( !a1->m_disableTextDelegate )\n  {\n    CCTextInputNode::getString(v8, (__int64)a2, v2);\n    if ( (v8[0] & 1) != 0 )\n    {\n      v4 = v9;\n      v10 = atof(v9);\n      operator delete(v4);\n      v3 = v10;\n    }\n    else\n    {\n      v3 = atof((const char *)v8 + 1);\n    }\n    v5 = v3;\n    *(float *)&v10 = v5;\n    if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 5 )\n      LODWORD(v10) = fmaxf(1.0, *(float *)&v10);\n    v6 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n    CreateParticlePopup::updateParticleValueForType(a1, *(float *)&v10, v6, nullptr);\n    v7 = ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n    CreateParticlePopup::updateSliderForType(a1, v7);\n  }\n}", "assembly": "; \n; CreateParticlePopup::textChanged from 0x100476750 to 0x100476809 (185 bytes)\n; \n; 2 xrefs:\n; > sub_100476810 @ 0x10047681c\n; > <???> @ 0x10093a4c8\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\ncmp     byte ptr [rdi+2A8h], 0                                         ; +0x0, 0x100476750\njnz     locret_100476808                                               ; +0x7, 0x100476757\npush    rbp                                                            ; +0xd, 0x10047675d\nmov     rbp, rsp                                                       ; +0xe, 0x10047675e\npush    r15                                                            ; +0x11, 0x100476761\npush    r14                                                            ; +0x13, 0x100476763\npush    rbx                                                            ; +0x15, 0x100476765\nsub     rsp, 28h                                                       ; +0x16, 0x100476766\nmov     rbx, rsi                                                       ; +0x1a, 0x10047676a\nmov     r15, rdi                                                       ; +0x1d, 0x10047676d\nlea     rdi, [rbp-38h]                                                 ; +0x20, 0x100476770\ncall    CCTextInputNode__getString                                     ; +0x24, 0x100476774\ntest    byte ptr [rbp-38h], 1                                          ; +0x29, 0x100476779\njnz     short loc_10047678A                                            ; +0x2d, 0x10047677d\nlea     rdi, [rbp-37h]; char *                                         ; +0x2f, 0x10047677f\ncall    _atof                                                          ; +0x33, 0x100476783\njmp     short loc_1004767A8                                            ; +0x38, 0x100476788\nmov     r14, [rbp-28h]                                                 ; +0x3a, 0x10047678a\nmov     rdi, r14; char *                                               ; +0x3e, 0x10047678e\ncall    _atof                                                          ; +0x41, 0x100476791\nmovsd   qword ptr [rbp-20h], xmm0                                      ; +0x46, 0x100476796\nmov     rdi, r14; __p                                                  ; +0x4b, 0x10047679b\ncall    __ZdlPv; operator delete(void *)                               ; +0x4e, 0x10047679e\nmovsd   xmm0, qword ptr [rbp-20h]                                      ; +0x53, 0x1004767a3\ncvtsd2ss xmm0, xmm0                                                    ; +0x58, 0x1004767a8\nmovss   dword ptr [rbp-20h], xmm0                                      ; +0x5c, 0x1004767ac\nmov     rax, [rbx]                                                     ; +0x61, 0x1004767b1\nmov     rdi, rbx                                                       ; +0x64, 0x1004767b4\ncall    qword ptr [rax+40h]                                            ; +0x67, 0x1004767b7\ncmp     eax, 5                                                         ; +0x6a, 0x1004767ba\njnz     short loc_1004767D1                                            ; +0x6d, 0x1004767bd\nmovss   xmm0, cs:alpha                                                 ; +0x6f, 0x1004767bf\nmaxss   xmm0, dword ptr [rbp-20h]                                      ; +0x77, 0x1004767c7\nmovss   dword ptr [rbp-20h], xmm0                                      ; +0x7c, 0x1004767cc\nmov     rax, [rbx]                                                     ; +0x81, 0x1004767d1\nmov     rdi, rbx                                                       ; +0x84, 0x1004767d4\ncall    qword ptr [rax+40h]                                            ; +0x87, 0x1004767d7\nmov     rdi, r15                                                       ; +0x8a, 0x1004767da\nmovss   xmm0, dword ptr [rbp-20h]                                      ; +0x8d, 0x1004767dd\nmov     esi, eax                                                       ; +0x92, 0x1004767e2\nxor     edx, edx                                                       ; +0x94, 0x1004767e4\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x96, 0x1004767e6\nmov     rax, [rbx]                                                     ; +0x9b, 0x1004767eb\nmov     rdi, rbx                                                       ; +0x9e, 0x1004767ee\ncall    qword ptr [rax+40h]                                            ; +0xa1, 0x1004767f1\nmov     rdi, r15                                                       ; +0xa4, 0x1004767f4\nmov     esi, eax                                                       ; +0xa7, 0x1004767f7\ncall    CreateParticlePopup__updateSliderForType                       ; +0xa9, 0x1004767f9\nadd     rsp, 28h                                                       ; +0xae, 0x1004767fe\npop     rbx                                                            ; +0xb2, 0x100476802\npop     r14                                                            ; +0xb3, 0x100476803\npop     r15                                                            ; +0xb5, 0x100476805\npop     rbp                                                            ; +0xb7, 0x100476807\nretn                                                                   ; +0xb8, 0x100476808", "xrefs": ["sub_100476810 @ 0x10047681c", "<???> @ 0x10093a4c8"], "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"}