	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_cd_read_tocentry
_ide_cd_read_tocentry:                  ## @ide_cd_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	32(%rsi), %esi
	leaq	-24(%rbp), %rdx
	callq	_ide_cd_get_toc_entry
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	(%rbx), %rcx
	movq	_CDROM_MSF@GOTPCREL(%rip), %rdx
	movl	(%rax), %edi
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	leaq	12(%rbx), %rcx
	leaq	20(%rbx), %rsi
	addq	$16, %rbx
	movq	%rbx, %rdx
	callq	_lba_to_msf
	jmp	LBB0_4
LBB0_3:
	movl	%edi, 8(%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CDROM_MSF,8,3                  ## @CDROM_MSF
	.no_dead_strip	_ide_cd_read_tocentry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_cd_read_tocentry
_ide_cd_read_tocentry:                  ; @ide_cd_read_tocentry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	w1, [x1, #32]
	add	x2, sp, #8
	bl	_ide_cd_get_toc_entry
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	ldur	d0, [x8, #4]
	str	d0, [x20, #24]
	ldr	x9, [x20]
Lloh0:
	adrp	x10, _CDROM_MSF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CDROM_MSF@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w0, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	add	x3, x20, #12
	add	x1, x20, #20
	add	x2, x20, #16
	bl	_lba_to_msf
	b	LBB0_4
LBB0_3:
	str	w0, [x20, #8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CDROM_MSF,8,3                  ; @CDROM_MSF
	.no_dead_strip	_ide_cd_read_tocentry
.subsections_via_symbols
