{"type": "func", "start": 5109104, "end": 5109288, "name": "ColorSelectPopup::updateDurLabel", "pseudocode": "// \n// ColorSelectPopup::updateDurLabel from 0x4df570 to 0x4df628 (184 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x4df678\n// > ColorSelectPopup::init @ 0x4dffcc\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:50:59 +0000\n// \n\nint __fastcall ColorSelectPopup::updateDurLabel(ColorSelectPopup *this, const char *a2)\n{\n  float v2; // s15\n  cocos2d::CCString *v4; // r0\n  const char *CString; // r6\n  size_t v6; // r0\n  int v7; // r9\n  int result; // r0\n  int v9[3]; // [sp+0h] [bp-14h] BYREF\n\n  v2 = *((float *)this + 192);\n  *((_BYTE *)this + 568) = 1;\n  if ( v2 == -99999.0 )\n  {\n    CString = \"Mixed\";\n  }\n  else\n  {\n    if ( (float)(v2 - (float)(int)v2) == 0.0 )\n      v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)(int)v2);\n    else\n      v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", a2, v2);\n    CString = (const char *)cocos2d::CCString::getCString(v4);\n  }\n  memset(v9, 0, sizeof(v9));\n  v6 = strlen(CString);\n  v7 = *((_DWORD *)this + 212);\n  std::string::__init(v9, CString, v6);\n  CCTextInputNode::setString(v7, (int)v9);\n  result = std::string::~string((int)v9);\n  *((_BYTE *)this + 568) = 0;\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateDurLabel from 0x4df570 to 0x4df628 (184 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x4df678\n; > ColorSelectPopup::init @ 0x4dffcc\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:50:59 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x4df570\nSUB             SP, SP, #0x14                                          ; +0x4, 0x4df574\nVLDR            S15, [R0,#0x300]                                       ; +0x6, 0x4df576\nMOV             R8, R0                                                 ; +0xa, 0x4df57a\nLDR             R3, =(__stack_chk_guard_ptr - 0x4DF586)                ; +0xc, 0x4df57c\nVLDR            S14, =-99999.0                                         ; +0xe, 0x4df57e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x12, 0x4df582\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x14, 0x4df584\nLDR             R2, [R3]                                               ; +0x16, 0x4df586\nMOV             R7, R3                                                 ; +0x18, 0x4df588\nVCMP.F32        S15, S14                                               ; +0x1a, 0x4df58a\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1e, 0x4df58e\nMOVS            R2, #1                                                 ; +0x20, 0x4df590\nSTRB.W          R2, [R0,#0x238]                                        ; +0x22, 0x4df592\nVMRS            APSR_nzcv, FPSCR                                       ; +0x26, 0x4df596\nBEQ             loc_4DF5D8                                             ; +0x2a, 0x4df59a\nVCVT.S32.F32    S13, S15                                               ; +0x2c, 0x4df59c\nVCVT.F32.S32    S14, S13                                               ; +0x30, 0x4df5a0\nVSUB.F32        S14, S15, S14                                          ; +0x34, 0x4df5a4\nVCMP.F32        S14, #0.0                                              ; +0x38, 0x4df5a8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3c, 0x4df5ac\nBNE             loc_4DF5C0                                             ; +0x40, 0x4df5b0\nLDR             R0, =(aI - 0x4DF5BC); \"%i\"                             ; +0x42, 0x4df5b2\nVMOV            R1, S13; char *                                        ; +0x44, 0x4df5b4\nADD             R0, PC; \"%i\"                                           ; +0x48, 0x4df5b8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4a, 0x4df5ba\nB               loc_4DF5D0                                             ; +0x4e, 0x4df5be\nVCVT.F64.F32    D7, S15                                                ; +0x50, 0x4df5c0\nLDR             R0, =(a02f_0 - 0x4DF5CA); \"%.02f\"                      ; +0x54, 0x4df5c4\nADD             R0, PC; \"%.02f\"                                        ; +0x56, 0x4df5c6\nVMOV            R2, R3, D7                                             ; +0x58, 0x4df5c8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x5c, 0x4df5cc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x60, 0x4df5d0\nMOV             R6, R0                                                 ; +0x64, 0x4df5d4\nB               loc_4DF5DC                                             ; +0x66, 0x4df5d6\nLDR             R6, =(aMixed - 0x4DF5DE); \"Mixed\"                      ; +0x68, 0x4df5d8\nADD             R6, PC; \"Mixed\"                                        ; +0x6a, 0x4df5da\nMOV             R0, R6; char *                                         ; +0x6c, 0x4df5dc\nMOVS            R4, #0                                                 ; +0x6e, 0x4df5de\nSTR             R4, [SP,#0x14+var_14]                                  ; +0x70, 0x4df5e0\nMOV             R5, SP                                                 ; +0x72, 0x4df5e2\nSTR             R4, [SP,#0x14+var_10]                                  ; +0x74, 0x4df5e4\nSTR             R4, [SP,#0x14+var_C]                                   ; +0x76, 0x4df5e6\nBLX             strlen                                                 ; +0x78, 0x4df5e8\nLDR.W           R9, [R8,#0x350]                                        ; +0x7c, 0x4df5ec\nMOV             R1, R6                                                 ; +0x80, 0x4df5f0\nMOV             R2, R0                                                 ; +0x82, 0x4df5f2\nMOV             R0, SP                                                 ; +0x84, 0x4df5f4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x86, 0x4df5f6\nMOV             R0, R9                                                 ; +0x8a, 0x4df5fa\nMOV             R1, SP                                                 ; +0x8c, 0x4df5fc\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x8e, 0x4df5fe\nMOV             R0, SP                                                 ; +0x92, 0x4df602\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x4df604\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x98, 0x4df608\nLDR             R3, [R7]                                               ; +0x9a, 0x4df60a\nSTRB.W          R4, [R8,#0x238]                                        ; +0x9c, 0x4df60c\nCMP             R2, R3                                                 ; +0xa0, 0x4df610\nBEQ             loc_4DF622                                             ; +0xa2, 0x4df612\nBLX             __stack_chk_fail                                       ; +0xa4, 0x4df614\nMOV             R0, R5                                                 ; +0xa8, 0x4df618\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xaa, 0x4df61a\nBL              __cxa_end_cleanup                                      ; +0xae, 0x4df61e\nADD             SP, SP, #0x14                                          ; +0xb2, 0x4df622\nPOP.W           {R4-R9,PC}                                             ; +0xb4, 0x4df624", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x4df678", "ColorSelectPopup::init @ 0x4dffcc"], "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"}