	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_cd_image                  ## -- Begin function load_cd_image
	.p2align	4, 0x90
_load_cd_image:                         ## @load_cd_image
	.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
	subq	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_cdd@GOTPCREL(%rip), %rax
	movq	8(%rax), %r12
	movl	$1, %esi
	callq	_PicoCDLoadProgressCB
	movq	_CT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Pico_mcd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_cue_parse
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rax
	movq	32(%rax), %rdi
	movl	40(%rax), %eax
	movl	%eax, (%r14)
	movq	%rdi, -336(%rbp)                ## 8-byte Spill
	callq	_pm_open
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_cue_destroy
	movl	$-1, %r15d
	jmp	LBB0_48
LBB0_1:
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_pm_open
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	%rax, 16(%r12)
	movl	(%r14), %ecx
	movq	_CT_ISO@GOTPCREL(%rip), %rdx
	movl	(%rax), %esi
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.6:
	sarl	$11, %esi
	jmp	LBB0_8
LBB0_7:
	movslq	%esi, %rcx
	imulq	$1869917735, %rcx, %rsi         ## imm = 0x6F74AE27
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$42, %rsi
	addl	%ecx, %esi
LBB0_8:
	movl	%esi, (%rax)
	movl	$0, (%r12)
	movl	%esi, 4(%r12)
	movl	$0, 8(%r12)
	leaq	-314(%rbp), %rbx
	movq	%rsi, %r14
	movq	%rbx, %rdi
	movl	$10, %esi
	xorl	%edx, %edx
	callq	_sprintf_lba
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %ecx
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdx
	movq	-336(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_elprintf
	testq	%r15, %r15
	movq	%r15, -344(%rbp)                ## 8-byte Spill
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	je	LBB0_27
## %bb.9:
	movq	8(%r15), %rax
	cmpq	$0, 64(%rax)
	movq	%r14, -352(%rbp)                ## 8-byte Spill
	movl	%r14d, %ebx
	jne	LBB0_11
## %bb.10:
	movl	76(%rax), %ebx
	movl	%ebx, 4(%r12)
LBB0_11:
	movl	(%r15), %ecx
	movl	$2, %r13d
	cmpl	$2, %ecx
	jge	LBB0_13
## %bb.12:
	movl	%ebx, %edi
	jmp	LBB0_46
LBB0_27:
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$255, %eax
	movl	$255, %ecx
	cmovbl	%eax, %ecx
	leal	1(%rcx), %eax
	movl	%eax, -388(%rbp)                ## 4-byte Spill
	leaq	-304(%rbp,%rcx), %rax
	movq	%rax, -408(%rbp)                ## 8-byte Spill
	movq	%rcx, -416(%rbp)                ## 8-byte Spill
	leaq	-308(%rbp,%rcx), %rsi
	movl	$2, %r13d
	movq	%r14, %rdi
	leaq	-324(%rbp), %r14
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%r12, -376(%rbp)                ## 8-byte Spill
	movq	%rsi, -424(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movq	%rdi, -352(%rbp)                ## 8-byte Spill
	cmpl	$2, %ecx
	movq	%rcx, -360(%rbp)                ## 8-byte Spill
	jb	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	$100, %eax
	subl	%ecx, %eax
	imull	%ebx, %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	addl	%ecx, %esi
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	callq	_PicoCDLoadProgressCB
	movq	-360(%rbp), %rcx                ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%ebx, -364(%rbp)                ## 4-byte Spill
	movq	%r13, -400(%rbp)                ## 8-byte Spill
	leal	-1(%r13), %eax
	movl	%eax, -328(%rbp)                ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	-336(%rbp), %rbx                ## 8-byte Reload
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	_reltable.load_cd_image(%rip), %rax
	movq	%r12, -384(%rbp)                ## 8-byte Spill
	movslq	(%r12,%rax), %rdx
	addq	%rax, %rdx
	leaq	-314(%rbp), %r15
	movq	%r15, %rdi
	movl	$10, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, -392(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_to_upper
	movl	-328(%rbp), %r14d               ## 4-byte Reload
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %r12
	movq	%rbx, %rsi
	movl	-388(%rbp), %edx                ## 4-byte Reload
	callq	_memcpy
	movq	-424(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-314(%rbp), %rsi
	callq	_strcpy
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_handle_mp3
	testl	%eax, %eax
	jg	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	leaq	-304(%rbp), %rdi
	movl	%r14d, %esi
	callq	_handle_mp3
	movl	%eax, %r15d
	testl	%eax, %eax
	jg	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	cmpl	$2, %ecx
	movq	%r12, %rbx
	jb	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_31 Depth=2
	movl	-392(%rbp), %eax                ## 4-byte Reload
	cmpl	%eax, -416(%rbp)                ## 4-byte Folded Reload
	movq	-384(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=2
	cltq
	movq	-408(%rbp), %rbx                ## 8-byte Reload
	subq	%rax, %rbx
	movq	%rbx, %rdi
	leaq	-314(%rbp), %rsi
	callq	_strcpy
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	-328(%rbp), %esi                ## 4-byte Reload
	callq	_handle_mp3
	testl	%eax, %eax
	jg	LBB0_32
## %bb.41:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%rbx, %rdi
	leaq	-324(%rbp), %r13
	movq	%r13, %rsi
	callq	_strcpy
	movq	%r14, %rdi
	movl	-328(%rbp), %esi                ## 4-byte Reload
	callq	_handle_mp3
	movl	%eax, %r15d
	movq	-336(%rbp), %rbx                ## 8-byte Reload
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_33
	jmp	LBB0_43
LBB0_36:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	movq	%r12, %rbx
	movq	-384(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_31 Depth=2
	testl	%r15d, %r15d
	jg	LBB0_43
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=2
	addq	$4, %r12
	cmpq	$40, %r12
	jne	LBB0_31
	jmp	LBB0_34
LBB0_38:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	-384(%rbp), %r12                ## 8-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_33
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	%eax, %r15d
LBB0_43:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	-352(%rbp), %rdx                ## 8-byte Reload
	movslq	-328(%rbp), %rax                ## 4-byte Folded Reload
	leaq	(%rax,%rax,2), %rax
	movq	-376(%rbp), %r12                ## 8-byte Reload
	movl	%edx, (%r12,%rax,8)
	leal	(%r15,%rdx), %ebx
	movl	%ebx, 4(%r12,%rax,8)
	movq	_CT_MP3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Pico_mcd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	leaq	-314(%rbp), %r14
	movq	%r14, %rdi
	movl	$10, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf_lba
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$0, -364(%rbp)                  ## 4-byte Folded Spill
	leaq	L_.str.13(%rip), %rsi
	movq	-400(%rbp), %r13                ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	leaq	-304(%rbp), %r9
	xorl	%eax, %eax
	callq	_elprintf
	incl	%r13d
	movl	%ebx, %edi
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	leaq	-324(%rbp), %r14
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	%r13, %r14
	movq	-352(%rbp), %rdi                ## 8-byte Reload
	movq	-400(%rbp), %r13                ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$2, %ecx
	setae	%al
	testl	%r15d, %r15d
	setle	%dl
	cmpl	$98, %ecx
	ja	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_28 Depth=1
	andb	%al, %dl
	movzbl	%dl, %eax
	movl	-364(%rbp), %ebx                ## 4-byte Reload
	addl	%eax, %ebx
	incl	%ecx
	cmpl	$4, %ebx
	jl	LBB0_28
	jmp	LBB0_46
LBB0_13:
	movl	$100, %eax
	xorl	%edx, %edx
	divl	%ecx
	incl	%eax
	movl	%eax, -328(%rbp)                ## 4-byte Spill
	addq	$40, %r12
	movl	$2, %r14d
	xorl	%r13d, %r13d
	movq	-344(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %r13
	leal	-1(%r14), %esi
	callq	_handle_mp3
	movq	%r12, %rdi
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rdi, -376(%rbp)                ## 8-byte Spill
	movq	-344(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15), %rax
	movl	72(%rax,%r13), %ecx
	movl	80(%rax,%r13), %eax
	testl	%eax, %eax
	cmovnel	%eax, %r12d
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	movl	%ebx, -16(%rdi)
	leal	(%r12,%rbx), %ecx
	movl	%ecx, -12(%rdi)
	leaq	-314(%rbp), %rdi
	movl	$10, %esi
	movl	%ebx, %edx
	movl	%ecx, %ebx
	callq	_sprintf_lba
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movq	64(%rax,%r13), %r9
	leaq	L_.str.12(%rip), %rsi
	movl	%r14d, %edx
	leaq	-314(%rbp), %rcx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_elprintf
	leaq	1(%r14), %rcx
	movslq	(%r15), %rax
	addq	$32, %r13
	movq	-376(%rbp), %r12                ## 8-byte Reload
	addq	$24, %r12
	cmpq	%rax, %r14
	movq	%rcx, %r14
	jge	LBB0_26
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-328(%rbp), %esi                ## 4-byte Reload
	imull	%r14d, %esi
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	callq	_PicoCDLoadProgressCB
	movq	8(%r15), %rax
                                        ## kill: def $ebx killed $ebx def $rbx
	addl	88(%rax,%r13), %ebx
	movl	72(%rax,%r13), %ecx
	movq	64(%rax,%r13), %rdi
	movq	_CT_MP3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	%r13, %r15
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rdi, %rdi
	movq	-352(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_pm_open
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, (%r12)
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%r15, %r13
	movl	76(%rcx,%r15), %ecx
	movl	%ecx, -8(%r12)
	movslq	(%rax), %rax
	movq	%r12, %rdi
	imulq	$1869917735, %rax, %r12         ## imm = 0x6F74AE27
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$42, %r12
	addl	%eax, %r12d
	jmp	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rcx), %rcx
	movq	%r14, %rsi
	cmpq	%rcx, %r14
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	76(%rax,%r15), %ecx
	movq	%r15, %r13
	movl	108(%rax,%r15), %r12d
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r15, %r13
	movq	64(%rax,%r15), %rcx
	leaq	L_.str.11(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	$0, -8(%r12)
	movq	%r12, %rdi
	movl	$150, %r12d
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %r13
	movl	76(%rax,%r15), %ecx
	movl	%edx, %r12d
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	subl	%ecx, %r12d
	movl	%ecx, -8(%rdi)
	jmp	LBB0_25
LBB0_2:
	movl	$-1, %r15d
	jmp	LBB0_48
LBB0_16:
	movq	%r14, %rcx
                                        ## kill: def $ebx killed $ebx killed $rbx
LBB0_26:
	movl	%ebx, %edi
	movq	%rcx, %r13
LBB0_46:
	decl	%r13d
	movq	_cdd@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movl	%edi, 4(%rax)
	movq	%rdi, %rdx
	leaq	-314(%rbp), %r14
	movq	%r14, %rdi
	movl	$10, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf_lba
	movq	_EL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_elprintf
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	movl	$100, %esi
	callq	_PicoCDLoadProgressCB
	movq	-344(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.47:
	callq	_cue_destroy
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.49:
	movl	%r15d, %eax
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.load_cd_image
_reltable.load_cd_image:
	.long	L_.str-_reltable.load_cd_image
	.long	L_.str.1-_reltable.load_cd_image
	.long	L_.str.2-_reltable.load_cd_image
	.long	L_.str.3-_reltable.load_cd_image
	.long	L_.str.4-_reltable.load_cd_image
	.long	L_.str.5-_reltable.load_cd_image
	.long	L_.str.6-_reltable.load_cd_image
	.long	L_.str.7-_reltable.load_cd_image
	.long	L_.str.8-_reltable.load_cd_image
	.long	L_.str.9-_reltable.load_cd_image

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02d.mp3"

L_.str.1:                               ## @.str.1
	.asciz	" %02d.mp3"

L_.str.2:                               ## @.str.2
	.asciz	"-%02d.mp3"

L_.str.3:                               ## @.str.3
	.asciz	"_%02d.mp3"

L_.str.4:                               ## @.str.4
	.asciz	" - %02d.mp3"

L_.str.5:                               ## @.str.5
	.asciz	"%d.mp3"

L_.str.6:                               ## @.str.6
	.asciz	" %d.mp3"

L_.str.7:                               ## @.str.7
	.asciz	"-%d.mp3"

L_.str.8:                               ## @.str.8
	.asciz	"_%d.mp3"

L_.str.9:                               ## @.str.9
	.asciz	" - %d.mp3"

	.comm	_cdd,16,3                       ## @cdd
	.comm	_CT_UNKNOWN,4,2                 ## @CT_UNKNOWN
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_CT_ISO,4,2                     ## @CT_ISO
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
L_.str.10:                              ## @.str.10
	.asciz	"Track  1: %s %9i DATA  %s"

	.comm	_CT_MP3,4,2                     ## @CT_MP3
L_.str.11:                              ## @.str.11
	.asciz	"track %2i (%s): can't determine length"

L_.str.12:                              ## @.str.12
	.asciz	"Track %2i: %s %9i AUDIO %s"

L_.str.13:                              ## @.str.13
	.asciz	"Track %2i: %s %9i AUDIO - %s"

L_.str.14:                              ## @.str.14
	.asciz	"End CD -  %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_cd_image                  ; -- Begin function load_cd_image
	.p2align	2
_load_cd_image:                         ; @load_cd_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #384]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _cdd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cdd@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w1, #1
	bl	_PicoCDLoadProgressCB
Lloh6:
	adrp	x8, _CT_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CT_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _Pico_mcd@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Pico_mcd@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	w8, [x9]
	mov	x0, x19
	bl	_cue_parse
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #32]
	ldr	w8, [x8, #40]
	str	w8, [x21]
	mov	x0, x19
	bl	_pm_open
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_cue_destroy
	mov	w0, #-1
	b	LBB0_43
LBB0_3:
	mov	x0, x19
	bl	_pm_open
	cbz	x0, LBB0_38
LBB0_4:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	str	x0, [x20, #16]
	ldr	w8, [x21]
	ldr	w9, [x0]
	mov	w10, #44583
	movk	w10, #28532, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #42
	add	w10, w10, w11
Lloh12:
	adrp	x11, _CT_ISO@GOTPAGE
Lloh13:
	ldr	x11, [x11, _CT_ISO@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	asr	w9, w9, #11
	cmp	w8, w11
	csel	w26, w10, w9, ne
	str	w26, [x0]
	stp	wzr, w26, [x20]
	str	wzr, [x20, #8]
	add	x21, sp, #102
	add	x0, sp, #102
	mov	w1, #10
	mov	w2, #0
	bl	_sprintf_lba
Lloh15:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w8, [x20, #4]
	stp	x8, x19, [sp, #8]
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_elprintf
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	cbz	x10, LBB0_9
; %bb.5:
	ldr	x8, [x10, #8]
	ldr	x9, [x8, #64]
	mov	x24, x26
	mov	x19, x10
	cbnz	x9, LBB0_7
; %bb.6:
	ldr	w24, [x8, #76]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w24, [x8, #4]
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #2
	b.ge	LBB0_26
; %bb.8:
	str	w24, [sp, #60]                  ; 4-byte Folded Spill
	mov	w26, #2
	b	LBB0_41
LBB0_9:
	mov	x0, x19
	bl	_strlen
	mov	w22, #0
	mov	w25, #0
	mov	w8, #255
	cmp	w0, #255
	csel	w20, w0, w8, lo
	add	w23, w20, #1
	add	x8, sp, #112
	add	x8, x8, x20
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	sub	x24, x8, #4
Lloh20:
	adrp	x21, _load_cd_image.exts@PAGE
Lloh21:
	add	x21, x21, _load_cd_image.exts@PAGEOFF
	str	w26, [sp, #60]                  ; 4-byte Folded Spill
	mov	w26, #2
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w22, #2
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w8, #100
	sub	w8, w8, w22
	mul	w8, w8, w25
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w1, w22, w8, asr #2
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_PicoCDLoadProgressCB
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x19, #0
	str	x26, [sp, #64]                  ; 8-byte Folded Spill
	mov	x8, x26
	sxtw	x8, w8
	sub	x26, x8, #1
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x21, x19]
	add	x0, sp, #102
	mov	w1, #10
	mov	x3, x22
	bl	_snprintf
	add	x0, sp, #102
	bl	_strlen
	mov	x28, x0
	add	x0, sp, #92
	add	x1, sp, #102
	bl	_to_upper
	add	x0, sp, #112
	ldr	x1, [sp, #80]                   ; 8-byte Folded Reload
	mov	x2, x23
	bl	_memcpy
	add	x1, sp, #102
	mov	x0, x24
	bl	_strcpy
	add	x0, sp, #112
	mov	x1, x26
	bl	_handle_mp3
	cmp	w0, #0
	b.gt	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x1, sp, #92
	mov	x0, x24
	bl	_strcpy
	add	x0, sp, #112
	mov	x1, x26
	bl	_handle_mp3
	mov	x27, x0
	cmp	w0, #0
	b.gt	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w22, #2
	b.lo	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w20, w28
	b.le	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	sub	x28, x8, w28, sxtw
	add	x1, sp, #102
	mov	x0, x28
	bl	_strcpy
	add	x0, sp, #112
	mov	x1, x26
	bl	_handle_mp3
	cmp	w0, #0
	b.gt	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x1, sp, #92
	mov	x0, x28
	bl	_strcpy
	add	x0, sp, #112
	mov	x1, x26
	bl	_handle_mp3
	mov	x27, x0
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	cmp	w27, #1
	b.ge	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x19, x19, #8
	cmp	x19, #80
	b.ne	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, x0
LBB0_23:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	mov	w9, #24
	madd	x8, x26, x9, x8
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	add	w19, w27, w2
	stp	w2, w19, [x8]
Lloh22:
	adrp	x8, _CT_MP3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CT_MP3@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _Pico_mcd@GOTPAGE
Lloh26:
	ldr	x9, [x9, _Pico_mcd@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	w8, [x9]
	add	x0, sp, #102
	mov	w1, #10
	bl	_sprintf_lba
Lloh28:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x8, sp, #112
	stp	x27, x8, [sp, #16]
	add	x8, sp, #102
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	stp	x26, x8, [sp]
Lloh31:
	adrp	x1, l_.str.13@PAGE
Lloh32:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_elprintf
	mov	w25, #0
	add	w26, w26, #1
	str	w19, [sp, #60]                  ; 4-byte Folded Spill
LBB0_24:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w27, #1
	ccmp	w22, #1, #0, lt
	cinc	w25, w25, hi
	cmp	w22, #98
	b.hi	LBB0_41
; %bb.25:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	cmp	w25, #4
	b.lt	LBB0_10
	b	LBB0_41
LBB0_26:
	mov	w9, #100
	udiv	w8, w9, w8
	add	w20, w8, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x21, x8, #40
	mov	w25, #2
	mov	w27, #64
Lloh33:
	adrp	x28, _CT_MP3@GOTPAGE
Lloh34:
	ldr	x28, [x28, _CT_MP3@GOTPAGEOFF]
	add	x23, sp, #102
Lloh35:
	adrp	x22, l_.str.12@PAGE
Lloh36:
	add	x22, x22, l_.str.12@PAGEOFF
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	sub	w1, w25, #1
	bl	_handle_mp3
	tbnz	w0, #31, LBB0_39
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	ldr	w9, [x8, #16]
	cmp	w9, #0
	csel	w19, w0, w9, eq
	ldr	w8, [x8, #8]
Lloh37:
	adrp	x9, _Pico_mcd@GOTPAGE
Lloh38:
	ldr	x9, [x9, _Pico_mcd@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	str	w8, [x9]
	add	w8, w19, w24
	stp	w24, w8, [x21, #-16]
	add	x0, sp, #102
	mov	w1, #10
	mov	x2, x24
	mov	x24, x8
	bl	_sprintf_lba
Lloh40:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x27]
	stp	x19, x8, [sp, #16]
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	stp	x25, x23, [sp]
	mov	x1, x22
	bl	_elprintf
	add	x8, x25, #1
	ldrsw	x9, [x19]
	add	x27, x27, #32
	add	x21, x21, #24
	cmp	x25, x9
	mov	x25, x8
	b.ge	LBB0_40
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	mul	w1, w20, w25
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_PicoCDLoadProgressCB
	ldr	x8, [x19, #8]
	add	x9, x8, x27
	ldr	w10, [x9, #24]
	add	w24, w24, w10
	ldr	w10, [x9, #8]
	ldr	w11, [x28]
	ldr	x0, [x9]
	cmp	w10, w11
	b.eq	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	cbz	x0, LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	bl	_pm_open
	cbz	x0, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	str	x0, [x21]
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	ldr	w8, [x8, #12]
	stur	w8, [x21, #-8]
	ldrsw	x8, [x0]
	mov	w9, #44583
	movk	w9, #28532, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #42
	add	w0, w8, w9
	b	LBB0_28
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	ldrsw	x9, [x19]
	add	x8, x8, x27
	cmp	x25, x9
	b.ge	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w9, [x8, #44]
	ldr	w8, [x8, #12]
	sub	w0, w9, w8
	b	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_29 Depth=1
Lloh43:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x27]
	stp	x25, x8, [sp]
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_elprintf
	stur	wzr, [x21, #-8]
	mov	w0, #150
	b	LBB0_28
LBB0_36:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [x8, #12]
	sub	w0, w26, w8
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=1
	stur	w8, [x21, #-8]
	b	LBB0_28
LBB0_38:
	mov	w0, #-1
	b	LBB0_43
LBB0_39:
	mov	x8, x25
LBB0_40:
	str	w24, [sp, #60]                  ; 4-byte Folded Spill
	mov	x26, x8
LBB0_41:
	sub	w8, w26, #1
Lloh48:
	adrp	x9, _cdd@GOTPAGE
Lloh49:
	ldr	x9, [x9, _cdd@GOTPAGEOFF]
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	stp	w8, w2, [x9]
	add	x19, sp, #102
	add	x0, sp, #102
	mov	w1, #10
	bl	_sprintf_lba
Lloh50:
	adrp	x8, _EL_STATUS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EL_STATUS@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh53:
	adrp	x1, l_.str.14@PAGE
Lloh54:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_elprintf
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	mov	w1, #100
	bl	_PicoCDLoadProgressCB
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_43
; %bb.42:
	bl	_cue_destroy
	mov	w0, #0
LBB0_43:
	ldur	x8, [x29, #-96]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #400]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @load_cd_image.exts
_load_cd_image.exts:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02d.mp3"

l_.str.1:                               ; @.str.1
	.asciz	" %02d.mp3"

l_.str.2:                               ; @.str.2
	.asciz	"-%02d.mp3"

l_.str.3:                               ; @.str.3
	.asciz	"_%02d.mp3"

l_.str.4:                               ; @.str.4
	.asciz	" - %02d.mp3"

l_.str.5:                               ; @.str.5
	.asciz	"%d.mp3"

l_.str.6:                               ; @.str.6
	.asciz	" %d.mp3"

l_.str.7:                               ; @.str.7
	.asciz	"-%d.mp3"

l_.str.8:                               ; @.str.8
	.asciz	"_%d.mp3"

l_.str.9:                               ; @.str.9
	.asciz	" - %d.mp3"

	.comm	_cdd,16,3                       ; @cdd
	.comm	_CT_UNKNOWN,4,2                 ; @CT_UNKNOWN
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_CT_ISO,4,2                     ; @CT_ISO
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
l_.str.10:                              ; @.str.10
	.asciz	"Track  1: %s %9i DATA  %s"

	.comm	_CT_MP3,4,2                     ; @CT_MP3
l_.str.11:                              ; @.str.11
	.asciz	"track %2i (%s): can't determine length"

l_.str.12:                              ; @.str.12
	.asciz	"Track %2i: %s %9i AUDIO %s"

l_.str.13:                              ; @.str.13
	.asciz	"Track %2i: %s %9i AUDIO - %s"

l_.str.14:                              ; @.str.14
	.asciz	"End CD -  %s\n"

.subsections_via_symbols
