	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_read_ana_log
_nvme_read_ana_log:                     ## @nvme_read_ana_log
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_NVME_NSID_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVME_LOG_ANA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rbx), %r9d
	movl	20(%rbx), %r8d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_nvme_get_log
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_2:
	movq	_nvme_update_ana_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nvme_parse_ana_log
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	leaq	8(%rbx), %rdi
	cmpq	$0, -32(%rbp)
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	%eax, %eax
	movslq	%eax, %rsi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_mod_timer
	jmp	LBB0_6
LBB0_5:
	callq	_del_timer_sync
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_NSID_ALL,4,2              ## @NVME_NSID_ALL
	.comm	_NVME_LOG_ANA,4,2               ## @NVME_LOG_ANA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get ANA log: %d\n"

	.comm	_nvme_update_ana_state,4,2      ## @nvme_update_ana_state
	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_nvme_read_ana_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_read_ana_log
_nvme_read_ana_log:                     ; @nvme_read_ana_log
	.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
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _NVME_NSID_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_NSID_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NVME_LOG_ANA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_LOG_ANA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w5, w4, [x20, #16]
	mov	x0, x20
	mov	w3, #0
	mov	w6, #0
	bl	_nvme_get_log
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x8, _nvme_update_ana_state@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nvme_update_ana_state@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_nvme_parse_ana_log
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [sp, #8]
	add	x0, x20, #8
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _HZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w8, w8, #1
Lloh14:
	adrp	x9, _jiffies@GOTPAGE
Lloh15:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, w8, sxtw
	bl	_mod_timer
	b	LBB0_6
LBB0_5:
	bl	_del_timer_sync
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_NSID_ALL,4,2              ; @NVME_NSID_ALL
	.comm	_NVME_LOG_ANA,4,2               ; @NVME_LOG_ANA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get ANA log: %d\n"

	.comm	_nvme_update_ana_state,4,2      ; @nvme_update_ana_state
	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_nvme_read_ana_log
.subsections_via_symbols
