{"type": "func", "start": 4296083412, "end": 4296083588, "name": "ArtistCell::onNewgrounds", "pseudocode": "// \n// ArtistCell::onNewgrounds from 0x1001107d4 to 0x100110884 (176 bytes)\n// \n// 1 xrefs:\n// > ArtistCell::loadFromObject @ 0x100105814\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  cocos2d::CCApplication *v3; // x19\n  SongInfoObject *m_songInfo; // x8\n  std::string *p_m_artistName; // x8\n  void **v6; // x8\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  void *__p[2]; // [xsp+10h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+20h] [xbp-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.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(\n        __p,\n        (void *)m_songInfo->m_artistName.m_data.m_long.capacitym1,\n        m_songInfo->m_artistName.m_data.m_long.size);\n    }\n    else\n    {\n      p_m_artistName = &m_songInfo->m_artistName;\n      *(_OWORD *)__p = *(_OWORD *)&p_m_artistName->m_data.m_short.sizex2;\n      longStorage = p_m_artistName->m_data.m_long.longStorage;\n    }\n    v6 = __p;\n    if ( SHIBYTE(longStorage) < 0 )\n      v6 = (void **)__p[0];\n    v7 = (cocos2d::CCString *)sub_100268F4C(\"https://%s.newgrounds.com/audio\", (const char *)v6);\n    CString = cocos2d::CCString::getCString(v7);\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v3->openURL)(v3, CString);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; ArtistCell::onNewgrounds from 0x1001107d4 to 0x100110884 (176 bytes)\n; \n; 1 xrefs:\n; > ArtistCell::loadFromObject @ 0x100105814\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001107d4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1001107d8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1001107dc\nADD             X29, SP, #0x40                                         ; +0xc, 0x1001107e0\nLDR             X8, [X0,#0x228]                                        ; +0x10, 0x1001107e4\nCBZ             X8, loc_100110874                                      ; +0x14, 0x1001107e8\nMOV             X20, X0                                                ; +0x18, 0x1001107ec\nBL              cocos2d__CCApplication__sharedApplication              ; +0x1c, 0x1001107f0\nMOV             X19, X0                                                ; +0x20, 0x1001107f4\nLDR             X8, [X20,#0x228]                                       ; +0x24, 0x1001107f8\nLDRSB           W9, [X8,#0x16F]                                        ; +0x28, 0x1001107fc\nTBNZ            W9, #0x1F, loc_10011081C                               ; +0x2c, 0x100110800\nADD             X8, X8, #0x158                                         ; +0x30, 0x100110804\nLDR             Q0, [X8]                                               ; +0x34, 0x100110808\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x38, 0x10011080c\nLDR             X8, [X8,#0x10]                                         ; +0x3c, 0x100110810\nSTR             X8, [SP,#0x40+var_20]                                  ; +0x40, 0x100110814\nB               loc_100110828                                          ; +0x44, 0x100110818\nLDP             X1, X2, [X8,#0x158]; __src                             ; +0x48, 0x10011081c\nADD             X0, SP, #0x40+__p; __dst                               ; +0x4c, 0x100110820\nBL              sub_1000097D0                                          ; +0x50, 0x100110824\nLDRSB           W8, [SP,#0x40+var_20+7]                                ; +0x54, 0x100110828\nLDR             X9, [SP,#0x40+__p]                                     ; +0x58, 0x10011082c\nCMP             W8, #0                                                 ; +0x5c, 0x100110830\nADD             X8, SP, #0x40+__p                                      ; +0x60, 0x100110834\nCSEL            X8, X9, X8, LT                                         ; +0x64, 0x100110838\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x68, 0x10011083c\nADRL            X0, aHttpsSNewgroun; \"https://%s.newgrounds.com/audio\" ; +0x6c, 0x100110840\nBL              sub_100268F4C                                          ; +0x74, 0x100110848\nBL              cocos2d__CCString__getCString                          ; +0x78, 0x10011084c\nMOV             X1, X0                                                 ; +0x7c, 0x100110850\nLDR             X8, [X19]                                              ; +0x80, 0x100110854\nLDR             X8, [X8,#0x60]                                         ; +0x84, 0x100110858\nMOV             X0, X19                                                ; +0x88, 0x10011085c\nBLR             X8                                                     ; +0x8c, 0x100110860\nLDRSB           W8, [SP,#0x40+var_20+7]                                ; +0x90, 0x100110864\nTBZ             W8, #0x1F, loc_100110874                               ; +0x94, 0x100110868\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x98, 0x10011086c\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x100110870\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa0, 0x100110874\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa4, 0x100110878\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x10011087c\nRET                                                                    ; +0xac, 0x100110880", "xrefs": ["ArtistCell::loadFromObject @ 0x100105814"], "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"}