	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_dbbuf_set
_nvme_dbbuf_set:                        ## @nvme_dbbuf_set
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_nvme_admin_dbbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	12(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, -32(%rbp)
	movl	8(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, -40(%rbp)
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvme_submit_sync_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_nvme_dbbuf_dma_free
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_admin_dbbuf,4,2           ## @nvme_admin_dbbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to set dbbuf\n"

	.no_dead_strip	_nvme_dbbuf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_dbbuf_set
_nvme_dbbuf_set:                        ; @nvme_dbbuf_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _nvme_admin_dbbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvme_admin_dbbuf@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [x19, #12]
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le64
	str	x0, [sp, #8]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	x2, #0
	mov	w3, #0
	bl	_nvme_submit_sync_cmd
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	bl	_nvme_dbbuf_dma_free
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_admin_dbbuf,4,2           ; @nvme_admin_dbbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to set dbbuf\n"

	.no_dead_strip	_nvme_dbbuf_set
.subsections_via_symbols
