	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_read_tocentry
_cdrom_read_tocentry:                   ## @cdrom_read_tocentry
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movl	%r9d, %r12d
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%r9d, -56(%rbp)
	movq	_BLK_MAX_CDB@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_IDE_DBG_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ide_debug_log
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_GPCMD_READ_TOC_PMA_ATIP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rbx)
	movb	%r14b, 6(%rbx)
	movl	%r12d, %eax
	movb	%ah, 7(%rbx)
	movb	%al, 8(%rbx)
	shlb	$6, %r13b
	movb	%r13b, 9(%rbx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movb	$2, 1(%rbx)
LBB0_2:
	movq	_RQF_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-56(%rbp), %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ide_cd_queue_pc
	addq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_MAX_CDB,4,2                ## @BLK_MAX_CDB
	.comm	_IDE_DBG_FUNC,4,2               ## @IDE_DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter"

	.comm	_GPCMD_READ_TOC_PMA_ATIP,1,0    ## @GPCMD_READ_TOC_PMA_ATIP
	.comm	_RQF_QUIET,4,2                  ## @RQF_QUIET
	.no_dead_strip	_cdrom_read_tocentry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_read_tocentry
_cdrom_read_tocentry:                   ; @cdrom_read_tocentry
	.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
	sub	sp, sp, #16
	mov	x22, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	w5, [x29, #-76]
Lloh3:
	adrp	x26, _BLK_MAX_CDB@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BLK_MAX_CDB@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _IDE_DBG_FUNC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDE_DBG_FUNC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ide_debug_log
	ldr	w2, [x26]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
Lloh12:
	adrp	x8, _GPCMD_READ_TOC_PMA_ATIP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPCMD_READ_TOC_PMA_ATIP@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x21]
	strb	w25, [x21, #6]
	lsr	w8, w22, #8
	strb	w8, [x21, #7]
	strb	w22, [x21, #8]
	lsl	w8, w23, #6
	strb	w8, [x21, #9]
	cbz	w24, LBB0_2
; %bb.1:
	mov	w8, #2
	strb	w8, [x21, #1]
LBB0_2:
Lloh14:
	adrp	x8, _RQF_QUIET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RQF_QUIET@GOTPAGEOFF]
Lloh16:
	ldr	w7, [x8]
	sub	x4, x29, #76
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x19
	mov	x5, #0
	mov	w6, #0
	bl	_ide_cd_queue_pc
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #64
	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
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_MAX_CDB,4,2                ; @BLK_MAX_CDB
	.comm	_IDE_DBG_FUNC,4,2               ; @IDE_DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter"

	.comm	_GPCMD_READ_TOC_PMA_ATIP,1,0    ; @GPCMD_READ_TOC_PMA_ATIP
	.comm	_RQF_QUIET,4,2                  ; @RQF_QUIET
	.no_dead_strip	_cdrom_read_tocentry
.subsections_via_symbols
