{"type": "func", "start": 5369548304, "end": 5369548537, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x1400cce10 to 0x1400ccef9 (233 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14054ec68\n// > <???> @ 0x1406c8388\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 CustomSongWidget::loadSongInfoFailed(CustomSongWidget *a1, int a2, GJSongError a3)\n{\n  bool *p_m_bRunning; // rcx\n  __int64 *v7; // rdx\n  __int64 *v8; // rax\n  float d; // eax\n  int v10; // [rsp+38h] [rbp+10h] BYREF\n\n  v10 = a2;\n  p_m_bRunning = &a1->m_bRunning;\n  v7 = *(__int64 **)p_m_bRunning;\n  v8 = *(__int64 **)(*(_QWORD *)p_m_bRunning + 8LL);\n  while ( !*((_BYTE *)v8 + 25) )\n  {\n    if ( *((_DWORD *)v8 + 7) >= a2 )\n    {\n      v7 = v8;\n      v8 = (__int64 *)*v8;\n    }\n    else\n    {\n      v8 = (__int64 *)v8[2];\n    }\n  }\n  if ( *((_BYTE *)v7 + 25) || a2 < *((_DWORD *)v7 + 7) )\n  {\n    d = a1->m_sInverse.d;\n    if ( LODWORD(d) == a2 && d != 0.0 )\n    {\n      CustomSongWidget::updateError((CustomSongWidget *)((char *)a1 - 320), a3);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_sAdditionalTransform.d + 320LL))(\n        *(_QWORD *)&a1->m_sAdditionalTransform.d,\n        0);\n      cocos2d::CCNode::unschedule(&a1[-1].m_bReorderChildDirty, CustomSongWidget::updateDownloadProgress);\n      HIBYTE(a1->m_sInverse.b) = 0;\n      CustomSongWidget::updateSongInfo((CustomSongWidget *)((char *)a1 - 320));\n    }\n  }\n  else\n  {\n    sub_1400CDAE0(p_m_bRunning, &v10);\n    ((void (__fastcall *)(CustomSongWidget *, _QWORD, _QWORD))a1->update)(a1, (unsigned int)a2, (unsigned int)a3);\n  }\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x1400cce10 to 0x1400ccef9 (233 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14054ec68\n; > <???> @ 0x1406c8388\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400cce10\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1400cce15\nmov     [rsp+arg_8], edx                                               ; +0xa, 0x1400cce1a\npush    rdi                                                            ; +0xe, 0x1400cce1e\nsub     rsp, 20h                                                       ; +0xf, 0x1400cce1f\nmov     rdi, rcx                                                       ; +0x13, 0x1400cce23\nmov     ebx, edx                                                       ; +0x16, 0x1400cce26\nadd     rcx, 110h                                                      ; +0x18, 0x1400cce28\nmov     ebp, r8d                                                       ; +0x1f, 0x1400cce2f\nmov     rdx, [rcx]                                                     ; +0x22, 0x1400cce32\nmov     rax, [rdx+8]                                                   ; +0x25, 0x1400cce35\ncmp     byte ptr [rax+19h], 0                                          ; +0x29, 0x1400cce39\njnz     short loc_1400CCE57                                            ; +0x2d, 0x1400cce3d\nnop                                                                    ; +0x2f, 0x1400cce3f\ncmp     [rax+1Ch], ebx                                                 ; +0x30, 0x1400cce40\njge     short loc_1400CCE4B                                            ; +0x33, 0x1400cce43\nmov     rax, [rax+10h]                                                 ; +0x35, 0x1400cce45\njmp     short loc_1400CCE51                                            ; +0x39, 0x1400cce49\nmov     rdx, rax                                                       ; +0x3b, 0x1400cce4b\nmov     rax, [rax]                                                     ; +0x3e, 0x1400cce4e\ncmp     byte ptr [rax+19h], 0                                          ; +0x41, 0x1400cce51\njz      short loc_1400CCE40                                            ; +0x45, 0x1400cce55\ncmp     byte ptr [rdx+19h], 0                                          ; +0x47, 0x1400cce57\njnz     short loc_1400CCE8A                                            ; +0x4b, 0x1400cce5b\ncmp     ebx, [rdx+1Ch]                                                 ; +0x4d, 0x1400cce5d\njl      short loc_1400CCE8A                                            ; +0x50, 0x1400cce60\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x52, 0x1400cce62\ncall    sub_1400CDAE0                                                  ; +0x57, 0x1400cce67\nmov     rax, [rdi]                                                     ; +0x5c, 0x1400cce6c\nmov     r8d, ebp                                                       ; +0x5f, 0x1400cce6f\nmov     edx, ebx                                                       ; +0x62, 0x1400cce72\nmov     rcx, rdi                                                       ; +0x64, 0x1400cce74\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x67, 0x1400cce77\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x6c, 0x1400cce7c\nadd     rsp, 20h                                                       ; +0x71, 0x1400cce81\npop     rdi                                                            ; +0x75, 0x1400cce85\njmp     qword ptr [rax+20h]                                            ; +0x76, 0x1400cce86\nmov     eax, [rdi+0B0h]                                                ; +0x7a, 0x1400cce8a\nmov     [rsp+28h+arg_0], rsi                                           ; +0x80, 0x1400cce90\ncmp     eax, ebx                                                       ; +0x85, 0x1400cce95\njnz     short loc_1400CCEE4                                            ; +0x87, 0x1400cce97\ntest    eax, eax                                                       ; +0x89, 0x1400cce99\njz      short loc_1400CCEE4                                            ; +0x8b, 0x1400cce9b\nmov     edx, ebp                                                       ; +0x8d, 0x1400cce9d\nlea     rcx, [rdi-140h]                                                ; +0x8f, 0x1400cce9f\ncall    CustomSongWidget__updateError                                  ; +0x96, 0x1400ccea6\nmov     rcx, [rdi+80h]                                                 ; +0x9b, 0x1400cceab\nxor     edx, edx                                                       ; +0xa2, 0x1400cceb2\nmov     rax, [rcx]                                                     ; +0xa4, 0x1400cceb4\ncall    qword ptr [rax+140h]                                           ; +0xa7, 0x1400cceb7\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0xad, 0x1400ccebd\nlea     rcx, [rdi-140h]                                                ; +0xb4, 0x1400ccec4\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xbb, 0x1400ccecb\nlea     rcx, [rdi-140h]                                                ; +0xc1, 0x1400cced1\nmov     byte ptr [rdi+0ABh], 0                                         ; +0xc8, 0x1400cced8\ncall    CustomSongWidget__updateSongInfo                               ; +0xcf, 0x1400ccedf\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xd4, 0x1400ccee4\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xd9, 0x1400ccee9\nmov     rbp, [rsp+28h+arg_18]                                          ; +0xde, 0x1400cceee\nadd     rsp, 20h                                                       ; +0xe3, 0x1400ccef3\npop     rdi                                                            ; +0xe7, 0x1400ccef7\nretn                                                                   ; +0xe8, 0x1400ccef8", "xrefs": ["<???> @ 0x14054ec68", "<???> @ 0x1406c8388"], "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"}