	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_setup_write_zeroes
_nvme_setup_write_zeroes:               ## @nvme_setup_write_zeroes
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_NVME_QUIRK_DEALLOCATE_ZEROES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_setup_discard             ## TAILCALL
LBB0_1:
	movq	_nvme_cmd_write_zeroes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_blk_rq_pos
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_block_nr
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	callq	_blk_rq_bytes
                                        ## kill: def $eax killed $eax def $rax
	movb	(%rbx), %cl
	sarl	%cl, %eax
	leal	-1(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_QUIRK_DEALLOCATE_ZEROES,4,2 ## @NVME_QUIRK_DEALLOCATE_ZEROES
	.comm	_nvme_cmd_write_zeroes,4,2      ## @nvme_cmd_write_zeroes
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
	.no_dead_strip	_nvme_setup_write_zeroes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_setup_write_zeroes
_nvme_setup_write_zeroes:               ; @nvme_setup_write_zeroes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NVME_QUIRK_DEALLOCATE_ZEROES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_QUIRK_DEALLOCATE_ZEROES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvme_setup_discard
LBB0_2:
Lloh3:
	adrp	x8, _nvme_cmd_write_zeroes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_cmd_write_zeroes@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x19, #16]
	mov	x0, x21
	bl	_blk_rq_pos
	mov	x1, x0
	mov	x0, x20
	bl	_nvme_block_nr
	bl	_cpu_to_le64
	str	w0, [x19, #12]
	mov	x0, x21
	bl	_blk_rq_bytes
	ldr	w8, [x20]
	asr	w8, w0, w8
	sub	w0, w8, #1
	bl	_cpu_to_le16
	str	w0, [x19, #8]
	str	xzr, [x19]
Lloh6:
	adrp	x8, _BLK_STS_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLK_STS_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_QUIRK_DEALLOCATE_ZEROES,4,2 ; @NVME_QUIRK_DEALLOCATE_ZEROES
	.comm	_nvme_cmd_write_zeroes,4,2      ; @nvme_cmd_write_zeroes
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
	.no_dead_strip	_nvme_setup_write_zeroes
.subsections_via_symbols
