{"type": "func", "start": 4038636, "end": 4038802, "name": "ColorSelectPopup::updateDurLabel", "pseudocode": "// \n// ColorSelectPopup::updateDurLabel from 0x3d9fec to 0x3da092 (166 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x3da11c\n// > ColorSelectPopup::init @ 0x3dadf0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ColorSelectPopup::updateDurLabel(ColorSelectPopup *a1)\n{\n  const char *v1; // r1\n  float m_fadeTime; // s15\n  cocos2d::CCString *v4; // r0\n  char *CString; // r1\n  CCTextInputNode *m_fadeTimeInput; // r7\n  char *v7; // r2\n  char v8[4]; // [sp+8h] [bp-Ch] BYREF\n\n  m_fadeTime = a1->m_fadeTime;\n  a1->m_disableTextDelegate = 1;\n  if ( m_fadeTime == -99999.0 )\n  {\n    CString = \"Mixed\";\n  }\n  else\n  {\n    if ( (float)(m_fadeTime - (float)(int)m_fadeTime) == 0.0 )\n      v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"%i\",\n                                  (const char *)(int)m_fadeTime);\n    else\n      v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v1, m_fadeTime);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n  }\n  m_fadeTimeInput = a1->m_fadeTimeInput;\n  sub_776584((int)v8, CString);\n  CCTextInputNode::setString((int)m_fadeTimeInput, v8, v7);\n  sub_774008(v8);\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; ColorSelectPopup::updateDurLabel from 0x3d9fec to 0x3da092 (166 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x3da11c\n; > ColorSelectPopup::init @ 0x3dadf0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nVLDR            S15, [R0,#0x2E0]                                       ; +0x0, 0x3d9fec\nLDR             R3, =(__stack_chk_guard_ptr - 0x3D9FF8)                ; +0x4, 0x3d9ff0\nPUSH            {R4-R7,LR}                                             ; +0x6, 0x3d9ff2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3d9ff4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x3d9ff6\nVLDR            S14, =-99999.0                                         ; +0xc, 0x3d9ff8\nSUB             SP, SP, #0x14                                          ; +0x10, 0x3d9ffc\nLDR             R2, [R3]                                               ; +0x12, 0x3d9ffe\nMOV             R6, R0                                                 ; +0x14, 0x3da000\nMOV             R4, R3                                                 ; +0x16, 0x3da002\nVCMP.F32        S15, S14                                               ; +0x18, 0x3da004\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x3da008\nMOVS            R2, #1                                                 ; +0x1e, 0x3da00a\nSTRB.W          R2, [R0,#0x220]                                        ; +0x20, 0x3da00c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x3da010\nBEQ             loc_3DA052                                             ; +0x28, 0x3da014\nVCVT.S32.F32    S13, S15                                               ; +0x2a, 0x3da016\nVCVT.F32.S32    S14, S13                                               ; +0x2e, 0x3da01a\nVSUB.F32        S14, S15, S14                                          ; +0x32, 0x3da01e\nVCMP.F32        S14, #0.0                                              ; +0x36, 0x3da022\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3a, 0x3da026\nBNE             loc_3DA03A                                             ; +0x3e, 0x3da02a\nLDR             R0, =(aI - 0x3DA036); \"%i\"                             ; +0x40, 0x3da02c\nVMOV            R1, S13; char *                                        ; +0x42, 0x3da02e\nADD             R0, PC; \"%i\"                                           ; +0x46, 0x3da032\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x3da034\nB               loc_3DA04A                                             ; +0x4c, 0x3da038\nVCVT.F64.F32    D7, S15                                                ; +0x4e, 0x3da03a\nLDR             R0, =(a02f_0 - 0x3DA044); \"%.02f\"                      ; +0x52, 0x3da03e\nADD             R0, PC; \"%.02f\"                                        ; +0x54, 0x3da040\nVMOV            R2, R3, D7                                             ; +0x56, 0x3da042\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x5a, 0x3da046\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5e, 0x3da04a\nMOV             R1, R0                                                 ; +0x62, 0x3da04e\nB               loc_3DA056                                             ; +0x64, 0x3da050\nLDR             R1, =(aMixed - 0x3DA058); \"Mixed\"                      ; +0x66, 0x3da052\nADD             R1, PC; \"Mixed\"                                        ; +0x68, 0x3da054\nLDR.W           R7, [R6,#0x330]                                        ; +0x6a, 0x3da056\nADD             R5, SP, #0x14+var_C                                    ; +0x6e, 0x3da05a\nADD             R2, SP, #0x14+var_10                                   ; +0x70, 0x3da05c\nMOV             R0, R5; int                                            ; +0x72, 0x3da05e\nBL              sub_776584                                             ; +0x74, 0x3da060\nMOV             R0, R7                                                 ; +0x78, 0x3da064\nMOV             R1, R5                                                 ; +0x7a, 0x3da066\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x7c, 0x3da068\nMOV             R0, R5                                                 ; +0x80, 0x3da06c\nBL              sub_774008                                             ; +0x82, 0x3da06e\nMOVS            R3, #0                                                 ; +0x86, 0x3da072\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x88, 0x3da074\nSTRB.W          R3, [R6,#0x220]                                        ; +0x8a, 0x3da076\nLDR             R3, [R4]                                               ; +0x8e, 0x3da07a\nCMP             R2, R3                                                 ; +0x90, 0x3da07c\nBEQ             loc_3DA08E                                             ; +0x92, 0x3da07e\nBLX             __stack_chk_fail                                       ; +0x94, 0x3da080\nMOV             R0, R5                                                 ; +0x98, 0x3da084\nBL              sub_774008                                             ; +0x9a, 0x3da086\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x3da08a\nADD             SP, SP, #0x14                                          ; +0xa2, 0x3da08e\nPOP             {R4-R7,PC}                                             ; +0xa4, 0x3da090", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x3da11c", "ColorSelectPopup::init @ 0x3dadf0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}