	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_configure_timestamp
_nvme_configure_timestamp:              ## @nvme_configure_timestamp
	.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	_NVME_CTRL_ONCS_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	callq	_ktime_to_ms
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, -28(%rbp)
	movq	_NVME_FEAT_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_nvme_set_features
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn_once
	movl	%ebx, %r14d
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CTRL_ONCS_TIMESTAMP,4,2   ## @NVME_CTRL_ONCS_TIMESTAMP
	.comm	_NVME_FEAT_TIMESTAMP,4,2        ## @NVME_FEAT_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set timestamp (%d)\n"

	.no_dead_strip	_nvme_configure_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_configure_timestamp
_nvme_configure_timestamp:              ; @nvme_configure_timestamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NVME_CTRL_ONCS_TIMESTAMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_CTRL_ONCS_TIMESTAMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_ktime_get_real
	bl	_ktime_to_ms
	bl	_cpu_to_le64
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _NVME_FEAT_TIMESTAMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_FEAT_TIMESTAMP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #0
	mov	w4, #4
	mov	x5, #0
	bl	_nvme_set_features
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn_once
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CTRL_ONCS_TIMESTAMP,4,2   ; @NVME_CTRL_ONCS_TIMESTAMP
	.comm	_NVME_FEAT_TIMESTAMP,4,2        ; @NVME_FEAT_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set timestamp (%d)\n"

	.no_dead_strip	_nvme_configure_timestamp
.subsections_via_symbols
