	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nvmem_device_get
___nvmem_device_get:                    ## @__nvmem_device_get
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_nvmem_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_of_nvmem_find
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_nvmem_find
LBB0_3:
	movq	%rax, %rbx
	movq	_nvmem_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	movl	8(%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_kref_get
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	leaq	4(%rbx), %r14
	movq	%rbx, %rdi
	callq	_nvmem_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_put_device
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nvmem_mutex,4,2                ## @nvmem_mutex
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not increase module refcount for cell %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___nvmem_device_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nvmem_device_get
___nvmem_device_get:                    ; @__nvmem_device_get
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _nvmem_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvmem_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_of_nvmem_find
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_nvmem_find
LBB0_3:
	mov	x19, x0
Lloh2:
	adrp	x0, _nvmem_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _nvmem_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	cbz	x19, LBB0_6
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_try_module_get
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_kref_get
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	add	x20, x19, #4
	mov	x0, x19
	bl	_nvmem_dev_name
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x20
	bl	_put_device
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nvmem_mutex,4,2                ; @nvmem_mutex
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not increase module refcount for cell %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___nvmem_device_get
.subsections_via_symbols
