{"type": "func", "start": 5370092096, "end": 5370092433, "name": "ArtistCell::onNewgrounds", "pseudocode": "// \n// ArtistCell::onNewgrounds from 0x140151a40 to 0x140151b91 (337 bytes)\n// \n// 2 xrefs:\n// > ArtistCell::loadFromObject @ 0x1401517e6\n// > <???> @ 0x140917864\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\n// Hidden C++ exception states: #wind=2\nvoid __fastcall ArtistCell::onNewgrounds(__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) != 2 )\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::onNewgrounds from 0x140151a40 to 0x140151b91 (337 bytes)\n; \n; 2 xrefs:\n; > ArtistCell::loadFromObject @ 0x1401517e6\n; > <???> @ 0x140917864\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, 0x140151a40\npush    rdi                                                            ; +0x5, 0x140151a45\nsub     rsp, 80h                                                       ; +0x6, 0x140151a46\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140151a4d\nxor     rax, rsp                                                       ; +0x14, 0x140151a54\nmov     [rsp+88h+var_18], rax                                          ; +0x17, 0x140151a57\nmov     rbx, rcx                                                       ; +0x1c, 0x140151a5c\ncmp     qword ptr [rcx+230h], 0                                        ; +0x1f, 0x140151a5f\njz      loc_140151B73                                                  ; +0x27, 0x140151a67\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x2d, 0x140151a6d\nmov     rdi, rax                                                       ; +0x33, 0x140151a73\nlea     rdx, [rsp+88h+var_50]                                          ; +0x36, 0x140151a76\nmov     rcx, [rbx+230h]                                                ; +0x3b, 0x140151a7b\ncall    SongInfoObject__getArtistLinks                                 ; +0x42, 0x140151a82\nnop                                                                    ; +0x47, 0x140151a87\nxor     r9d, r9d                                                       ; +0x48, 0x140151a88\nmov     rcx, [rsp+88h+var_48]                                          ; +0x4b, 0x140151a8b\nmov     r8, [rsp+88h+var_50]                                           ; +0x50, 0x140151a90\nsub     rcx, r8                                                        ; +0x55, 0x140151a95\nmov     rax, 0E38E38E38E38E39h                                         ; +0x58, 0x140151a98\nimul    rcx                                                            ; +0x62, 0x140151aa2\nsar     rdx, 2                                                         ; +0x65, 0x140151aa5\nmov     rax, rdx                                                       ; +0x69, 0x140151aa9\nshr     rax, 3Fh                                                       ; +0x6c, 0x140151aac\nadd     rdx, rax                                                       ; +0x70, 0x140151ab0\njz      short loc_140151ACC                                            ; +0x73, 0x140151ab3\ncmp     dword ptr [r8+4], 2                                            ; +0x75, 0x140151ab5\njz      loc_140151B5B                                                  ; +0x7a, 0x140151aba\ninc     r9                                                             ; +0x80, 0x140151ac0\nadd     r8, 48h ; 'H'                                                  ; +0x83, 0x140151ac3\ncmp     r9, rdx                                                        ; +0x87, 0x140151ac7\njb      short loc_140151AB5                                            ; +0x8a, 0x140151aca\nxorps   xmm0, xmm0                                                     ; +0x8c, 0x140151acc\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x8f, 0x140151acf\nmovdqa  xmm1, cs:Size                                                  ; +0x94, 0x140151ad4\nmovdqu  [rsp+88h+var_28], xmm1                                         ; +0x9c, 0x140151adc\nmov     byte ptr [rsp+88h+Block], 0                                    ; +0xa2, 0x140151ae2\nlea     rcx, [rsp+88h+var_50]; void *                                  ; +0xa7, 0x140151ae7\ncall    sub_1401226A0                                                  ; +0xac, 0x140151aec\nnop                                                                    ; +0xb1, 0x140151af1\nlea     rdx, [rsp+88h+Block]                                           ; +0xb2, 0x140151af2\ncmp     qword ptr [rsp+88h+var_28+8], 0Fh                              ; +0xb7, 0x140151af7\ncmova   rdx, [rsp+88h+Block]                                           ; +0xbd, 0x140151afd\nmov     rax, [rdi]                                                     ; +0xc3, 0x140151b03\nmov     rcx, rdi                                                       ; +0xc6, 0x140151b06\ncall    qword ptr [rax+60h]                                            ; +0xc9, 0x140151b09\nnop                                                                    ; +0xcc, 0x140151b0c\nmov     rdx, qword ptr [rsp+88h+var_28+8]                              ; +0xcd, 0x140151b0d\ncmp     rdx, 0Fh                                                       ; +0xd2, 0x140151b12\njbe     short loc_140151B73                                            ; +0xd6, 0x140151b16\ninc     rdx                                                            ; +0xd8, 0x140151b18\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0xdb, 0x140151b1b\nmov     rax, rcx                                                       ; +0xe0, 0x140151b20\ncmp     rdx, 1000h                                                     ; +0xe3, 0x140151b23\njb      short loc_140151B6E                                            ; +0xea, 0x140151b2a\nadd     rdx, 27h ; '''                                                 ; +0xec, 0x140151b2c\nmov     rcx, [rcx-8]                                                   ; +0xf0, 0x140151b30\nsub     rax, rcx                                                       ; +0xf4, 0x140151b34\nsub     rax, 8                                                         ; +0xf7, 0x140151b37\ncmp     rax, 1Fh                                                       ; +0xfb, 0x140151b3b\njbe     short loc_140151B6E                                            ; +0xff, 0x140151b3f\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x101, 0x140151b41\nxor     r9d, r9d; LineNo                                               ; +0x10a, 0x140151b4a\nxor     r8d, r8d; FileName                                             ; +0x10d, 0x140151b4d\nxor     edx, edx; FunctionName                                         ; +0x110, 0x140151b50\nxor     ecx, ecx; Expression                                           ; +0x112, 0x140151b52\ncall    cs:_invoke_watson                                              ; +0x114, 0x140151b54\ndb 90h                                                                 ; +0x11a, 0x140151b5a\nlea     rdx, [r8+28h]                                                  ; +0x11b, 0x140151b5b\nlea     rcx, [rsp+88h+Block]                                           ; +0x11f, 0x140151b5f\ncall    sub_14003F4F0                                                  ; +0x124, 0x140151b64\njmp     loc_140151AE7                                                  ; +0x129, 0x140151b69\ncall    j_j_free                                                       ; +0x12e, 0x140151b6e\nmov     rcx, [rsp+88h+var_18]                                          ; +0x133, 0x140151b73\nxor     rcx, rsp; StackCookie                                          ; +0x138, 0x140151b78\ncall    __security_check_cookie                                        ; +0x13b, 0x140151b7b\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x140, 0x140151b80\nadd     rsp, 80h                                                       ; +0x148, 0x140151b88\npop     rdi                                                            ; +0x14f, 0x140151b8f\nretn                                                                   ; +0x150, 0x140151b90", "xrefs": ["ArtistCell::loadFromObject @ 0x1401517e6", "<???> @ 0x140917864"], "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"}