{"type": "func", "start": 6180688, "end": 6180952, "name": "ConfigureHSVWidget::textChanged", "pseudocode": "// \n// ConfigureHSVWidget::textChanged from 0x5e4f50 to 0x5e5058 (264 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x5e506c\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:19 +0000\n// \n\nint __fastcall ConfigureHSVWidget::textChanged(int this, CCTextInputNode *a2)\n{\n  int v2; // r6\n  int v4; // r0\n  int v5; // r1\n  int v6; // r2\n  int v7; // r3\n  char *v8; // r0\n  int v9; // r4\n  char *v10; // r0\n  double v11; // r0\n  cocos2d::CCString *v12; // r0\n  int v13; // r4\n  char *v14; // r0\n  double v15; // r0\n  cocos2d::CCString *v16; // r0\n  int v17; // r4\n  char v18; // [sp+0h] [bp-14h] BYREF\n  _BYTE v19[7]; // [sp+1h] [bp-13h] BYREF\n  char *v20; // [sp+8h] [bp-Ch]\n\n  v2 = this;\n  if ( !*(_BYTE *)(this + 317) )\n  {\n    v4 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);\n    switch ( v4 )\n    {\n      case 2:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        if ( (v18 & 1) != 0 )\n          v10 = v20;\n        else\n          v10 = v19;\n        v11 = atof(v10);\n        v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                     (cocos2d::CCString *)\"%.2f\",\n                                     (const char *)HIDWORD(v11),\n                                     v11);\n        v13 = cocos2d::CCString::floatValue(v12);\n        std::string::~string((int)&v18);\n        *(_DWORD *)(v2 + 296) = v13;\n        break;\n      case 3:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        if ( (v18 & 1) != 0 )\n          v14 = v20;\n        else\n          v14 = v19;\n        v15 = atof(v14);\n        v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                     (cocos2d::CCString *)\"%.2f\",\n                                     (const char *)HIDWORD(v15),\n                                     v15);\n        v17 = cocos2d::CCString::floatValue(v16);\n        std::string::~string((int)&v18);\n        *(_DWORD *)(v2 + 300) = v17;\n        break;\n      case 1:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        if ( (v18 & 1) != 0 )\n          v8 = v20;\n        else\n          v8 = v19;\n        v9 = atoi(v8);\n        std::string::~string((int)&v18);\n        v7 = -360;\n        if ( v9 > -360 )\n          v7 = v9;\n        if ( v7 >= 360 )\n          v7 = 360;\n        *(float *)(v2 + 292) = (float)v7;\n        break;\n    }\n    return ConfigureHSVWidget::updateSliders((ConfigureHSVWidget *)v2, v5, v6, *(float *)&v7);\n  }\n  return this;\n}", "assembly": "; \n; ConfigureHSVWidget::textChanged from 0x5e4f50 to 0x5e5058 (264 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x5e506c\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:19 +0000\n; \nLDR             R2, =(__stack_chk_guard_ptr - 0x5E4F58)                ; +0x0, 0x5e4f50\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x5e4f52\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x4, 0x5e4f54\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x6, 0x5e4f56\nSUB             SP, SP, #0x14                                          ; +0x8, 0x5e4f58\nMOV             R6, R0                                                 ; +0xa, 0x5e4f5a\nLDR             R3, [R2]                                               ; +0xc, 0x5e4f5c\nMOV             R4, R1                                                 ; +0xe, 0x5e4f5e\nMOV             R5, R2                                                 ; +0x10, 0x5e4f60\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x5e4f62\nLDRB.W          R3, [R0,#0x13D]                                        ; +0x14, 0x5e4f64\nCMP             R3, #0                                                 ; +0x18, 0x5e4f68\nBNE             loc_5E5048                                             ; +0x1a, 0x5e4f6a\nLDR             R3, [R1]                                               ; +0x1c, 0x5e4f6c\nMOV             R0, R1                                                 ; +0x1e, 0x5e4f6e\nLDR             R3, [R3,#0x20]                                         ; +0x20, 0x5e4f70\nBLX             R3                                                     ; +0x22, 0x5e4f72\nCMP             R0, #2                                                 ; +0x24, 0x5e4f74\nBEQ             loc_5E4FC2                                             ; +0x26, 0x5e4f76\nCMP             R0, #3                                                 ; +0x28, 0x5e4f78\nBEQ             loc_5E4FFC                                             ; +0x2a, 0x5e4f7a\nCMP             R0, #1                                                 ; +0x2c, 0x5e4f7c\nBNE             loc_5E5034                                             ; +0x2e, 0x5e4f7e\nMOV             R1, R4                                                 ; +0x30, 0x5e4f80\nMOV             R0, SP; this                                           ; +0x32, 0x5e4f82\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x34, 0x5e4f84\nLDRB.W          R3, [SP,#0x14+var_14]                                  ; +0x38, 0x5e4f88\nLSLS            R1, R3, #0x1F                                          ; +0x3c, 0x5e4f8c\nITE PL                                                                 ; +0x3e, 0x5e4f8e\nADDPL.W         R0, SP, #0x14+var_13                                   ; +0x40, 0x5e4f90\nLDRMI           R0, [SP,#0x14+var_C]; char *                           ; +0x44, 0x5e4f94\nBLX             atoi                                                   ; +0x46, 0x5e4f96\nMOV             R4, R0                                                 ; +0x4a, 0x5e4f9a\nMOV             R0, SP                                                 ; +0x4c, 0x5e4f9c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x5e4f9e\nLDR             R3, =0xFFFFFE98                                        ; +0x52, 0x5e4fa2\nCMP             R3, R4                                                 ; +0x54, 0x5e4fa4\nIT LT                                                                  ; +0x56, 0x5e4fa6\nMOVLT           R3, R4                                                 ; +0x58, 0x5e4fa8\nCMP.W           R3, #0x168                                             ; +0x5a, 0x5e4faa\nIT GE                                                                  ; +0x5e, 0x5e4fae\nMOVGE.W         R3, #0x168                                             ; +0x60, 0x5e4fb0\nVMOV            S15, R3                                                ; +0x64, 0x5e4fb4\nVCVT.F32.S32    S15, S15                                               ; +0x68, 0x5e4fb8\nVSTR            S15, [R6,#0x124]                                       ; +0x6c, 0x5e4fbc\nB               loc_5E5034                                             ; +0x70, 0x5e4fc0\nMOV             R0, SP; this                                           ; +0x72, 0x5e4fc2\nMOV             R1, R4                                                 ; +0x74, 0x5e4fc4\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x76, 0x5e4fc6\nLDRB.W          R3, [SP,#0x14+var_14]                                  ; +0x7a, 0x5e4fca\nMOV             R7, SP                                                 ; +0x7e, 0x5e4fce\nLSLS            R2, R3, #0x1F                                          ; +0x80, 0x5e4fd0\nITE PL                                                                 ; +0x82, 0x5e4fd2\nADDPL.W         R0, SP, #0x14+var_13                                   ; +0x84, 0x5e4fd4\nLDRMI           R0, [SP,#0x14+var_C]; char *                           ; +0x88, 0x5e4fd8\nBLX             atof                                                   ; +0x8a, 0x5e4fda\nMOV             R2, R0                                                 ; +0x8e, 0x5e4fde\nLDR             R0, =(a2f - 0x5E4FE8); \"%.2f\"                          ; +0x90, 0x5e4fe0\nMOV             R3, R1                                                 ; +0x92, 0x5e4fe2\nADD             R0, PC; \"%.2f\"                                         ; +0x94, 0x5e4fe4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x96, 0x5e4fe6\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x9a, 0x5e4fea\nMOV             R4, R0                                                 ; +0x9e, 0x5e4fee\nMOV             R0, SP                                                 ; +0xa0, 0x5e4ff0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa2, 0x5e4ff2\nSTR.W           R4, [R6,#0x128]                                        ; +0xa6, 0x5e4ff6\nB               loc_5E5034                                             ; +0xaa, 0x5e4ffa\nMOV             R0, SP; this                                           ; +0xac, 0x5e4ffc\nMOV             R1, R4                                                 ; +0xae, 0x5e4ffe\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xb0, 0x5e5000\nLDRB.W          R3, [SP,#0x14+var_14]                                  ; +0xb4, 0x5e5004\nMOV             R7, SP                                                 ; +0xb8, 0x5e5008\nLSLS            R3, R3, #0x1F                                          ; +0xba, 0x5e500a\nITE PL                                                                 ; +0xbc, 0x5e500c\nADDPL.W         R0, SP, #0x14+var_13                                   ; +0xbe, 0x5e500e\nLDRMI           R0, [SP,#0x14+var_C]; char *                           ; +0xc2, 0x5e5012\nBLX             atof                                                   ; +0xc4, 0x5e5014\nMOV             R2, R0                                                 ; +0xc8, 0x5e5018\nLDR             R0, =(a2f - 0x5E5022); \"%.2f\"                          ; +0xca, 0x5e501a\nMOV             R3, R1                                                 ; +0xcc, 0x5e501c\nADD             R0, PC; \"%.2f\"                                         ; +0xce, 0x5e501e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xd0, 0x5e5020\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0xd4, 0x5e5024\nMOV             R4, R0                                                 ; +0xd8, 0x5e5028\nMOV             R0, SP                                                 ; +0xda, 0x5e502a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xdc, 0x5e502c\nSTR.W           R4, [R6,#0x12C]                                        ; +0xe0, 0x5e5030\nMOV             R0, R6; this                                           ; +0xe4, 0x5e5034\nBL              _ZN18ConfigureHSVWidget13updateSlidersEv; ConfigureHSVWidget::updateSliders(void) ; +0xe6, 0x5e5036\nB               loc_5E5048                                             ; +0xea, 0x5e503a\nB               loc_5E503E                                             ; +0xec, 0x5e503c\nMOV             R0, R7                                                 ; +0xee, 0x5e503e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf0, 0x5e5040\nBL              __cxa_end_cleanup                                      ; +0xf4, 0x5e5044\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xf8, 0x5e5048\nLDR             R3, [R5]                                               ; +0xfa, 0x5e504a\nCMP             R2, R3                                                 ; +0xfc, 0x5e504c\nBEQ             loc_5E5054                                             ; +0xfe, 0x5e504e\nBLX             __stack_chk_fail                                       ; +0x100, 0x5e5050\nADD             SP, SP, #0x14                                          ; +0x104, 0x5e5054\nPOP             {R4-R7,PC}                                             ; +0x106, 0x5e5056", "xrefs": ["`non-virtual thunk to'ConfigureHSVWidget::textChanged @ 0x5e506c"], "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"}