{"type": "func", "start": 10906704, "end": 10907088, "name": "ConfigureValuePopup::textChanged", "pseudocode": "// \n// ConfigureValuePopup::textChanged from 0xa66c50 to 0xa66dd0 (384 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'ConfigureValuePopup::textChanged @ 0xa66dd4\n// > <???> @ 0x102a48\n// > <???> @ 0x1491078\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:17 +0000\n// \n\n__int64 __fastcall ConfigureValuePopup::textChanged(ConfigureValuePopup *this, CCTextInputNode *a2)\n{\n  int v3; // w0\n  char *v4; // x0\n  const char *v5; // x1\n  float v6; // s8\n  cocos2d::CCString *v7; // x0\n  float v8; // s0\n  Slider *v9; // x0\n  float v10; // s0\n  char *v12; // x21\n  float v13; // s1\n  float v14; // s2\n  float v15; // s3\n  __int64 v16[2]; // [xsp+30h] [xbp+30h] BYREF\n  char *v17; // [xsp+40h] [xbp+40h]\n\n  if ( !*((_BYTE *)this + 677) )\n  {\n    v3 = *((_DWORD *)this + 165);\n    *((_BYTE *)this + 676) = 1;\n    if ( v3 == 1 )\n    {\n      CCTextInputNode::getString(a2, v16);\n      if ( (v16[0] & 1) != 0 )\n      {\n        v12 = v17;\n        *((float *)this + 166) = (float)atoi(v17);\n        operator delete(v12);\n        v13 = *((float *)this + 166);\n      }\n      else\n      {\n        v13 = (float)atoi((const char *)v16 + 1);\n      }\n      v14 = *((float *)this + 167);\n      v8 = *((float *)this + 168);\n      v15 = v13;\n      if ( v14 >= v13 )\n        v15 = *((float *)this + 167);\n      if ( v8 > v15 )\n      {\n        v8 = v13;\n        if ( v14 >= v13 )\n          v8 = *((float *)this + 167);\n      }\n    }\n    else\n    {\n      CCTextInputNode::getString(a2, v16);\n      v4 = (char *)v16 + 1;\n      if ( (v16[0] & 1) != 0 )\n        v4 = v17;\n      v6 = atof(v4);\n      if ( (v16[0] & 1) != 0 )\n        operator delete(v17);\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v5, v6);\n      cocos2d::CCString::floatValue(v7);\n    }\n    v9 = *((Slider **)this + 87);\n    *((float *)this + 166) = v8;\n    if ( v9 )\n    {\n      v10 = (float)(*((float *)this + 166) - *((float *)this + 167))\n          / (float)(*((float *)this + 168) - *((float *)this + 167));\n      if ( v10 < 1.0 )\n      {\n        if ( v10 <= 0.0 )\n        {\n          Slider::setValue(v9, 0.0);\n          return _stack_chk_guard;\n        }\n      }\n      else\n      {\n        v10 = 1.0;\n      }\n      Slider::setValue(v9, v10);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; ConfigureValuePopup::textChanged from 0xa66c50 to 0xa66dd0 (384 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'ConfigureValuePopup::textChanged @ 0xa66dd4\n; > <???> @ 0x102a48\n; > <???> @ 0x1491078\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:17 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xa66c50\nMOV             X29, SP                                                ; +0x4, 0xa66c54\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xa66c58\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa66c5c\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0xa66c60\nSTR             D8, [SP,#0x50+var_28]                                  ; +0x14, 0xa66c64\nMOV             X19, X0                                                ; +0x18, 0xa66c68\nLDRB            W2, [X0,#0x2A5]                                        ; +0x1c, 0xa66c6c\nLDR             X3, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xa66c70\nLDR             X3, [X3]                                               ; +0x24, 0xa66c74\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x28, 0xa66c78\nCBNZ            W2, loc_A66D14                                         ; +0x2c, 0xa66c7c\nLDR             W0, [X0,#0x294]                                        ; +0x30, 0xa66c80\nMOV             W2, #1                                                 ; +0x34, 0xa66c84\nSTRB            W2, [X19,#0x2A4]                                       ; +0x38, 0xa66c88\nADD             X21, X29, #0x50+var_20                                 ; +0x3c, 0xa66c8c\nCMP             W0, #1                                                 ; +0x40, 0xa66c90\nMOV             X8, X21                                                ; +0x44, 0xa66c94\nMOV             X0, X1; this                                           ; +0x48, 0xa66c98\nB.EQ            loc_A66D3C                                             ; +0x4c, 0xa66c9c\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x50, 0xa66ca0\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0x54, 0xa66ca4\nADD             X0, X21, #1                                            ; +0x58, 0xa66ca8\nTBZ             W1, #0, loc_A66CB4                                     ; +0x5c, 0xa66cac\nLDR             X0, [X29,#0x50+var_10]; char *                         ; +0x60, 0xa66cb0\nBL              .atof                                                  ; +0x64, 0xa66cb4\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x68, 0xa66cb8\nFCVT            S8, D0                                                 ; +0x6c, 0xa66cbc\nTBNZ            W0, #0, loc_A66DB0                                     ; +0x70, 0xa66cc0\nFCVT            D0, S8                                                 ; +0x74, 0xa66cc4\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x78, 0xa66cc8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x80, 0xa66cd0\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x84, 0xa66cd4\nLDR             X0, [X19,#0x2B8]; this                                 ; +0x88, 0xa66cd8\nSTR             S0, [X19,#0x298]                                       ; +0x8c, 0xa66cdc\nCBZ             X0, loc_A66D14                                         ; +0x90, 0xa66ce0\nLDR             S2, [X19,#0x29C]                                       ; +0x94, 0xa66ce4\nLDR             S1, [X19,#0x298]                                       ; +0x98, 0xa66ce8\nLDR             S0, [X19,#0x2A0]                                       ; +0x9c, 0xa66cec\nFSUB            S1, S1, S2                                             ; +0xa0, 0xa66cf0\nFSUB            S0, S0, S2                                             ; +0xa4, 0xa66cf4\nFMOV            S2, #1.0                                               ; +0xa8, 0xa66cf8\nFDIV            S0, S1, S0                                             ; +0xac, 0xa66cfc\nFCMPE           S0, S2                                                 ; +0xb0, 0xa66d00\nB.MI            loc_A66D9C                                             ; +0xb4, 0xa66d04\nB.MI            loc_A66D10                                             ; +0xb8, 0xa66d08\nFMOV            S0, S2; float                                          ; +0xbc, 0xa66d0c\nBL              _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0xc0, 0xa66d10\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc4, 0xa66d14\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xc8, 0xa66d18\nLDR             X0, [X20]                                              ; +0xcc, 0xa66d1c\nCMP             X1, X0                                                 ; +0xd0, 0xa66d20\nB.NE            loc_A66DCC                                             ; +0xd4, 0xa66d24\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xd8, 0xa66d28\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xdc, 0xa66d2c\nLDR             D8, [SP,#0x50+var_28]                                  ; +0xe0, 0xa66d30\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xe4, 0xa66d34\nRET                                                                    ; +0xe8, 0xa66d38\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xec, 0xa66d3c\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0xf0, 0xa66d40\nTBZ             W0, #0, loc_A66DBC                                     ; +0xf4, 0xa66d44\nLDR             X21, [X29,#0x50+var_10]                                ; +0xf8, 0xa66d48\nMOV             X0, X21; char *                                        ; +0xfc, 0xa66d4c\nBL              .atoi                                                  ; +0x100, 0xa66d50\nSCVTF           S0, W0                                                 ; +0x104, 0xa66d54\nMOV             X0, X21; void *                                        ; +0x108, 0xa66d58\nSTR             S0, [X19,#0x298]                                       ; +0x10c, 0xa66d5c\nBL              _ZdlPv; operator delete(void *)                        ; +0x110, 0xa66d60\nLDR             S1, [X19,#0x298]                                       ; +0x114, 0xa66d64\nLDR             S2, [X19,#0x29C]                                       ; +0x118, 0xa66d68\nLDR             S0, [X19,#0x2A0]                                       ; +0x11c, 0xa66d6c\nFCMPE           S2, S1                                                 ; +0x120, 0xa66d70\nFMOV            S3, S1                                                 ; +0x124, 0xa66d74\nB.MI            loc_A66D80                                             ; +0x128, 0xa66d78\nFMOV            S3, S2                                                 ; +0x12c, 0xa66d7c\nFCMPE           S0, S3                                                 ; +0x130, 0xa66d80\nB.LE            loc_A66CD8                                             ; +0x134, 0xa66d84\nFCMPE           S2, S1                                                 ; +0x138, 0xa66d88\nFMOV            S0, S1                                                 ; +0x13c, 0xa66d8c\nB.MI            loc_A66CD8                                             ; +0x140, 0xa66d90\nFMOV            S0, S2                                                 ; +0x144, 0xa66d94\nB               loc_A66CD8                                             ; +0x148, 0xa66d98\nFCMPE           S0, #0.0                                               ; +0x14c, 0xa66d9c\nB.GT            loc_A66D10                                             ; +0x150, 0xa66da0\nFMOV            S0, WZR; float                                         ; +0x154, 0xa66da4\nBL              _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x158, 0xa66da8\nB               loc_A66D14                                             ; +0x15c, 0xa66dac\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x160, 0xa66db0\nBL              _ZdlPv; operator delete(void *)                        ; +0x164, 0xa66db4\nB               loc_A66CC4                                             ; +0x168, 0xa66db8\nADD             X0, X21, #1; char *                                    ; +0x16c, 0xa66dbc\nBL              .atoi                                                  ; +0x170, 0xa66dc0\nSCVTF           S1, W0                                                 ; +0x174, 0xa66dc4\nB               loc_A66D68                                             ; +0x178, 0xa66dc8\nBL              .__stack_chk_fail                                      ; +0x17c, 0xa66dcc", "xrefs": ["`non-virtual thunk to'ConfigureValuePopup::textChanged @ 0xa66dd4", "<???> @ 0x102a48", "<???> @ 0x1491078"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}