	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atapi_drain_needed
_atapi_drain_needed:                    ## @atapi_drain_needed
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_REQ_TYPE_BLOCK_PC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_likely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_blk_rq_bytes
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_REQ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_atapi_cmd_type
	movq	_ATAPI_MISC@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_TYPE_BLOCK_PC,8,3          ## @REQ_TYPE_BLOCK_PC
	.comm	_REQ_WRITE,4,2                  ## @REQ_WRITE
	.comm	_ATAPI_MISC,8,3                 ## @ATAPI_MISC
	.no_dead_strip	_atapi_drain_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atapi_drain_needed
_atapi_drain_needed:                    ; @atapi_drain_needed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _REQ_TYPE_BLOCK_PC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_TYPE_BLOCK_PC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_blk_rq_bytes
	cbz	w0, LBB0_2
; %bb.4:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _REQ_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_atapi_cmd_type
Lloh6:
	adrp	x8, _ATAPI_MISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATAPI_MISC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_TYPE_BLOCK_PC,8,3          ; @REQ_TYPE_BLOCK_PC
	.comm	_REQ_WRITE,4,2                  ; @REQ_WRITE
	.comm	_ATAPI_MISC,8,3                 ; @ATAPI_MISC
	.no_dead_strip	_atapi_drain_needed
.subsections_via_symbols
