{"type": "func", "start": 5370092448, "end": 5370092785, "name": "ArtistCell::onYouTube", "pseudocode": "// \n// ArtistCell::onYouTube from 0x140151ba0 to 0x140151cf1 (337 bytes)\n// \n// 2 xrefs:\n// > ArtistCell::loadFromObject @ 0x14015198c\n// > <???> @ 0x140917870\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:17 +0000\n// \n\nvoid __fastcall ArtistCell::onYouTube(__int64 a1)\n{\n  __int64 v2; // rdi\n  unsigned __int64 v3; // r9\n  __int64 v4; // r8\n  unsigned __int64 v5; // rdx\n  void **v6; // rdx\n  void *v7; // rcx\n  _QWORD v8[3]; // [rsp+38h] [rbp-50h] BYREF\n  void *Block[2]; // [rsp+50h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+60h] [rbp-28h]\n\n  if ( *(_QWORD *)(a1 + 560) )\n  {\n    v2 = cocos2d::CCApplication::sharedApplication(a1);\n    SongInfoObject::getArtistLinks(*(_QWORD *)(a1 + 560), v8);\n    v3 = 0;\n    v4 = v8[0];\n    v5 = (v8[1] - v8[0]) / 72LL;\n    if ( v5 )\n    {\n      while ( *(_DWORD *)(v4 + 4) != 1 )\n      {\n        ++v3;\n        v4 += 72;\n        if ( v3 >= v5 )\n          goto LABEL_5;\n      }\n      sub_14003F4F0((__int64)Block, v4 + 40);\n    }\n    else\n    {\nLABEL_5:\n      *(_OWORD *)Block = 0;\n      si128 = _mm_load_si128((const __m128i *)&Size);\n      LOBYTE(Block[0]) = 0;\n    }\n    sub_1401226A0(v8);\n    v6 = Block;\n    if ( si128.m128i_i64[1] > 0xFuLL )\n      v6 = (void **)Block[0];\n    (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v2 + 96LL))(v2, v6);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v7 = Block[0];\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v7 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v7);\n    }\n  }\n}", "assembly": "; \n; ArtistCell::onYouTube from 0x140151ba0 to 0x140151cf1 (337 bytes)\n; \n; 2 xrefs:\n; > ArtistCell::loadFromObject @ 0x14015198c\n; > <???> @ 0x140917870\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:17 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140151ba0\npush    rdi                                                            ; +0x5, 0x140151ba5\nsub     rsp, 80h                                                       ; +0x6, 0x140151ba6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140151bad\nxor     rax, rsp                                                       ; +0x14, 0x140151bb4\nmov     [rsp+88h+var_18], rax                                          ; +0x17, 0x140151bb7\nmov     rbx, rcx                                                       ; +0x1c, 0x140151bbc\ncmp     qword ptr [rcx+230h], 0                                        ; +0x1f, 0x140151bbf\njz      loc_140151CD3                                                  ; +0x27, 0x140151bc7\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x2d, 0x140151bcd\nmov     rdi, rax                                                       ; +0x33, 0x140151bd3\nlea     rdx, [rsp+88h+var_50]                                          ; +0x36, 0x140151bd6\nmov     rcx, [rbx+230h]                                                ; +0x3b, 0x140151bdb\ncall    SongInfoObject__getArtistLinks                                 ; +0x42, 0x140151be2\nnop                                                                    ; +0x47, 0x140151be7\nxor     r9d, r9d                                                       ; +0x48, 0x140151be8\nmov     rcx, [rsp+88h+var_48]                                          ; +0x4b, 0x140151beb\nmov     r8, [rsp+88h+var_50]                                           ; +0x50, 0x140151bf0\nsub     rcx, r8                                                        ; +0x55, 0x140151bf5\nmov     rax, 0E38E38E38E38E39h                                         ; +0x58, 0x140151bf8\nimul    rcx                                                            ; +0x62, 0x140151c02\nsar     rdx, 2                                                         ; +0x65, 0x140151c05\nmov     rax, rdx                                                       ; +0x69, 0x140151c09\nshr     rax, 3Fh                                                       ; +0x6c, 0x140151c0c\nadd     rdx, rax                                                       ; +0x70, 0x140151c10\njz      short loc_140151C2C                                            ; +0x73, 0x140151c13\ncmp     dword ptr [r8+4], 1                                            ; +0x75, 0x140151c15\njz      loc_140151CBB                                                  ; +0x7a, 0x140151c1a\ninc     r9                                                             ; +0x80, 0x140151c20\nadd     r8, 48h ; 'H'                                                  ; +0x83, 0x140151c23\ncmp     r9, rdx                                                        ; +0x87, 0x140151c27\njb      short loc_140151C15                                            ; +0x8a, 0x140151c2a\nxorps   xmm0, xmm0                                                     ; +0x8c, 0x140151c2c\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x8f, 0x140151c2f\nmovdqa  xmm1, cs:Size                                                  ; +0x94, 0x140151c34\nmovdqu  [rsp+88h+var_28], xmm1                                         ; +0x9c, 0x140151c3c\nmov     byte ptr [rsp+88h+Block], 0                                    ; +0xa2, 0x140151c42\nlea     rcx, [rsp+88h+var_50]; void *                                  ; +0xa7, 0x140151c47\ncall    sub_1401226A0                                                  ; +0xac, 0x140151c4c\nnop                                                                    ; +0xb1, 0x140151c51\nlea     rdx, [rsp+88h+Block]                                           ; +0xb2, 0x140151c52\ncmp     qword ptr [rsp+88h+var_28+8], 0Fh                              ; +0xb7, 0x140151c57\ncmova   rdx, [rsp+88h+Block]                                           ; +0xbd, 0x140151c5d\nmov     rax, [rdi]                                                     ; +0xc3, 0x140151c63\nmov     rcx, rdi                                                       ; +0xc6, 0x140151c66\ncall    qword ptr [rax+60h]                                            ; +0xc9, 0x140151c69\nnop                                                                    ; +0xcc, 0x140151c6c\nmov     rdx, qword ptr [rsp+88h+var_28+8]                              ; +0xcd, 0x140151c6d\ncmp     rdx, 0Fh                                                       ; +0xd2, 0x140151c72\njbe     short loc_140151CD3                                            ; +0xd6, 0x140151c76\ninc     rdx                                                            ; +0xd8, 0x140151c78\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0xdb, 0x140151c7b\nmov     rax, rcx                                                       ; +0xe0, 0x140151c80\ncmp     rdx, 1000h                                                     ; +0xe3, 0x140151c83\njb      short loc_140151CCE                                            ; +0xea, 0x140151c8a\nadd     rdx, 27h ; '''                                                 ; +0xec, 0x140151c8c\nmov     rcx, [rcx-8]                                                   ; +0xf0, 0x140151c90\nsub     rax, rcx                                                       ; +0xf4, 0x140151c94\nsub     rax, 8                                                         ; +0xf7, 0x140151c97\ncmp     rax, 1Fh                                                       ; +0xfb, 0x140151c9b\njbe     short loc_140151CCE                                            ; +0xff, 0x140151c9f\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x101, 0x140151ca1\nxor     r9d, r9d; LineNo                                               ; +0x10a, 0x140151caa\nxor     r8d, r8d; FileName                                             ; +0x10d, 0x140151cad\nxor     edx, edx; FunctionName                                         ; +0x110, 0x140151cb0\nxor     ecx, ecx; Expression                                           ; +0x112, 0x140151cb2\ncall    cs:_invoke_watson                                              ; +0x114, 0x140151cb4\ndb 90h                                                                 ; +0x11a, 0x140151cba\nlea     rdx, [r8+28h]                                                  ; +0x11b, 0x140151cbb\nlea     rcx, [rsp+88h+Block]                                           ; +0x11f, 0x140151cbf\ncall    sub_14003F4F0                                                  ; +0x124, 0x140151cc4\njmp     loc_140151C47                                                  ; +0x129, 0x140151cc9\ncall    j_j_free                                                       ; +0x12e, 0x140151cce\nmov     rcx, [rsp+88h+var_18]                                          ; +0x133, 0x140151cd3\nxor     rcx, rsp; StackCookie                                          ; +0x138, 0x140151cd8\ncall    __security_check_cookie                                        ; +0x13b, 0x140151cdb\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x140, 0x140151ce0\nadd     rsp, 80h                                                       ; +0x148, 0x140151ce8\npop     rdi                                                            ; +0x14f, 0x140151cef\nretn                                                                   ; +0x150, 0x140151cf0", "xrefs": ["ArtistCell::loadFromObject @ 0x14015198c", "<???> @ 0x140917870"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}