	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_get_disc_info
_cdrom_get_disc_info:                   ## @cdrom_get_disc_info
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_CGC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r15
	movl	$4, %ebx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_init_cdrom_command
	movq	_GPCMD_READ_DISC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	$2, -48(%rbp)
	movl	$2, 32(%rcx)
	movl	$1, -44(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*(%r13)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_be16_to_cpu
	addl	$4, %eax
	cmpl	$4, %eax
	cmovbl	%eax, %ebx
	movl	%ebx, -48(%rbp)
	movq	-56(%rbp), %rax
	movl	%ebx, 32(%rax)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	cmovnel	%eax, %ebx
	movl	%ebx, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_READ,4,2              ## @CGC_DATA_READ
	.comm	_GPCMD_READ_DISC_INFO,4,2       ## @GPCMD_READ_DISC_INFO
	.no_dead_strip	_cdrom_get_disc_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cdrom_get_disc_info
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cdrom_get_disc_info:                   ; @cdrom_get_disc_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _CGC_DATA_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGC_DATA_READ@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w22, #4
	mov	x0, sp
	mov	w2, #4
	bl	_init_cdrom_command
Lloh3:
	adrp	x8, _GPCMD_READ_DISC_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPCMD_READ_DISC_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp]
	str	w8, [x9]
	mov	w8, #2
	str	w8, [x9, #32]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	ldr	x8, [x21]
	mov	x1, sp
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_be16_to_cpu
	add	w8, w0, #4
	cmp	w8, #4
	csel	w20, w8, w22, lo
	str	w20, [sp, #8]
	ldr	x8, [sp]
	str	w20, [x8, #32]
	ldr	x8, [x21]
	mov	x1, sp
	mov	x0, x19
	blr	x8
	cmp	w0, #0
	csel	w0, w20, w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_READ,4,2              ; @CGC_DATA_READ
	.comm	_GPCMD_READ_DISC_INFO,4,2       ; @GPCMD_READ_DISC_INFO
	.no_dead_strip	_cdrom_get_disc_info
.subsections_via_symbols
