{"type": "func", "start": 5369525984, "end": 5369526210, "name": "SongSelectNode::updateAudioLabel", "pseudocode": "// \n// SongSelectNode::updateAudioLabel from 0x1400c76e0 to 0x1400c77c2 (226 bytes)\n// \n// 5 xrefs:\n// > SongSelectNode::init @ 0x1400c704e\n// > SongSelectNode::audioNext @ 0x1400c77fb\n// > SongSelectNode::audioPrevious @ 0x1400c783a\n// > SongSelectNode::onSongMode @ 0x1400c78bf\n// > <???> @ 0x1406c81fc\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\n// Hidden C++ exception states: #wind=1\nvoid SongSelectNode::updateAudioLabel(SongSelectNode *a1)\n{\n  const char *v2; // r8\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  _QWORD v5[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  LevelTools::getAudioTitle(v5, (unsigned int)a1->m_selectedSongID);\n  v2 = (const char *)v5;\n  if ( v5[3] > 0xFu )\n    v2 = (const char *)v5[0];\n  v3 = cocos2d::CCString::createWithFormat(\"%02d: %s\", a1->m_selectedSongID + 1, v2);\n  CString = cocos2d::CCString::getCString(v3);\n  a1->m_audioLabel->setString(&a1->m_audioLabel->cocos2d::CCLabelProtocol, CString);\n  if ( (float)(200.0 / a1->m_audioLabel->getContentSize(a1->m_audioLabel)->width) <= 0.80000001 )\n    a1->m_audioLabel->getContentSize(a1->m_audioLabel);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_audioLabel->setScale_0)(a1->m_audioLabel);\n  sub_14003A830((__int64)v5);\n}", "assembly": "; \n; SongSelectNode::updateAudioLabel from 0x1400c76e0 to 0x1400c77c2 (226 bytes)\n; \n; 5 xrefs:\n; > SongSelectNode::init @ 0x1400c704e\n; > SongSelectNode::audioNext @ 0x1400c77fb\n; > SongSelectNode::audioPrevious @ 0x1400c783a\n; > SongSelectNode::onSongMode @ 0x1400c78bf\n; > <???> @ 0x1406c81fc\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    rbx                                                            ; +0x0, 0x1400c76e0\nsub     rsp, 50h                                                       ; +0x2, 0x1400c76e2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1400c76e6\nxor     rax, rsp                                                       ; +0xd, 0x1400c76ed\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x1400c76f0\nmov     rbx, rcx                                                       ; +0x15, 0x1400c76f5\nmov     edx, [rcx+158h]                                                ; +0x18, 0x1400c76f8\nlea     rcx, [rsp+58h+var_38]                                          ; +0x1e, 0x1400c76fe\ncall    LevelTools__getAudioTitle                                      ; +0x23, 0x1400c7703\nnop                                                                    ; +0x28, 0x1400c7708\nlea     r8, [rsp+58h+var_38]                                           ; +0x29, 0x1400c7709\ncmp     [rsp+58h+var_20], 0Fh                                          ; +0x2e, 0x1400c770e\ncmova   r8, [rsp+58h+var_38]                                           ; +0x34, 0x1400c7714\nmov     edx, [rbx+158h]                                                ; +0x3a, 0x1400c771a\ninc     edx                                                            ; +0x40, 0x1400c7720\nlea     rcx, a02dS; \"%02d: %s\"                                         ; +0x42, 0x1400c7722\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x49, 0x1400c7729\nmov     rcx, rax                                                       ; +0x4f, 0x1400c772f\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x52, 0x1400c7732\nmov     rcx, [rbx+160h]                                                ; +0x58, 0x1400c7738\nadd     rcx, 168h                                                      ; +0x5f, 0x1400c773f\nmov     r8, [rcx]                                                      ; +0x66, 0x1400c7746\nmov     rdx, rax                                                       ; +0x69, 0x1400c7749\ncall    qword ptr [r8]                                                 ; +0x6c, 0x1400c774c\nmov     rcx, [rbx+160h]                                                ; +0x6f, 0x1400c774f\nmov     rax, [rcx]                                                     ; +0x76, 0x1400c7756\ncall    qword ptr [rax+130h]                                           ; +0x79, 0x1400c7759\nmovss   xmm0, cs:dword_1406233D0                                       ; +0x7f, 0x1400c775f\ndivss   xmm0, dword ptr [rax]                                          ; +0x87, 0x1400c7767\nmovss   xmm1, cs:dword_140622BA4                                       ; +0x8b, 0x1400c776b\ncomiss  xmm0, xmm1                                                     ; +0x93, 0x1400c7773\nja      short loc_1400C7794                                            ; +0x96, 0x1400c7776\nmov     rcx, [rbx+160h]                                                ; +0x98, 0x1400c7778\nmov     rax, [rcx]                                                     ; +0x9f, 0x1400c777f\ncall    qword ptr [rax+130h]                                           ; +0xa2, 0x1400c7782\nmovss   xmm1, cs:dword_1406233D0                                       ; +0xa8, 0x1400c7788\ndivss   xmm1, dword ptr [rax]                                          ; +0xb0, 0x1400c7790\nmov     rcx, [rbx+160h]                                                ; +0xb4, 0x1400c7794\nmov     rax, [rcx]                                                     ; +0xbb, 0x1400c779b\ncall    qword ptr [rax+0A0h]                                           ; +0xbe, 0x1400c779e\nnop                                                                    ; +0xc4, 0x1400c77a4\nlea     rcx, [rsp+58h+var_38]                                          ; +0xc5, 0x1400c77a5\ncall    sub_14003A830                                                  ; +0xca, 0x1400c77aa\nmov     rcx, [rsp+58h+var_18]                                          ; +0xcf, 0x1400c77af\nxor     rcx, rsp; StackCookie                                          ; +0xd4, 0x1400c77b4\ncall    __security_check_cookie                                        ; +0xd7, 0x1400c77b7\nadd     rsp, 50h                                                       ; +0xdc, 0x1400c77bc\npop     rbx                                                            ; +0xe0, 0x1400c77c0\nretn                                                                   ; +0xe1, 0x1400c77c1", "xrefs": ["SongSelectNode::init @ 0x1400c704e", "SongSelectNode::audioNext @ 0x1400c77fb", "SongSelectNode::audioPrevious @ 0x1400c783a", "SongSelectNode::onSongMode @ 0x1400c78bf", "<???> @ 0x1406c81fc"], "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"}