	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LoadCCD
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_LoadCCD:                               ## @LoadCCD
	.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	$648, %rsp                      ## imm = 0x288
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strrchr
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	leaq	-632(%rbp), %rsi
	movq	%r15, %rdi
	callq	_LoadParseCCD
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_YAB_ERR_FILEREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	jmp	LBB0_26
LBB0_1:
	movq	_YAB_ERR_FILEREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-560(%rbp), %rsi
	jmp	LBB0_26
LBB0_4:
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.3(%rip), %rdx
	leaq	-632(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_GetIntCCD
	movl	%eax, -636(%rbp)                ## 4-byte Spill
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_GetIntCCD
	movq	_disc@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	leaq	-632(%rbp), %rdi
	callq	_GetIntCCD
	testl	%eax, %eax
	je	LBB0_9
## %bb.29:
	movq	%rbx, %rdi
	callq	_fclose
	movq	-632(%rbp), %rdi
	callq	_free
	movq	8(%r14), %rdi
	callq	_free
	movq	_YAB_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_26
LBB0_5:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_YAB_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_26
LBB0_7:
	movq	%rbx, %rdi
	callq	_fclose
	movq	-632(%rbp), %rdi
LBB0_25:
	callq	_free
	movq	_YAB_ERR_MEMORYALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
LBB0_26:
	callq	_YabSetError
	movl	$-1, %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.30:
	addq	$648, %rsp                      ## imm = 0x288
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, -664(%rbp)                ## 8-byte Spill
	movq	%r15, -672(%rbp)                ## 8-byte Spill
	cmpl	$0, -636(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_23
## %bb.10:
	xorl	%ebx, %ebx
	leaq	L_.str.8(%rip), %r12
	leaq	L_.str.9(%rip), %r15
	movq	%r14, %r13
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	decq	%r14
	leaq	(%r14,%r14,2), %rdx
	movl	4(%rcx,%rdx,8), %ecx
	shll	$4, %ecx
	leal	(%rcx,%rcx,2), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_disc@GOTPCREL(%rip), %r13
	movq	%r15, %r12
	leaq	L_.str.9(%rip), %r15
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	%ebx, -636(%rbp)                ## 4-byte Folded Reload
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	-624(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_sprintf
	leaq	-632(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_GetIntCCD
	cmpl	$161, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %r15
	leaq	-632(%rbp), %rdi
	leaq	-624(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdx
	callq	_GetIntCCD
	movq	8(%r13), %rcx
	movslq	%eax, %r14
	leaq	-8(,%r14,8), %rax
	leaq	(%rax,%rax,2), %r12
	movl	$150, (%rcx,%r12)
	leaq	-632(%rbp), %rdi
	leaq	-624(%rbp), %rsi
	leaq	L_.str.11(%rip), %rdx
	callq	_GetIntCCD
                                        ## kill: def $eax killed $eax def $rax
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx,%r12)
	shll	$4, %eax
	leal	(%rax,%rax,2), %edi
	callq	_malloc
	movq	8(%r13), %rcx
	movq	%rax, 16(%rcx,%r12)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.24:
	movq	-664(%rbp), %rdi                ## 8-byte Reload
	callq	_fclose
	movq	-632(%rbp), %rdi
	callq	_free
	movq	_disc@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdi
	jmp	LBB0_25
LBB0_15:
	xorl	%r12d, %r12d
	leaq	L_.str.8(%rip), %r15
	jmp	LBB0_16
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	imull	$2352, -648(%rbp), %ecx         ## 4-byte Folded Reload
                                        ## imm = 0x930
	movl	%ecx, 12(%r14,%r15)
	movl	$2352, 16(%r14,%r15)            ## imm = 0x930
	movq	-664(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, 40(%r14,%r15)
	movl	8(%r14,%r15), %ecx
	subl	%eax, %ecx
	imull	$2352, %ecx, %eax               ## imm = 0x930
	addl	$2352, %eax                     ## imm = 0x930
	movl	%eax, 20(%r14,%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14,%r15)
	leaq	L_.str.8(%rip), %r15
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r12d
	cmpl	%r12d, -636(%rbp)               ## 4-byte Folded Reload
	je	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	-624(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_sprintf
	leaq	-632(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.10(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.9(%rip), %rdx
	callq	_GetIntCCD
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -688(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.12(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, -656(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.13(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, -652(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.14(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.15(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.16(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.17(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.18(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.19(%rip), %rdx
	callq	_GetIntCCD
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.11(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, -644(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.20(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, -640(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.21(%rip), %rdx
	callq	_GetIntCCD
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.22(%rip), %rdx
	callq	_GetIntCCD
	movq	-688(%rbp), %rbx                ## 8-byte Reload
	leal	-1(%rbx), %esi
	cmpl	$98, %esi
	ja	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, -648(%rbp)                ## 4-byte Spill
	movq	_disc@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	decl	%r14d
	movslq	%r14d, %rdx
	leaq	(%rdx,%rdx,2), %rax
	movq	%rax, -680(%rbp)                ## 8-byte Spill
	movq	16(%rcx,%rax,8), %r14
	movl	%esi, %eax
	movl	-652(%rbp), %ecx                ## 4-byte Reload
	shll	$4, %ecx
	orl	-656(%rbp), %ecx                ## 4-byte Folded Reload
	leaq	(%rax,%rax,2), %r15
	shlq	$4, %r15
	movl	%ecx, (%r14,%r15)
	movl	-644(%rbp), %edi                ## 4-byte Reload
	movl	-640(%rbp), %esi                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_MSF_TO_FAD
	movq	%rbx, %rsi
	movl	%eax, 4(%r14,%r15)
	cmpl	$2, %esi
	jb	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	-1(%rax), %ecx
	movq	_disc@GOTPCREL(%rip), %rdx
	movq	8(%rdx), %rdx
	movq	-680(%rbp), %rdi                ## 8-byte Reload
	movq	16(%rdx,%rdi,8), %rdx
	addl	$-2, %esi
	leaq	(%rsi,%rsi,2), %rsi
	shlq	$4, %rsi
	movl	%ecx, 8(%rdx,%rsi)
	jmp	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	-640(%rbp), %esi                ## 4-byte Reload
	movl	-644(%rbp), %edi                ## 4-byte Reload
	cmpl	$162, %ebx
	leaq	L_.str.8(%rip), %r15
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r13d, %edx
	callq	_MSF_TO_FAD
	movq	_disc@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	decl	%r14d
	movslq	%r14d, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 8(%rcx,%rdx,8)
	movq	16(%rcx,%rdx,8), %rsi
	movslq	4(%rcx,%rdx,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movl	%eax, -40(%rcx,%rsi)
	jmp	LBB0_22
LBB0_23:
	movq	-672(%rbp), %rdi                ## 8-byte Reload
	callq	_fclose
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".img"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_YAB_ERR_FILEREAD,4,2           ## @YAB_ERR_FILEREAD
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"DISC"

L_.str.3:                               ## @.str.3
	.asciz	"TocEntries"

L_.str.4:                               ## @.str.4
	.asciz	"Sessions"

	.comm	_disc,16,3                      ## @disc
	.comm	_YAB_ERR_OTHER,4,2              ## @YAB_ERR_OTHER
L_.str.5:                               ## @.str.5
	.asciz	"Sessions more than 1 are unsupported"

	.comm	_YAB_ERR_MEMORYALLOC,4,2        ## @YAB_ERR_MEMORYALLOC
L_.str.6:                               ## @.str.6
	.asciz	"DataTracksScrambled"

L_.str.7:                               ## @.str.7
	.asciz	"CCD Scrambled Tracks not supported"

L_.str.8:                               ## @.str.8
	.asciz	"Entry %d"

L_.str.9:                               ## @.str.9
	.asciz	"Point"

L_.str.10:                              ## @.str.10
	.asciz	"Session"

L_.str.11:                              ## @.str.11
	.asciz	"PMin"

L_.str.12:                              ## @.str.12
	.asciz	"ADR"

L_.str.13:                              ## @.str.13
	.asciz	"Control"

L_.str.14:                              ## @.str.14
	.asciz	"TrackNo"

L_.str.15:                              ## @.str.15
	.asciz	"AMin"

L_.str.16:                              ## @.str.16
	.asciz	"ASec"

L_.str.17:                              ## @.str.17
	.asciz	"AFrame"

L_.str.18:                              ## @.str.18
	.asciz	"ALBA"

L_.str.19:                              ## @.str.19
	.asciz	"Zero"

L_.str.20:                              ## @.str.20
	.asciz	"PSec"

L_.str.21:                              ## @.str.21
	.asciz	"PFrame"

L_.str.22:                              ## @.str.22
	.asciz	"PLBA"

	.no_dead_strip	_LoadCCD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadCCD
_LoadCCD:                               ; @LoadCCD
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #640
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, sp, #112
	mov	x1, x21
	bl	_strcpy
	add	x0, sp, #112
	mov	w1, #46
	bl	_strrchr
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #112
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	add	x1, sp, #40
	mov	x0, x19
	bl	_LoadParseCCD
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_fclose
Lloh10:
	adrp	x8, _YAB_ERR_FILEREAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _YAB_ERR_FILEREAD@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	b	LBB0_11
LBB0_3:
Lloh13:
	adrp	x8, _YAB_ERR_FILEREAD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _YAB_ERR_FILEREAD@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #112
	b	LBB0_11
LBB0_4:
Lloh16:
	adrp	x21, l_.str.2@PAGE
Lloh17:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #40
	mov	x1, x21
	bl	_GetIntCCD
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #40
	mov	x1, x21
	bl	_GetIntCCD
Lloh22:
	adrp	x21, _disc@GOTPAGE
Lloh23:
	ldr	x21, [x21, _disc@GOTPAGEOFF]
	str	w0, [x21]
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #4
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.6:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh26:
	adrp	x2, l_.str.6@PAGE
Lloh27:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #40
	bl	_GetIntCCD
	cbz	w0, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [x21, #8]
	bl	_free
Lloh28:
	adrp	x8, _YAB_ERR_OTHER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _YAB_ERR_OTHER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_fclose
Lloh33:
	adrp	x8, _YAB_ERR_OTHER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _YAB_ERR_OTHER@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
LBB0_10:
	bl	_free
Lloh38:
	adrp	x8, _YAB_ERR_MEMORYALLOC@GOTPAGE
Lloh39:
	ldr	x8, [x8, _YAB_ERR_MEMORYALLOC@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, #0
LBB0_11:
	bl	_YabSetError
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-96]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.13:
	add	sp, sp, #640
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.15:
	mov	w22, #0
Lloh44:
	adrp	x23, l_.str.8@PAGE
Lloh45:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh46:
	adrp	x24, l_.str.9@PAGE
Lloh47:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh48:
	adrp	x25, l_.str.10@PAGE
Lloh49:
	add	x25, x25, l_.str.10@PAGEOFF
	mov	w21, #150
Lloh50:
	adrp	x26, l_.str.11@PAGE
Lloh51:
	add	x26, x26, l_.str.11@PAGEOFF
Lloh52:
	adrp	x27, _disc@GOTPAGE
Lloh53:
	ldr	x27, [x27, _disc@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w9, #24
	madd	x8, x28, x9, x8
	ldr	w8, [x8, #4]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #4
	mov	w1, #0
	bl	_memset
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w22
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #48
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	x0, sp, #40
	add	x1, sp, #48
	mov	x2, x24
	bl	_GetIntCCD
	cmp	w0, #161
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #40
	add	x1, sp, #48
	mov	x2, x25
	bl	_GetIntCCD
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x27, #8]
	sxtw	x9, w0
	sub	x28, x9, #1
	add	x9, x28, x28, lsl #1
	lsl	x19, x9, #3
	str	w21, [x8, x19]
	add	x0, sp, #40
	add	x1, sp, #48
	mov	x2, x26
	bl	_GetIntCCD
	ldr	x8, [x27, #8]
	add	x8, x8, x19
	str	w0, [x8, #4]
	add	w8, w0, w0, lsl #1
	lsl	w0, w8, #4
	bl	_malloc
	ldr	x8, [x27, #8]
	add	x9, x8, x19
	str	x0, [x9, #16]
	cbnz	x0, LBB0_16
; %bb.20:
	mov	x0, x20
	bl	_fclose
	ldr	x0, [sp, #40]
	bl	_free
Lloh54:
	adrp	x8, _disc@GOTPAGE
Lloh55:
	ldr	x8, [x8, _disc@GOTPAGEOFF]
Lloh56:
	ldr	x0, [x8, #8]
	b	LBB0_10
LBB0_21:
	mov	w22, #0
Lloh57:
	adrp	x23, l_.str.8@PAGE
Lloh58:
	add	x23, x23, l_.str.8@PAGEOFF
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	w10, #2352
	mul	w8, w21, w10
	madd	x9, x28, x12, x23
	stp	w8, w10, [x9, #12]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	stp	xzr, x20, [x9, #32]
	ldr	w8, [x9, #8]
	sub	w8, w8, w0
	mul	w8, w8, w10
	add	w8, w8, #2352
	str	w8, [x9, #20]
	str	xzr, [x9, #24]
Lloh59:
	adrp	x23, l_.str.8@PAGE
Lloh60:
	add	x23, x23, l_.str.8@PAGEOFF
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w22
	b.eq	LBB0_29
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #48
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	x0, sp, #40
	add	x1, sp, #48
Lloh61:
	adrp	x2, l_.str.10@PAGE
Lloh62:
	add	x2, x2, l_.str.10@PAGEOFF
	bl	_GetIntCCD
	mov	x19, x0
	add	x0, sp, #40
	add	x1, sp, #48
Lloh63:
	adrp	x2, l_.str.9@PAGE
Lloh64:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_GetIntCCD
	mov	x27, x0
	add	x0, sp, #40
	add	x1, sp, #48
Lloh65:
	adrp	x2, l_.str.12@PAGE
Lloh66:
	add	x2, x2, l_.str.12@PAGEOFF
	bl	_GetIntCCD
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	add	x0, sp, #40
	add	x1, sp, #48
Lloh67:
	adrp	x2, l_.str.13@PAGE
Lloh68:
	add	x2, x2, l_.str.13@PAGEOFF
	bl	_GetIntCCD
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	add	x0, sp, #40
	add	x1, sp, #48
Lloh69:
	adrp	x2, l_.str.14@PAGE
Lloh70:
	add	x2, x2, l_.str.14@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh71:
	adrp	x2, l_.str.15@PAGE
Lloh72:
	add	x2, x2, l_.str.15@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh73:
	adrp	x2, l_.str.16@PAGE
Lloh74:
	add	x2, x2, l_.str.16@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh75:
	adrp	x2, l_.str.17@PAGE
Lloh76:
	add	x2, x2, l_.str.17@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh77:
	adrp	x2, l_.str.18@PAGE
Lloh78:
	add	x2, x2, l_.str.18@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh79:
	adrp	x2, l_.str.19@PAGE
Lloh80:
	add	x2, x2, l_.str.19@PAGEOFF
	bl	_GetIntCCD
	add	x0, sp, #40
	add	x1, sp, #48
Lloh81:
	adrp	x2, l_.str.11@PAGE
Lloh82:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_GetIntCCD
	mov	x24, x0
	add	x0, sp, #40
	add	x1, sp, #48
Lloh83:
	adrp	x2, l_.str.20@PAGE
Lloh84:
	add	x2, x2, l_.str.20@PAGEOFF
	bl	_GetIntCCD
	mov	x25, x0
	add	x0, sp, #40
	add	x1, sp, #48
Lloh85:
	adrp	x2, l_.str.21@PAGE
Lloh86:
	add	x2, x2, l_.str.21@PAGEOFF
	bl	_GetIntCCD
	mov	x26, x0
	add	x0, sp, #40
	add	x1, sp, #48
Lloh87:
	adrp	x2, l_.str.22@PAGE
Lloh88:
	add	x2, x2, l_.str.22@PAGEOFF
	bl	_GetIntCCD
	sub	w28, w27, #1
	cmp	w28, #98
	b.hi	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x21, x0
Lloh89:
	adrp	x8, _disc@GOTPAGE
Lloh90:
	ldr	x8, [x8, _disc@GOTPAGEOFF]
Lloh91:
	ldr	x8, [x8, #8]
	sxtw	x9, w19
	sub	x19, x9, #1
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	x23, [x8, #16]
	ldp	w9, w8, [sp, #28]               ; 8-byte Folded Reload
	orr	w8, w8, w9, lsl #4
	mov	w9, #48
	umaddl	x20, w28, w9, x23
	str	w8, [x20]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_MSF_TO_FAD
	str	w0, [x20, #4]
	mov	w12, #48
	subs	w8, w27, #2
	b.lo	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	sub	w9, w0, #1
Lloh92:
	adrp	x10, _disc@GOTPAGE
Lloh93:
	ldr	x10, [x10, _disc@GOTPAGEOFF]
Lloh94:
	ldr	x10, [x10, #8]
	mov	w11, #24
	madd	x10, x19, x11, x10
	ldr	x10, [x10, #16]
	umaddl	x8, w8, w12, x10
	str	w9, [x8, #8]
	b	LBB0_22
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=1
	cmp	w27, #162
	b.ne	LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_MSF_TO_FAD
Lloh95:
	adrp	x8, _disc@GOTPAGE
Lloh96:
	ldr	x8, [x8, _disc@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8, #8]
	mov	w9, #24
	smaddl	x8, w19, w9, x8
	stur	w0, [x8, #-16]
	ldur	x9, [x8, #-8]
	ldursw	x8, [x8, #-20]
	mov	w10, #48
	madd	x8, x8, x10, x9
	stur	w0, [x8, #-40]
	b	LBB0_23
LBB0_29:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_fclose
	mov	w0, #0
	b	LBB0_12
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".img"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_YAB_ERR_FILEREAD,4,2           ; @YAB_ERR_FILEREAD
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"DISC"

l_.str.3:                               ; @.str.3
	.asciz	"TocEntries"

l_.str.4:                               ; @.str.4
	.asciz	"Sessions"

	.comm	_disc,16,3                      ; @disc
	.comm	_YAB_ERR_OTHER,4,2              ; @YAB_ERR_OTHER
l_.str.5:                               ; @.str.5
	.asciz	"Sessions more than 1 are unsupported"

	.comm	_YAB_ERR_MEMORYALLOC,4,2        ; @YAB_ERR_MEMORYALLOC
l_.str.6:                               ; @.str.6
	.asciz	"DataTracksScrambled"

l_.str.7:                               ; @.str.7
	.asciz	"CCD Scrambled Tracks not supported"

l_.str.8:                               ; @.str.8
	.asciz	"Entry %d"

l_.str.9:                               ; @.str.9
	.asciz	"Point"

l_.str.10:                              ; @.str.10
	.asciz	"Session"

l_.str.11:                              ; @.str.11
	.asciz	"PMin"

l_.str.12:                              ; @.str.12
	.asciz	"ADR"

l_.str.13:                              ; @.str.13
	.asciz	"Control"

l_.str.14:                              ; @.str.14
	.asciz	"TrackNo"

l_.str.15:                              ; @.str.15
	.asciz	"AMin"

l_.str.16:                              ; @.str.16
	.asciz	"ASec"

l_.str.17:                              ; @.str.17
	.asciz	"AFrame"

l_.str.18:                              ; @.str.18
	.asciz	"ALBA"

l_.str.19:                              ; @.str.19
	.asciz	"Zero"

l_.str.20:                              ; @.str.20
	.asciz	"PSec"

l_.str.21:                              ; @.str.21
	.asciz	"PFrame"

l_.str.22:                              ; @.str.22
	.asciz	"PLBA"

	.no_dead_strip	_LoadCCD
.subsections_via_symbols
