	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmem_cell_read_u32            ## -- Begin function nvmem_cell_read_u32
	.p2align	4, 0x90
_nvmem_cell_read_u32:                   ## @nvmem_cell_read_u32
	.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	%rdx, %r14
	callq	_nvmem_cell_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nvmem_cell_read
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_nvmem_cell_put
	movq	%r15, %rdi
	callq	_PTR_ERR
	jmp	LBB0_6
LBB0_3:
	cmpq	$4, -32(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_nvmem_cell_put
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_nvmem_cell_put
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmem_cell_read_u32            ; -- Begin function nvmem_cell_read_u32
	.p2align	2
_nvmem_cell_read_u32:                   ; @nvmem_cell_read_u32
	.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, x2
	bl	_nvmem_cell_get
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_nvmem_cell_read
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_nvmem_cell_put
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_7
LBB0_4:
	ldr	x8, [sp, #8]
	cmp	x8, #4
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_nvmem_cell_put
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_nvmem_cell_put
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
