	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MacOSXCDReadTOC
_MacOSXCDReadTOC:                       ## @MacOSXCDReadTOC
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetTOCFromCDPath
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$408, %edx                      ## imm = 0x198
	callq	_memset
	movq	%r12, %rdi
	callq	_CDTOCGetDescriptorCount
	cmpl	$4, %eax
	jl	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	60(%rax), %rbx
	xorl	%r13d, %r13d
	movl	$3, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	%r12, %rdi
	callq	_CDTOCGetDescriptorCount
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rbx), %r14d
	movl	(%rbx), %edi
	callq	_CDConvertMSFToLBA
	addl	$-100, %r14d
	cmpl	$-99, %r14d
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$150, %eax
	movl	-8(%rbx), %ecx
	movl	-4(%rbx), %edx
	shll	$28, %ecx
	shll	$24, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, -12(%rax,%r15,4)
	incl	%r13d
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %eax
	movl	8(%rdx), %ecx
	shll	$28, %eax
	shll	$24, %ecx
	orl	%eax, %ecx
	orl	$65536, %ecx                    ## imm = 0x10000
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, 396(%r14)
	movl	20(%rdx), %eax
	movl	24(%rdx), %ecx
	shll	$28, %eax
	shll	$24, %ecx
	shll	$16, %r13d
	orl	%eax, %r13d
	orl	%ecx, %r13d
	movl	%r13d, 400(%r14)
	movl	36(%rdx), %eax
	movl	40(%rdx), %ebx
	shll	$28, %eax
	shll	$24, %ebx
	orl	%eax, %ebx
	movl	44(%rdx), %edi
	callq	_CDConvertMSFToLBA
	addl	$150, %eax
	orl	%ebx, %eax
	movl	%eax, 404(%r14)
	movl	$408, %eax                      ## imm = 0x198
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_MacOSXCDReadTOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MacOSXCDReadTOC
_MacOSXCDReadTOC:                       ; @MacOSXCDReadTOC
	.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, x0
	bl	_GetTOCFromCDPath
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x19
	mov	w1, #255
	mov	w2, #408
	bl	_memset
	mov	x0, x20
	bl	_CDTOCGetDescriptorCount
	cmp	w0, #4
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	w22, #0
	add	x23, x21, #60
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_CDTOCGetDescriptorCount
	add	x8, x24, #4
	add	x24, x24, #1
	add	x23, x23, #16
	cmp	x8, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w25, [x23, #-12]
	ldr	w0, [x23]
	bl	_CDConvertMSFToLBA
	sub	w8, w25, #100
	cmn	w8, #99
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w0, #150
	ldp	w9, w10, [x23, #-8]
	orr	w8, w8, w9, lsl #28
	orr	w8, w8, w10, lsl #24
	str	w8, [x19, x24, lsl #2]
	add	w22, w22, #1
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldp	w8, w9, [x21, #4]
	lsl	w8, w8, #28
	orr	w8, w8, w9, lsl #24
	orr	w8, w8, #0x10000
	str	w8, [x19, #396]
	ldp	w8, w9, [x21, #20]
	lsl	w8, w8, #28
	orr	w8, w8, w22, lsl #16
	orr	w8, w8, w9, lsl #24
	str	w8, [x19, #400]
	ldp	w8, w9, [x21, #36]
	lsl	w9, w9, #24
	orr	w20, w9, w8, lsl #28
	ldr	w0, [x21, #44]
	bl	_CDConvertMSFToLBA
	add	w8, w0, #150
	orr	w8, w20, w8
	str	w8, [x19, #404]
	mov	w0, #408
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_MacOSXCDReadTOC
.subsections_via_symbols
