	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mtd_nvmem_add
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mtd_nvmem_add:                         ## @mtd_nvmem_add
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, -32(%rbp)
	movl	16(%rdi), %eax
	movl	%eax, -36(%rbp)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_mtd_nvmem_reg_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	12(%rdi), %eax
	movl	%eax, -48(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967295,1,1,1]
	movaps	%xmm0, -80(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -64(%rbp)
	movq	%rdi, -56(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_nvmem_register
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mtd_nvmem_reg_read,4,2         ## @mtd_nvmem_reg_read
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register NVMEM device\n"

	.no_dead_strip	_mtd_nvmem_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mtd_nvmem_add
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mtd_nvmem_add:                         ; @mtd_nvmem_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #8
	str	x20, [sp, #48]
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w9, [x0, #12]
	stp	w8, w9, [sp, #40]
Lloh3:
	adrp	x8, _mtd_nvmem_reg_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mtd_nvmem_reg_read@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w10, w8, [sp, #32]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	movi.2s	v0, #1
	str	d0, [sp, #16]
	str	x0, [sp, #24]
	mov	x0, sp
	bl	_nvmem_register
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19]
	bl	_PTR_ERR
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	bl	_PTR_ERR
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mtd_nvmem_reg_read,4,2         ; @mtd_nvmem_reg_read
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register NVMEM device\n"

	.no_dead_strip	_mtd_nvmem_add
.subsections_via_symbols
