	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hs20_osu_icon_fetch_result
_hs20_osu_icon_fetch_result:            ## @hs20_osu_icon_fetch_result
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_os_get_reltime
	leaq	24(%r15), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_os_reltime_sub
	imull	$1000, -32(%rbp), %eax          ## imm = 0x3E8
	movslq	-28(%rbp), %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	addl	%eax, %edx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r14d, %ecx
	callq	_wpa_printf
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	16(%r15), %rcx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx,%rsi), %rsi
	addq	$8, %rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$16, %rsi
	decq	%rdi
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rsi)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -8(%rsi)
	jne	LBB0_9
## %bb.6:
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.8:
	movq	8(%r15), %rax
	movq	%rax, (%rsi)
	jmp	LBB0_11
LBB0_7:
	movl	$1, -8(%rsi)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HS 2.0: Icon fetch dur=%d ms res=%d"

	.no_dead_strip	_hs20_osu_icon_fetch_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hs20_osu_icon_fetch_result
_hs20_osu_icon_fetch_result:            ; @hs20_osu_icon_fetch_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_os_get_reltime
	add	x1, x19, #24
	add	x0, sp, #8
	mov	x2, sp
	bl	_os_reltime_sub
	mov	w8, #1000
	ldp	w9, w10, [sp]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w2, w9, w8, w10
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_wpa_printf
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x11, x9, #4
	ldr	x12, [x10, x11]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x10, x9, lsl #4
	ldr	x11, [x11, #8]
	add	x11, x11, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x11, x11, #16
	subs	x12, x12, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11]
	cbnz	x13, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldur	w13, [x11, #-8]
	cbnz	w13, LBB0_5
; %bb.8:
	tbnz	w20, #31, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	str	x8, [x11]
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	stur	w8, [x11, #-8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HS 2.0: Icon fetch dur=%d ms res=%d"

	.no_dead_strip	_hs20_osu_icon_fetch_result
.subsections_via_symbols
