	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cdrom_reset                ## -- Begin function ide_cdrom_reset
	.p2align	4, 0x90
_ide_cdrom_reset:                       ## @ide_cdrom_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	movl	4(%r15), %edi
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___GFP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_blk_get_request
	movq	%rax, %rbx
	movq	_REQ_TYPE_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_REQ_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	4(%r15), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_blk_put_request
	movq	_IDE_AFLAG_DOOR_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ide_cd_lockdoor
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.comm	_REQ_TYPE_SPECIAL,4,2           ## @REQ_TYPE_SPECIAL
	.comm	_REQ_QUIET,4,2                  ## @REQ_QUIET
	.comm	_IDE_AFLAG_DOOR_LOCKED,4,2      ## @IDE_AFLAG_DOOR_LOCKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cdrom_reset                ; -- Begin function ide_cdrom_reset
	.p2align	2
_ide_cdrom_reset:                       ; @ide_cdrom_reset
	.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
	ldr	x19, [x0]
	ldr	x20, [x19, #8]
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, ___GFP_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___GFP_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_blk_get_request
	mov	x21, x0
Lloh6:
	adrp	x8, _REQ_TYPE_SPECIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_TYPE_SPECIAL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _REQ_QUIET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REQ_QUIET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	mov	x2, x21
	mov	w3, #0
	bl	_blk_execute_rq
	mov	x20, x0
	mov	x0, x21
	bl	_blk_put_request
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _IDE_AFLAG_DOOR_LOCKED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IDE_AFLAG_DOOR_LOCKED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_ide_cd_lockdoor
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,4,2                       ; @READ
	.comm	___GFP_WAIT,4,2                 ; @__GFP_WAIT
	.comm	_REQ_TYPE_SPECIAL,4,2           ; @REQ_TYPE_SPECIAL
	.comm	_REQ_QUIET,4,2                  ; @REQ_QUIET
	.comm	_IDE_AFLAG_DOOR_LOCKED,4,2      ; @IDE_AFLAG_DOOR_LOCKED
.subsections_via_symbols
