{"type": "func", "start": 6301872, "end": 6302182, "name": "ConfigureValuePopup::textChanged", "pseudocode": "// \n// ConfigureValuePopup::textChanged from 0x6028b0 to 0x6029e6 (310 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'ConfigureValuePopup::textChanged @ 0x6029f8\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:54:42 +0000\n// \n\nint __fastcall ConfigureValuePopup::textChanged(int this, CCTextInputNode *a2)\n{\n  int v2; // r4\n  char *v3; // r0\n  float v4; // s15\n  float v5; // s14\n  float v6; // s13\n  float v7; // s12\n  char *v8; // r0\n  double v9; // d8\n  const char *v10; // r1\n  cocos2d::CCString *v11; // r0\n  float v12; // s15\n  char v13; // [sp+0h] [bp-10h] BYREF\n  _BYTE v14[7]; // [sp+1h] [bp-Fh] BYREF\n  char *v15; // [sp+8h] [bp-8h]\n\n  v2 = this;\n  if ( !*(_BYTE *)(this + 537) )\n  {\n    *(_BYTE *)(this + 536) = 1;\n    if ( *(_DWORD *)(this + 520) == 1 )\n    {\n      CCTextInputNode::getString((CCTextInputNode *)&v13, (int)a2);\n      if ( (v13 & 1) != 0 )\n        v3 = v15;\n      else\n        v3 = v14;\n      *(float *)(v2 + 524) = (float)atoi(v3);\n      std::string::~string((int)&v13);\n      v4 = *(float *)(v2 + 528);\n      v5 = *(float *)(v2 + 524);\n      v6 = *(float *)(v2 + 532);\n      if ( v4 < v5 )\n        v7 = *(float *)(v2 + 524);\n      else\n        v7 = *(float *)(v2 + 528);\n      if ( v6 > v7 )\n      {\n        if ( v4 < v5 )\n          v6 = *(float *)(v2 + 524);\n        else\n          v6 = *(float *)(v2 + 528);\n      }\n      *(float *)(v2 + 524) = v6;\n    }\n    else\n    {\n      CCTextInputNode::getString((CCTextInputNode *)&v13, (int)a2);\n      if ( (v13 & 1) != 0 )\n        v8 = v15;\n      else\n        v8 = v14;\n      v9 = atof(v8);\n      std::string::~string((int)&v13);\n      *(float *)&v9 = v9;\n      v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v10, *(float *)&v9);\n      *(_DWORD *)(v2 + 524) = cocos2d::CCString::floatValue(v11);\n    }\n    this = *(_DWORD *)(v2 + 548);\n    if ( this )\n    {\n      v12 = (float)(*(float *)(v2 + 524) - *(float *)(v2 + 528)) / (float)(*(float *)(v2 + 532) - *(float *)(v2 + 528));\n      if ( v12 >= 1.0 )\n      {\n        v12 = 1.0;\n      }\n      else if ( v12 <= 0.0 )\n      {\n        v12 = 0.0;\n      }\n      return Slider::setValue((Slider *)this, v12);\n    }\n  }\n  return this;\n}", "assembly": "; \n; ConfigureValuePopup::textChanged from 0x6028b0 to 0x6029e6 (310 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'ConfigureValuePopup::textChanged @ 0x6029f8\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:54:42 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x6028b0\nMOV             R4, R0                                                 ; +0x2, 0x6028b2\nVPUSH           {D8}                                                   ; +0x4, 0x6028b4\nLDR             R3, =(__stack_chk_guard_ptr - 0x6028BE)                ; +0x8, 0x6028b8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xa, 0x6028ba\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xc, 0x6028bc\nSUB             SP, SP, #0x10                                          ; +0xe, 0x6028be\nLDR             R2, [R3]                                               ; +0x10, 0x6028c0\nMOV             R6, R3                                                 ; +0x12, 0x6028c2\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x14, 0x6028c4\nLDRB.W          R2, [R0,#0x219]                                        ; +0x16, 0x6028c6\nCMP             R2, #0                                                 ; +0x1a, 0x6028ca\nBNE.W           loc_6029D2                                             ; +0x1c, 0x6028cc\nMOVS            R3, #1                                                 ; +0x20, 0x6028d0\nSTRB.W          R3, [R0,#0x218]                                        ; +0x22, 0x6028d2\nLDR.W           R3, [R0,#0x208]                                        ; +0x26, 0x6028d6\nMOV             R0, SP; this                                           ; +0x2a, 0x6028da\nCMP             R3, #1                                                 ; +0x2c, 0x6028dc\nBNE             loc_602948                                             ; +0x2e, 0x6028de\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x30, 0x6028e0\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x34, 0x6028e4\nLSLS            R2, R3, #0x1F                                          ; +0x38, 0x6028e8\nITE PL                                                                 ; +0x3a, 0x6028ea\nADDPL.W         R0, SP, #0x10+var_F                                    ; +0x3c, 0x6028ec\nLDRMI           R0, [SP,#0x10+var_8]; char *                           ; +0x40, 0x6028f0\nBLX             atoi                                                   ; +0x42, 0x6028f2\nVMOV            S15, R0                                                ; +0x46, 0x6028f6\nMOV             R0, SP                                                 ; +0x4a, 0x6028fa\nVCVT.F32.S32    S15, S15                                               ; +0x4c, 0x6028fc\nVSTR            S15, [R4,#0x20C]                                       ; +0x50, 0x602900\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x602904\nVLDR            S15, [R4,#0x210]                                       ; +0x58, 0x602908\nVLDR            S14, [R4,#0x20C]                                       ; +0x5c, 0x60290c\nVLDR            S13, [R4,#0x214]                                       ; +0x60, 0x602910\nVCMPE.F32       S15, S14                                               ; +0x64, 0x602914\nVMRS            APSR_nzcv, FPSCR                                       ; +0x68, 0x602918\nITE PL                                                                 ; +0x6c, 0x60291c\nVMOVPL.F32      S12, S15                                               ; +0x6e, 0x60291e\nVMOVMI.F32      S12, S14                                               ; +0x72, 0x602922\nVCMPE.F32       S13, S12                                               ; +0x76, 0x602926\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7a, 0x60292a\nBLE             loc_602942                                             ; +0x7e, 0x60292e\nVCMPE.F32       S15, S14                                               ; +0x80, 0x602930\nVMRS            APSR_nzcv, FPSCR                                       ; +0x84, 0x602934\nITE PL                                                                 ; +0x88, 0x602938\nVMOVPL.F32      S13, S15                                               ; +0x8a, 0x60293a\nVMOVMI.F32      S13, S14                                               ; +0x8e, 0x60293e\nVSTR            S13, [R4,#0x20C]                                       ; +0x92, 0x602942\nB               loc_602984                                             ; +0x96, 0x602946\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x98, 0x602948\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x9c, 0x60294c\nLSLS            R3, R3, #0x1F                                          ; +0xa0, 0x602950\nITE PL                                                                 ; +0xa2, 0x602952\nADDPL.W         R0, SP, #0x10+var_F                                    ; +0xa4, 0x602954\nLDRMI           R0, [SP,#0x10+var_8]; char *                           ; +0xa8, 0x602958\nBLX             atof                                                   ; +0xaa, 0x60295a\nVMOV            D8, R0, R1                                             ; +0xae, 0x60295e\nMOV             R0, SP                                                 ; +0xb2, 0x602962\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xb4, 0x602964\nLDR             R0, =(a02f_0 - 0x602972); \"%.02f\"                      ; +0xb8, 0x602968\nVCVT.F32.F64    S16, D8                                                ; +0xba, 0x60296a\nADD             R0, PC; \"%.02f\"                                        ; +0xbe, 0x60296e\nVCVT.F64.F32    D7, S16                                                ; +0xc0, 0x602970\nVMOV            R2, R3, D7                                             ; +0xc4, 0x602974\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xc8, 0x602978\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0xcc, 0x60297c\nSTR.W           R0, [R4,#0x20C]                                        ; +0xd0, 0x602980\nLDR.W           R0, [R4,#0x224]; this                                  ; +0xd4, 0x602984\nCBZ             R0, loc_6029D2                                         ; +0xd8, 0x602988\nVLDR            S13, [R4,#0x210]                                       ; +0xda, 0x60298a\nVLDR            S14, [R4,#0x20C]                                       ; +0xde, 0x60298e\nVLDR            S15, [R4,#0x214]                                       ; +0xe2, 0x602992\nVSUB.F32        S14, S14, S13                                          ; +0xe6, 0x602996\nVSUB.F32        S15, S15, S13                                          ; +0xea, 0x60299a\nVDIV.F32        S15, S14, S15                                          ; +0xee, 0x60299e\nVMOV.F32        S14, #1.0                                              ; +0xf2, 0x6029a2\nVCMPE.F32       S15, S14                                               ; +0xf6, 0x6029a6\nVMRS            APSR_nzcv, FPSCR                                       ; +0xfa, 0x6029aa\nBPL             loc_6029C4                                             ; +0xfe, 0x6029ae\nVCMPE.F32       S15, #0.0                                              ; +0x100, 0x6029b0\nVLDR            S14, =0.0                                              ; +0x104, 0x6029b4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x108, 0x6029b8\nIT LE                                                                  ; +0x10c, 0x6029bc\nVMOVLE.F32      S15, S14                                               ; +0x10e, 0x6029be\nB               loc_6029CA                                             ; +0x112, 0x6029c2\nIT PL                                                                  ; +0x114, 0x6029c4\nVMOVPL.F32      S15, S14                                               ; +0x116, 0x6029c6\nVMOV            R1, S15; float                                         ; +0x11a, 0x6029ca\nBL              _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x11e, 0x6029ce\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x122, 0x6029d2\nLDR             R3, [R6]                                               ; +0x124, 0x6029d4\nCMP             R2, R3                                                 ; +0x126, 0x6029d6\nBEQ             loc_6029DE                                             ; +0x128, 0x6029d8\nBLX             __stack_chk_fail                                       ; +0x12a, 0x6029da\nADD             SP, SP, #0x10                                          ; +0x12e, 0x6029de\nVPOP            {D8}                                                   ; +0x130, 0x6029e0\nPOP             {R4-R6,PC}                                             ; +0x134, 0x6029e4", "xrefs": ["`non-virtual thunk to'ConfigureValuePopup::textChanged @ 0x6029f8"], "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"}