	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvm_init
_nvm_init:                              ## @nvm_init
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	40(%rdi), %rax
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	negl	%r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movl	28(%rbx), %esi
	movl	20(%rbx), %ecx
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_nvm_core_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	callq	_pr_err
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_err
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	32(%rbx), %esi
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movl	8(%rbx), %r8d
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device could not be identified\n"

L_.str.1:                               ## @.str.1
	.asciz	"ver:%u.%u nvm_vendor:%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not initialize core structures.\n"

L_.str.3:                               ## @.str.3
	.asciz	"registered %s [%u/%u/%u/%u/%u]\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to initialize nvm\n"

	.no_dead_strip	_nvm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvm_init
_nvm_init:                              ; @nvm_init
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x0, #40]
	ldr	x8, [x8]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	neg	w20, w20
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldp	w2, w1, [x19, #24]
	ldr	w3, [x19, #20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_nvm_core_init
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_pr_err
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w1, [x19, #32]
	ldp	w3, w2, [x19, #12]
	ldp	w5, w4, [x19, #4]
	ldr	w6, [x19]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device could not be identified\n"

l_.str.1:                               ; @.str.1
	.asciz	"ver:%u.%u nvm_vendor:%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not initialize core structures.\n"

l_.str.3:                               ; @.str.3
	.asciz	"registered %s [%u/%u/%u/%u/%u]\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to initialize nvm\n"

	.no_dead_strip	_nvm_init
.subsections_via_symbols
