{"type": "func", "start": 5093856, "end": 5093986, "name": "GJFollowCommandLayer::updateXModLabel", "pseudocode": "// \n// GJFollowCommandLayer::updateXModLabel from 0x4db9e0 to 0x4dba62 (130 bytes)\n// \n// 2 xrefs:\n// > GJFollowCommandLayer::init @ 0x4dc742\n// > GJFollowCommandLayer::sliderXModChanged @ 0x4dcafc\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 GJFollowCommandLayer::updateXModLabel(GJFollowCommandLayer *a1)\n{\n  const char *v1; // r1\n  float m_xMod; // s15\n  cocos2d::CCString *v4; // r0\n  char *CString; // r1\n  CCTextInputNode *m_xModInput; // r7\n  char *v7; // r2\n  char v8[4]; // [sp+8h] [bp-Ch] BYREF\n\n  m_xMod = a1->m_xMod;\n  a1->m_disableTextDelegate = 1;\n  if ( m_xMod == -99999.0 )\n  {\n    CString = (char *)&unk_939830;\n  }\n  else\n  {\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", v1, m_xMod);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n  }\n  m_xModInput = a1->m_xModInput;\n  sub_776584((int)v8, CString);\n  CCTextInputNode::setString((int)m_xModInput, v8, v7);\n  sub_774008(v8);\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; GJFollowCommandLayer::updateXModLabel from 0x4db9e0 to 0x4dba62 (130 bytes)\n; \n; 2 xrefs:\n; > GJFollowCommandLayer::init @ 0x4dc742\n; > GJFollowCommandLayer::sliderXModChanged @ 0x4dcafc\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,#0x2C4]                                       ; +0x0, 0x4db9e0\nLDR             R3, =(__stack_chk_guard_ptr - 0x4DB9EC)                ; +0x4, 0x4db9e4\nPUSH            {R4-R7,LR}                                             ; +0x6, 0x4db9e6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4db9e8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x4db9ea\nVLDR            S14, =-99999.0                                         ; +0xc, 0x4db9ec\nSUB             SP, SP, #0x14                                          ; +0x10, 0x4db9f0\nLDR             R2, [R3]                                               ; +0x12, 0x4db9f2\nMOV             R6, R0                                                 ; +0x14, 0x4db9f4\nMOV             R4, R3                                                 ; +0x16, 0x4db9f6\nVCMP.F32        S15, S14                                               ; +0x18, 0x4db9f8\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x4db9fc\nMOVS            R2, #1                                                 ; +0x1e, 0x4db9fe\nSTRB.W          R2, [R0,#0x220]                                        ; +0x20, 0x4dba00\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x4dba04\nBEQ             loc_4DBA22                                             ; +0x28, 0x4dba08\nVCVT.F64.F32    D7, S15                                                ; +0x2a, 0x4dba0a\nLDR             R0, =(a02f - 0x4DBA14); \"%0.2f\"                        ; +0x2e, 0x4dba0e\nADD             R0, PC; \"%0.2f\"                                        ; +0x30, 0x4dba10\nVMOV            R2, R3, D7                                             ; +0x32, 0x4dba12\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x36, 0x4dba16\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x3a, 0x4dba1a\nMOV             R1, R0                                                 ; +0x3e, 0x4dba1e\nB               loc_4DBA26                                             ; +0x40, 0x4dba20\nLDR             R1, =(unk_939830 - 0x4DBA28)                           ; +0x42, 0x4dba22\nADD             R1, PC; unk_939830 ; char *                            ; +0x44, 0x4dba24\nLDR.W           R7, [R6,#0x2B4]                                        ; +0x46, 0x4dba26\nADD             R5, SP, #0x14+var_C                                    ; +0x4a, 0x4dba2a\nADD             R2, SP, #0x14+var_10                                   ; +0x4c, 0x4dba2c\nMOV             R0, R5; int                                            ; +0x4e, 0x4dba2e\nBL              sub_776584                                             ; +0x50, 0x4dba30\nMOV             R0, R7                                                 ; +0x54, 0x4dba34\nMOV             R1, R5                                                 ; +0x56, 0x4dba36\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x58, 0x4dba38\nMOV             R0, R5                                                 ; +0x5c, 0x4dba3c\nBL              sub_774008                                             ; +0x5e, 0x4dba3e\nMOVS            R3, #0                                                 ; +0x62, 0x4dba42\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x64, 0x4dba44\nSTRB.W          R3, [R6,#0x220]                                        ; +0x66, 0x4dba46\nLDR             R3, [R4]                                               ; +0x6a, 0x4dba4a\nCMP             R2, R3                                                 ; +0x6c, 0x4dba4c\nBEQ             loc_4DBA5E                                             ; +0x6e, 0x4dba4e\nBLX             __stack_chk_fail                                       ; +0x70, 0x4dba50\nMOV             R0, R5                                                 ; +0x74, 0x4dba54\nBL              sub_774008                                             ; +0x76, 0x4dba56\nBL              __cxa_end_cleanup                                      ; +0x7a, 0x4dba5a\nADD             SP, SP, #0x14                                          ; +0x7e, 0x4dba5e\nPOP             {R4-R7,PC}                                             ; +0x80, 0x4dba60", "xrefs": ["GJFollowCommandLayer::init @ 0x4dc742", "GJFollowCommandLayer::sliderXModChanged @ 0x4dcafc"], "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"}