{"type": "func", "start": 4049400, "end": 4049656, "name": "ColorSelectPopup::updateColorLabels", "pseudocode": "// \n// ColorSelectPopup::updateColorLabels from 0x3dc9f8 to 0x3dcaf8 (256 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x3dcb5a\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::updateColorLabels(ColorSelectPopup *a1)\n{\n  bool m_disableTextDelegate; // r8\n  CCTextInputNode *m_rInput; // r9\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  char *v6; // r2\n  CCTextInputNode *m_gInput; // r9\n  cocos2d::CCString *v8; // r0\n  char *v9; // r0\n  char *v10; // r2\n  CCTextInputNode *m_bInput; // r9\n  cocos2d::CCString *v12; // r0\n  char *v13; // r0\n  char *v14; // r2\n  CCTextInputNode *m_hexInput; // r9\n  char *v16; // r2\n  char *v17; // [sp+4h] [bp-10h] BYREF\n  char v18[4]; // [sp+8h] [bp-Ch] BYREF\n\n  m_disableTextDelegate = a1->m_disableTextDelegate;\n  m_rInput = a1->m_rInput;\n  a1->m_disableTextDelegate = 1;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)a1->m_currentColor.r);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_776584((int)v18, CString);\n  CCTextInputNode::setString((int)m_rInput, v18, v6);\n  sub_774008(v18);\n  m_gInput = a1->m_gInput;\n  v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)a1->m_currentColor.g);\n  v9 = (char *)cocos2d::CCString::getCString(v8);\n  sub_776584((int)v18, v9);\n  CCTextInputNode::setString((int)m_gInput, v18, v10);\n  sub_774008(v18);\n  m_bInput = a1->m_bInput;\n  v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i\",\n                               (const char *)a1->m_currentColor.b);\n  v13 = (char *)cocos2d::CCString::getCString(v12);\n  sub_776584((int)v18, v13);\n  CCTextInputNode::setString((int)m_bInput, v18, v14);\n  sub_774008(v18);\n  m_hexInput = a1->m_hexInput;\n  ColorSelectPopup::colorToHex(&v17, *(_DWORD *)&a1->m_currentColor.r);\n  sub_776584((int)v18, v17);\n  CCTextInputNode::setString((int)m_hexInput, v18, v16);\n  sub_774008(v18);\n  sub_774008(&v17);\n  a1->m_disableTextDelegate = m_disableTextDelegate;\n}", "assembly": "; \n; ColorSelectPopup::updateColorLabels from 0x3dc9f8 to 0x3dcaf8 (256 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x3dcb5a\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\nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3dc9f8\nSUB             SP, SP, #0x14                                          ; +0x4, 0x3dc9fc\nLDR             R7, =(__stack_chk_guard_ptr - 0x3DCA0C)                ; +0x6, 0x3dc9fe\nMOV             R5, R0                                                 ; +0x8, 0x3dca00\nLDRB.W          R8, [R0,#0x220]                                        ; +0xa, 0x3dca02\nADD             R4, SP, #0x14+var_C                                    ; +0xe, 0x3dca06\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3dca08\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x3dca0a\nLDR.W           R9, [R0,#0x340]                                        ; +0x14, 0x3dca0c\nADD             R6, SP, #0x14+var_10                                   ; +0x18, 0x3dca10\nLDR             R3, [R7]                                               ; +0x1a, 0x3dca12\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1c, 0x3dca14\nMOVS            R3, #1                                                 ; +0x1e, 0x3dca16\nSTRB.W          R3, [R0,#0x220]                                        ; +0x20, 0x3dca18\nLDR             R0, =(aI - 0x3DCA26); \"%i\"                             ; +0x24, 0x3dca1c\nLDRB.W          R1, [R5,#0x2D8]; char *                                ; +0x26, 0x3dca1e\nADD             R0, PC; \"%i\"                                           ; +0x2a, 0x3dca22\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2c, 0x3dca24\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x30, 0x3dca28\nMOV             R2, R6                                                 ; +0x34, 0x3dca2c\nMOV             R1, R0; char *                                         ; +0x36, 0x3dca2e\nMOV             R0, R4; int                                            ; +0x38, 0x3dca30\nBL              sub_776584                                             ; +0x3a, 0x3dca32\nMOV             R0, R9                                                 ; +0x3e, 0x3dca36\nMOV             R1, R4                                                 ; +0x40, 0x3dca38\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x42, 0x3dca3a\nMOV             R0, R4                                                 ; +0x46, 0x3dca3e\nBL              sub_774008                                             ; +0x48, 0x3dca40\nLDR             R0, =(aI - 0x3DCA4E); \"%i\"                             ; +0x4c, 0x3dca44\nLDRB.W          R1, [R5,#0x2D9]; char *                                ; +0x4e, 0x3dca46\nADD             R0, PC; \"%i\"                                           ; +0x52, 0x3dca4a\nLDR.W           R9, [R5,#0x344]                                        ; +0x54, 0x3dca4c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x58, 0x3dca50\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5c, 0x3dca54\nMOV             R2, R6                                                 ; +0x60, 0x3dca58\nMOV             R1, R0; char *                                         ; +0x62, 0x3dca5a\nMOV             R0, R4; int                                            ; +0x64, 0x3dca5c\nBL              sub_776584                                             ; +0x66, 0x3dca5e\nMOV             R0, R9                                                 ; +0x6a, 0x3dca62\nMOV             R1, R4                                                 ; +0x6c, 0x3dca64\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x6e, 0x3dca66\nMOV             R0, R4                                                 ; +0x72, 0x3dca6a\nBL              sub_774008                                             ; +0x74, 0x3dca6c\nLDR             R0, =(aI - 0x3DCA7A); \"%i\"                             ; +0x78, 0x3dca70\nLDRB.W          R1, [R5,#0x2DA]; char *                                ; +0x7a, 0x3dca72\nADD             R0, PC; \"%i\"                                           ; +0x7e, 0x3dca76\nLDR.W           R9, [R5,#0x348]                                        ; +0x80, 0x3dca78\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x84, 0x3dca7c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x88, 0x3dca80\nMOV             R2, R6                                                 ; +0x8c, 0x3dca84\nMOV             R1, R0; char *                                         ; +0x8e, 0x3dca86\nMOV             R0, R4; int                                            ; +0x90, 0x3dca88\nBL              sub_776584                                             ; +0x92, 0x3dca8a\nMOV             R0, R9                                                 ; +0x96, 0x3dca8e\nMOV             R1, R4                                                 ; +0x98, 0x3dca90\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x9a, 0x3dca92\nMOV             R0, R4                                                 ; +0x9e, 0x3dca96\nBL              sub_774008                                             ; +0xa0, 0x3dca98\nMOV             R0, R6                                                 ; +0xa4, 0x3dca9c\nLDR.W           R1, [R5,#0x2D8]                                        ; +0xa6, 0x3dca9e\nLDR.W           R9, [R5,#0x34C]                                        ; +0xaa, 0x3dcaa2\nBL              _ZN16ColorSelectPopup10colorToHexEN7cocos2d10_ccColor3BE; ColorSelectPopup::colorToHex(cocos2d::_ccColor3B) ; +0xae, 0x3dcaa6\nMOV             R0, R4; int                                            ; +0xb2, 0x3dcaaa\nLDR             R1, [SP,#0x14+var_10]; char *                          ; +0xb4, 0x3dcaac\nMOV             R2, SP                                                 ; +0xb6, 0x3dcaae\nBL              sub_776584                                             ; +0xb8, 0x3dcab0\nMOV             R0, R9                                                 ; +0xbc, 0x3dcab4\nMOV             R1, R4                                                 ; +0xbe, 0x3dcab6\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0xc0, 0x3dcab8\nMOV             R0, R4                                                 ; +0xc4, 0x3dcabc\nBL              sub_774008                                             ; +0xc6, 0x3dcabe\nMOV             R0, R6                                                 ; +0xca, 0x3dcac2\nBL              sub_774008                                             ; +0xcc, 0x3dcac4\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xd0, 0x3dcac8\nLDR             R3, [R7]                                               ; +0xd2, 0x3dcaca\nSTRB.W          R8, [R5,#0x220]                                        ; +0xd4, 0x3dcacc\nCMP             R2, R3                                                 ; +0xd8, 0x3dcad0\nBEQ             loc_3DCAF2                                             ; +0xda, 0x3dcad2\nBLX             __stack_chk_fail                                       ; +0xdc, 0x3dcad4\nB               loc_3DCADA                                             ; +0xe0, 0x3dcad8\nMOV             R0, R4                                                 ; +0xe2, 0x3dcada\nBL              sub_774008                                             ; +0xe4, 0x3dcadc\nBL              __cxa_end_cleanup                                      ; +0xe8, 0x3dcae0\nB               loc_3DCADA                                             ; +0xec, 0x3dcae4\nMOV             R0, R4                                                 ; +0xee, 0x3dcae6\nBL              sub_774008                                             ; +0xf0, 0x3dcae8\nB               loc_3DCAEE                                             ; +0xf4, 0x3dcaec\nMOV             R0, R6                                                 ; +0xf6, 0x3dcaee\nB               loc_3DCADC                                             ; +0xf8, 0x3dcaf0\nADD             SP, SP, #0x14                                          ; +0xfa, 0x3dcaf2\nPOP.W           {R4-R9,PC}                                             ; +0xfc, 0x3dcaf4", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x3dcb5a"], "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"}