{"type": "func", "start": 4297410416, "end": 4297410592, "name": "ArtistCell::onNewgrounds", "pseudocode": "// \n// ArtistCell::onNewgrounds from 0x100254770 to 0x100254820 (176 bytes)\n// \n// 1 xrefs:\n// > ArtistCell::loadFromObject @ 0x100247365\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 __fastcall ArtistCell::onNewgrounds(ArtistCell *a1, cocos2d::CCObject *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCApplication *v3; // rbx\n  SongInfoObject *m_songInfo; // rax\n  std::string *p_m_artistName; // rax\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  __int128 v8; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  if ( a1->m_songInfo )\n  {\n    v3 = cocos2d::CCApplication::sharedApplication();\n    m_songInfo = a1->m_songInfo;\n    if ( (m_songInfo->m_artistName.m_data.m_short.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(\n        &v8,\n        m_songInfo->m_artistName.m_data.m_long.longStorage,\n        m_songInfo->m_artistName.m_data.m_long.size,\n        v2);\n    }\n    else\n    {\n      p_m_artistName = &m_songInfo->m_artistName;\n      __p = p_m_artistName->m_data.m_long.longStorage;\n      v8 = *(_OWORD *)&p_m_artistName->m_data.m_short.sizex2;\n    }\n    v6 = (cocos2d::CCString *)sub_1007AB580(\"https://%s.newgrounds.com/audio\", v8);\n    CString = cocos2d::CCString::getCString(v6);\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v3->openURL)(v3, CString);\n    if ( (v8 & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; ArtistCell::onNewgrounds from 0x100254770 to 0x100254820 (176 bytes)\n; \n; 1 xrefs:\n; > ArtistCell::loadFromObject @ 0x100247365\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    rbp                                                            ; +0x0, 0x100254770\nmov     rbp, rsp                                                       ; +0x1, 0x100254771\npush    r14                                                            ; +0x4, 0x100254774\npush    rbx                                                            ; +0x6, 0x100254776\nsub     rsp, 20h                                                       ; +0x7, 0x100254777\ncmp     qword ptr [rdi+228h], 0                                        ; +0xb, 0x10025477b\njz      loc_100254817                                                  ; +0x13, 0x100254783\nmov     r14, rdi                                                       ; +0x19, 0x100254789\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x1c, 0x10025478c\nmov     rbx, rax                                                       ; +0x21, 0x100254791\nmov     rax, [r14+228h]                                                ; +0x24, 0x100254794\ntest    byte ptr [rax+158h], 1                                         ; +0x2b, 0x10025479b\njnz     short loc_1002547C5                                            ; +0x32, 0x1002547a2\nadd     rax, 158h                                                      ; +0x34, 0x1002547a4\nmov     rcx, [rax+10h]                                                 ; +0x3a, 0x1002547aa\nmov     [rbp+__p], rcx                                                 ; +0x3e, 0x1002547ae\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x42, 0x1002547b2\nmovaps  [rbp+var_30], xmm0                                             ; +0x45, 0x1002547b5\ntest    byte ptr [rbp+var_30], 1                                       ; +0x49, 0x1002547b9\njnz     short loc_1002547E2                                            ; +0x4d, 0x1002547bd\nlea     rsi, [rbp+var_30+1]                                            ; +0x4f, 0x1002547bf\njmp     short loc_1002547E6                                            ; +0x53, 0x1002547c3\nmov     rdx, [rax+160h]                                                ; +0x55, 0x1002547c5\nmov     rsi, [rax+168h]                                                ; +0x5c, 0x1002547cc\nlea     rdi, [rbp+var_30]                                              ; +0x63, 0x1002547d3\ncall    sub_100006B70                                                  ; +0x67, 0x1002547d7\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6c, 0x1002547dc\njz      short loc_1002547BF                                            ; +0x70, 0x1002547e0\nmov     rsi, [rbp+__p]                                                 ; +0x72, 0x1002547e2\nlea     rdi, aHttpsSNewgroun; \"https://%s.newgrounds.com/audio\"        ; +0x76, 0x1002547e6\nxor     eax, eax                                                       ; +0x7d, 0x1002547ed\ncall    sub_1007AB580                                                  ; +0x7f, 0x1002547ef\nmov     rdi, rax                                                       ; +0x84, 0x1002547f4\ncall    cocos2d__CCString__getCString                                  ; +0x87, 0x1002547f7\nmov     rcx, [rbx]                                                     ; +0x8c, 0x1002547fc\nmov     rdi, rbx                                                       ; +0x8f, 0x1002547ff\nmov     rsi, rax                                                       ; +0x92, 0x100254802\ncall    qword ptr [rcx+60h]                                            ; +0x95, 0x100254805\ntest    byte ptr [rbp+var_30], 1                                       ; +0x98, 0x100254808\njz      short loc_100254817                                            ; +0x9c, 0x10025480c\nmov     rdi, [rbp+__p]; __p                                            ; +0x9e, 0x10025480e\ncall    __ZdlPv; operator delete(void *)                               ; +0xa2, 0x100254812\nadd     rsp, 20h                                                       ; +0xa7, 0x100254817\npop     rbx                                                            ; +0xab, 0x10025481b\npop     r14                                                            ; +0xac, 0x10025481c\npop     rbp                                                            ; +0xae, 0x10025481e\nretn                                                                   ; +0xaf, 0x10025481f", "xrefs": ["ArtistCell::loadFromObject @ 0x100247365"], "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"}