{"type": "func", "start": 5370195136, "end": 5370195367, "name": "CustomSongWidget::updateUsageButton", "pseudocode": "// \n// CustomSongWidget::updateUsageButton from 0x14016acc0 to 0x14016ada7 (231 bytes)\n// \n// 6 xrefs:\n// > CustomSongWidget::updateSongInfo @ 0x14016c3cc\n// > CustomSongWidget::updateMultiAssetInfo @ 0x14016dafe\n// > <???> @ 0x14089c4fc\n// > <???> @ 0x14089c50c\n// > <???> @ 0x140918080\n// > <???> @ 0x14091808c\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:28 +0000\n// \n\nvoid __fastcall CustomSongWidget::updateUsageButton(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  char v5; // al\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  char v9; // [rsp+30h] [rbp+8h] BYREF\n  char v10; // [rsp+38h] [rbp+10h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 536);\n  if ( v3 )\n  {\n    if ( *(_BYTE *)(a1 + 544) && (v4 = *(_QWORD *)(a1 + 336)) != 0 && !*(_BYTE *)(a1 + 500) && *(int *)(v4 + 320) > 0 )\n    {\n      LOBYTE(a2) = 1;\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 336LL))(v3, a2);\n      v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 344LL))(*(_QWORD *)(a1 + 440));\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (float)(int)(v5 != 0 ? 0xFFFFFFEB : 0), 0.0);\n      v7 = v6;\n      v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 200LL))(*(_QWORD *)(a1 + 440));\n      cocos2d::CCPoint::operator+(v8, &v9, v7);\n      (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 536) + 184LL))(*(_QWORD *)(a1 + 536), &v9);\n    }\n    else\n    {\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 336LL))(v3, 0);\n    }\n  }\n}", "assembly": "; \n; CustomSongWidget::updateUsageButton from 0x14016acc0 to 0x14016ada7 (231 bytes)\n; \n; 6 xrefs:\n; > CustomSongWidget::updateSongInfo @ 0x14016c3cc\n; > CustomSongWidget::updateMultiAssetInfo @ 0x14016dafe\n; > <???> @ 0x14089c4fc\n; > <???> @ 0x14089c50c\n; > <???> @ 0x140918080\n; > <???> @ 0x14091808c\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:28 +0000\n; \npush    rdi                                                            ; +0x0, 0x14016acc0\nsub     rsp, 20h                                                       ; +0x2, 0x14016acc2\nmov     rdi, rcx                                                       ; +0x6, 0x14016acc6\nmov     rcx, [rcx+218h]                                                ; +0x9, 0x14016acc9\ntest    rcx, rcx                                                       ; +0x10, 0x14016acd0\njz      loc_14016ADA1                                                  ; +0x13, 0x14016acd3\ncmp     byte ptr [rdi+220h], 0                                         ; +0x19, 0x14016acd9\njz      loc_14016AD90                                                  ; +0x20, 0x14016ace0\nmov     rax, [rdi+150h]                                                ; +0x26, 0x14016ace6\ntest    rax, rax                                                       ; +0x2d, 0x14016aced\njz      loc_14016AD90                                                  ; +0x30, 0x14016acf0\ncmp     byte ptr [rdi+1F4h], 0                                         ; +0x36, 0x14016acf6\njnz     loc_14016AD90                                                  ; +0x3d, 0x14016acfd\ncmp     dword ptr [rax+140h], 0                                        ; +0x43, 0x14016ad03\njle     loc_14016AD90                                                  ; +0x4a, 0x14016ad0a\nmov     rax, [rcx]                                                     ; +0x50, 0x14016ad10\nmov     dl, 1                                                          ; +0x53, 0x14016ad13\nmov     [rsp+28h+arg_10], rbx                                          ; +0x55, 0x14016ad15\ncall    qword ptr [rax+150h]                                           ; +0x5a, 0x14016ad1a\nmov     rcx, [rdi+1B8h]                                                ; +0x60, 0x14016ad20\nmov     rax, [rcx]                                                     ; +0x67, 0x14016ad27\ncall    qword ptr [rax+158h]                                           ; +0x6a, 0x14016ad2a\nneg     al                                                             ; +0x70, 0x14016ad30\nxorps   xmm2, xmm2                                                     ; +0x72, 0x14016ad32\nsbb     ecx, ecx                                                       ; +0x75, 0x14016ad35\nand     ecx, 0FFFFFFEBh                                                ; +0x77, 0x14016ad37\nmovd    xmm1, ecx                                                      ; +0x7a, 0x14016ad3a\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x7e, 0x14016ad3e\ncvtdq2ps xmm1, xmm1                                                    ; +0x83, 0x14016ad43\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x86, 0x14016ad46\nmov     rcx, [rdi+1B8h]                                                ; +0x8c, 0x14016ad4c\nmov     rbx, rax                                                       ; +0x93, 0x14016ad53\nmov     rdx, [rcx]                                                     ; +0x96, 0x14016ad56\ncall    qword ptr [rdx+0C8h]                                           ; +0x99, 0x14016ad59\nmov     r8, rbx                                                        ; +0x9f, 0x14016ad5f\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xa2, 0x14016ad62\nmov     rcx, rax                                                       ; +0xa7, 0x14016ad67\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xaa, 0x14016ad6a\nmov     rcx, [rdi+218h]                                                ; +0xb0, 0x14016ad70\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xb7, 0x14016ad77\nmov     rax, [rcx]                                                     ; +0xbc, 0x14016ad7c\ncall    qword ptr [rax+0B8h]                                           ; +0xbf, 0x14016ad7f\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xc5, 0x14016ad85\nadd     rsp, 20h                                                       ; +0xca, 0x14016ad8a\npop     rdi                                                            ; +0xce, 0x14016ad8e\nretn                                                                   ; +0xcf, 0x14016ad8f\nmov     rax, [rcx]                                                     ; +0xd0, 0x14016ad90\nxor     edx, edx                                                       ; +0xd3, 0x14016ad93\nadd     rsp, 20h                                                       ; +0xd5, 0x14016ad95\npop     rdi                                                            ; +0xd9, 0x14016ad99\njmp     qword ptr [rax+150h]                                           ; +0xda, 0x14016ad9a\nadd     rsp, 20h                                                       ; +0xe1, 0x14016ada1\npop     rdi                                                            ; +0xe5, 0x14016ada5\nretn                                                                   ; +0xe6, 0x14016ada6", "xrefs": ["CustomSongWidget::updateSongInfo @ 0x14016c3cc", "CustomSongWidget::updateMultiAssetInfo @ 0x14016dafe", "<???> @ 0x14089c4fc", "<???> @ 0x14089c50c", "<???> @ 0x140918080", "<???> @ 0x14091808c"], "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"}