	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_lcdr_line@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jg	LBB0_2
## %bb.1:
	leal	2(%rax), %ecx
	movl	%ecx, (%rbx)
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax), %esi
	addl	$10, %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_smalltext_out16
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	movq	_romFileName@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$80, %r8d
	callq	_smalltext_out16_lim
	movl	(%rbx), %eax
LBB0_2:
	imull	$480, %r14d, %ecx               ## imm = 0x1E0
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movq	_menu_screen@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	shll	$10, %eax
	leal	(%rax,%rax,4), %eax
	movslq	%eax, %r15
	leaq	(%r14,%r15,2), %rdi
	cmpl	$480, %ecx                      ## imm = 0x1E0
	movl	$480, %ebx                      ## imm = 0x1E0
	cmovll	%ecx, %ebx
	addl	%ebx, %ebx
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$1024, %rdi                     ## imm = 0x400
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$2048, %rdi                     ## imm = 0x800
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$3072, %rdi                     ## imm = 0xC00
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$4096, %rdi                     ## imm = 0x1000
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$5120, %rdi                     ## imm = 0x1400
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$6144, %rdi                     ## imm = 0x1800
	movl	$255, %esi
	movl	%ebx, %edx
	callq	_memset
	leaq	(%r14,%r15,2), %rdi
	addq	$7168, %rdi                     ## imm = 0x1C00
	movl	$255, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lcdr_line,4,2                  ## @lcdr_line
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing CD image / MP3s"

	.comm	_romFileName,4,2                ## @romFileName
	.comm	_menu_screen,8,3                ## @menu_screen
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _lcdr_line@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lcdr_line@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #2
	b.gt	LBB0_2
; %bb.1:
	add	w9, w8, #2
	str	w9, [x20]
	mov	w9, #10
	mul	w8, w8, w9
	add	w1, w8, #10
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w3, #65535
	bl	_smalltext_out16
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
Lloh4:
	adrp	x8, _romFileName@GOTPAGE
Lloh5:
	ldr	x8, [x8, _romFileName@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w3, #65535
	mov	w4, #80
	bl	_smalltext_out16_lim
	ldr	w8, [x20]
LBB0_2:
	mov	w9, #480
	mul	w10, w19, w9
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w11
Lloh7:
	adrp	x11, _menu_screen@GOTPAGE
Lloh8:
	ldr	x11, [x11, _menu_screen@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #10
	add	x19, x11, w8, sxtw #1
	cmp	w10, #480
	csel	w8, w10, w9, lt
	lsl	w20, w8, #1
	mov	x0, x19
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	add	x0, x19, #1024
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	add	x0, x19, #2048
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	add	x0, x19, #3072
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	add	x0, x19, #1, lsl #12            ; =4096
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	mov	w8, #5120
	add	x0, x19, x8
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	mov	w8, #6144
	add	x0, x19, x8
	mov	w1, #255
	mov	x2, x20
	bl	_memset
	mov	w8, #7168
	add	x0, x19, x8
	mov	w1, #255
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_lcdr_line,4,2                  ; @lcdr_line
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing CD image / MP3s"

	.comm	_romFileName,4,2                ; @romFileName
	.comm	_menu_screen,8,3                ; @menu_screen
	.no_dead_strip	_cdload_progress_cb
.subsections_via_symbols
