{"type": "func", "start": 6708872, "end": 6709030, "name": "CreateParticlePopup::textChanged", "pseudocode": "// \n// CreateParticlePopup::textChanged from 0x665e88 to 0x665f26 (158 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0x665f30\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:55:40 +0000\n// \n\nint __fastcall CreateParticlePopup::textChanged(int this, CCTextInputNode *a2)\n{\n  cocos2d::CCArray **v2; // r6\n  char *v4; // r0\n  float v5; // s16\n  int v6; // r0\n  int v7; // r0\n  char v8; // [sp+0h] [bp-14h] BYREF\n  char v9; // [sp+1h] [bp-13h] BYREF\n  char *v10; // [sp+8h] [bp-Ch]\n\n  v2 = (cocos2d::CCArray **)this;\n  if ( !*(_BYTE *)(this + 540) )\n  {\n    CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);\n    if ( (v8 & 1) != 0 )\n      v4 = v10;\n    else\n      v4 = &v9;\n    v5 = atof(v4);\n    std::string::~string((int)&v8);\n    if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 5 && v5 < 1.0 )\n      v5 = 1.0;\n    v6 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);\n    CreateParticlePopup::updateParticleValueForType((unsigned int)v2, v5, v6, nullptr);\n    v7 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);\n    return CreateParticlePopup::updateSliderForType(v2, v7);\n  }\n  return this;\n}", "assembly": "; \n; CreateParticlePopup::textChanged from 0x665e88 to 0x665f26 (158 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::textChanged @ 0x665f30\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:55:40 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x665e88\nMOV             R6, R0                                                 ; +0x2, 0x665e8a\nVPUSH           {D8}                                                   ; +0x4, 0x665e8c\nMOV             R4, R1                                                 ; +0x8, 0x665e90\nLDR             R3, =(__stack_chk_guard_ptr - 0x665E98)                ; +0xa, 0x665e92\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x665e94\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x665e96\nSUB             SP, SP, #0x14                                          ; +0x10, 0x665e98\nLDR             R2, [R3]                                               ; +0x12, 0x665e9a\nMOV             R5, R3                                                 ; +0x14, 0x665e9c\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x16, 0x665e9e\nLDRB.W          R2, [R0,#0x21C]                                        ; +0x18, 0x665ea0\nCMP             R2, #0                                                 ; +0x1c, 0x665ea4\nBNE             loc_665F12                                             ; +0x1e, 0x665ea6\nMOV             R0, SP; this                                           ; +0x20, 0x665ea8\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x22, 0x665eaa\nLDRB.W          R3, [SP,#0x14+var_14]                                  ; +0x26, 0x665eae\nLSLS            R3, R3, #0x1F                                          ; +0x2a, 0x665eb2\nITE PL                                                                 ; +0x2c, 0x665eb4\nADDPL.W         R0, SP, #0x14+var_13                                   ; +0x2e, 0x665eb6\nLDRMI           R0, [SP,#0x14+var_C]; char *                           ; +0x32, 0x665eba\nBLX             atof                                                   ; +0x34, 0x665ebc\nVMOV            D7, R0, R1                                             ; +0x38, 0x665ec0\nMOV             R0, SP                                                 ; +0x3c, 0x665ec4\nVCVT.F32.F64    S16, D7                                                ; +0x3e, 0x665ec6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x42, 0x665eca\nLDR             R3, [R4]                                               ; +0x46, 0x665ece\nMOV             R0, R4                                                 ; +0x48, 0x665ed0\nLDR             R3, [R3,#0x20]                                         ; +0x4a, 0x665ed2\nBLX             R3                                                     ; +0x4c, 0x665ed4\nCMP             R0, #5                                                 ; +0x4e, 0x665ed6\nBNE             loc_665EEC                                             ; +0x50, 0x665ed8\nVMOV.F32        S15, #1.0                                              ; +0x52, 0x665eda\nVCMP.F32        S16, S15                                               ; +0x56, 0x665ede\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5a, 0x665ee2\nIT MI                                                                  ; +0x5e, 0x665ee6\nVMOVMI.F32      S16, S15                                               ; +0x60, 0x665ee8\nLDR             R3, [R4]                                               ; +0x64, 0x665eec\nMOV             R0, R4                                                 ; +0x66, 0x665eee\nLDR             R3, [R3,#0x20]                                         ; +0x68, 0x665ef0\nBLX             R3                                                     ; +0x6a, 0x665ef2\nVMOV            R1, S16                                                ; +0x6c, 0x665ef4\nMOVS            R3, #0                                                 ; +0x70, 0x665ef8\nMOV             R2, R0                                                 ; +0x72, 0x665efa\nMOV             R0, R6                                                 ; +0x74, 0x665efc\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x76, 0x665efe\nLDR             R3, [R4]                                               ; +0x7a, 0x665f02\nMOV             R0, R4                                                 ; +0x7c, 0x665f04\nLDR             R3, [R3,#0x20]                                         ; +0x7e, 0x665f06\nBLX             R3                                                     ; +0x80, 0x665f08\nMOV             R1, R0                                                 ; +0x82, 0x665f0a\nMOV             R0, R6                                                 ; +0x84, 0x665f0c\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x86, 0x665f0e\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x8a, 0x665f12\nLDR             R3, [R5]                                               ; +0x8c, 0x665f14\nCMP             R2, R3                                                 ; +0x8e, 0x665f16\nBEQ             loc_665F1E                                             ; +0x90, 0x665f18\nBLX             __stack_chk_fail                                       ; +0x92, 0x665f1a\nADD             SP, SP, #0x14                                          ; +0x96, 0x665f1e\nVPOP            {D8}                                                   ; +0x98, 0x665f20\nPOP             {R4-R7,PC}                                             ; +0x9c, 0x665f24", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::textChanged @ 0x665f30"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}