	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdload_progress_cb
_cdload_progress_cb:                    ## @cdload_progress_cb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_g_menuscreen_w@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_menu_draw_begin
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	movq	_me_sfont_h@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	addl	%ecx, %ecx
	movl	%ecx, %esi
	imull	%edx, %esi
	movslq	%esi, %r12
	addq	%r12, %r12
	addq	(%rax), %r12
	addl	$-2, %edx
	imull	%ecx, %edx
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_memset
	movl	(%r14), %eax
	leal	(%rax,%rax,2), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	(%r14), %esi
	shll	$2, %esi
	movl	$1, %edi
	movq	%r15, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	(%r14), %r15d
	cmpl	$3, %r15d
	jl	LBB0_3
## %bb.1:
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %r14         ## imm = 0x51EB851F
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$37, %r14
	addl	%eax, %r14d
	movl	(%r13), %eax
	cmpl	%eax, %r14d
	cmovgel	%eax, %r14d
	imull	%r15d, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	leaq	(%r12,%rax,2), %rbx
	addl	%r14d, %r14d
	decl	%r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
	movslq	(%r13), %rax
	leaq	(%rbx,%rax,2), %rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_menu_draw_end
	movq	_cdload_called@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_g_menuscreen_ptr,8,3           ## @g_menuscreen_ptr
	.comm	_me_sfont_h,4,2                 ## @me_sfont_h
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing CD image / MP3s"

	.comm	_cdload_called,4,2              ## @cdload_called
	.no_dead_strip	_cdload_progress_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdload_progress_cb
_cdload_progress_cb:                    ; @cdload_progress_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _g_menuscreen_w@GOTPAGE
Lloh1:
	ldr	x23, [x23, _g_menuscreen_w@GOTPAGEOFF]
	ldr	w24, [x23]
	mov	w22, #1
	mov	w0, #0
	mov	w1, #1
	bl	_menu_draw_begin
Lloh2:
	adrp	x8, _g_menuscreen_ptr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w9, [x23]
Lloh5:
	adrp	x25, _me_sfont_h@GOTPAGE
Lloh6:
	ldr	x25, [x25, _me_sfont_h@GOTPAGEOFF]
	ldr	w10, [x25]
	lsl	w9, w9, #1
	mul	w11, w9, w10
	add	x20, x8, w11, sxtw #1
	sub	w8, w10, #2
	mul	w2, w9, w8
	mov	x0, x20
	mov	w1, #255
	bl	_memset
	ldr	w8, [x25]
	add	w1, w8, w8, lsl #1
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w3, #65535
	bl	_smalltext_out16
	ldr	w8, [x25]
	lsl	w1, w8, #2
	mov	w0, #1
	mov	x2, x21
	mov	w3, #65535
	bl	_smalltext_out16
	ldr	w8, [x25]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	mul	w9, w24, w19
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	ldr	w11, [x23]
	add	w9, w9, w10
	cmp	w9, w11
	csel	w9, w9, w11, lt
	mul	w10, w11, w8
	add	w10, w10, w10, lsl #1
	add	x19, x20, w10, sxtw #1
	lsl	w20, w9, #1
	sub	w21, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	ldrsw	x8, [x23]
	add	x19, x19, x8, lsl #1
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_2
LBB0_3:
	bl	_menu_draw_end
Lloh9:
	adrp	x8, _cdload_called@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cdload_called@GOTPAGEOFF]
Lloh11:
	str	w22, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_g_menuscreen_ptr,8,3           ; @g_menuscreen_ptr
	.comm	_me_sfont_h,4,2                 ; @me_sfont_h
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing CD image / MP3s"

	.comm	_cdload_called,4,2              ; @cdload_called
	.no_dead_strip	_cdload_progress_cb
.subsections_via_symbols
