	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmem_sysfs_setup_compat       ## -- Begin function nvmem_sysfs_setup_compat
	.p2align	4, 0x90
_nvmem_sysfs_setup_compat:              ## @nvmem_sysfs_setup_compat
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 16(%rsi)
	je	LBB0_13
## %bb.1:
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	leaq	8(%rdi), %rax
	cmpq	$0, 56(%rdi)
	movq	8(%rsi), %rcx
	je	LBB0_7
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	_bin_attr_ro_root_nvmem@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_bin_attr_rw_root_nvmem@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_bin_attr_ro_nvmem@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_bin_attr_rw_nvmem@GOTPCREL(%rip), %rcx
LBB0_10:
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 16(%rbx)
	movl	48(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	leaq	4(%rbx), %r15
	movq	%r15, 8(%rbx)
	movq	(%rsi), %rdi
	movq	%rdi, 40(%rbx)
	movq	%rax, %rsi
	callq	_device_create_bin_file
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %r14d
	jmp	LBB0_13
LBB0_12:
	movq	_FLAG_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bin_attr_ro_root_nvmem,32,3    ## @bin_attr_ro_root_nvmem
	.comm	_bin_attr_ro_nvmem,32,3         ## @bin_attr_ro_nvmem
	.comm	_bin_attr_rw_root_nvmem,32,3    ## @bin_attr_rw_root_nvmem
	.comm	_bin_attr_rw_nvmem,32,3         ## @bin_attr_rw_nvmem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create eeprom binary file %d\n"

	.comm	_FLAG_COMPAT,4,2                ## @FLAG_COMPAT
	.comm	_eeprom_lock_key,4,2            ## @eeprom_lock_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmem_sysfs_setup_compat       ; -- Begin function nvmem_sysfs_setup_compat
	.p2align	2
_nvmem_sysfs_setup_compat:              ; @nvmem_sysfs_setup_compat
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x10, [x0, #56]
	ldr	x9, [x1, #8]
	add	x8, x0, #8
	cbz	x10, LBB0_7
; %bb.3:
	cbz	x9, LBB0_9
; %bb.4:
Lloh0:
	adrp	x9, _bin_attr_ro_root_nvmem@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bin_attr_ro_root_nvmem@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	w20, #0
	b	LBB0_14
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_7:
	cbz	x9, LBB0_10
; %bb.8:
Lloh5:
	adrp	x9, _bin_attr_rw_root_nvmem@GOTPAGE
Lloh6:
	ldr	x9, [x9, _bin_attr_rw_root_nvmem@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x9, _bin_attr_ro_nvmem@GOTPAGE
Lloh8:
	ldr	x9, [x9, _bin_attr_ro_nvmem@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x9, _bin_attr_rw_nvmem@GOTPAGE
Lloh10:
	ldr	x9, [x9, _bin_attr_rw_nvmem@GOTPAGEOFF]
LBB0_11:
	ldp	q0, q1, [x9]
	stp	q0, q1, [x8]
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	ldr	w10, [x19, #48]
	str	w10, [x19, #32]
	add	x21, x19, #4
	stp	x21, x9, [x19, #8]
	ldr	x0, [x1]
	str	x0, [x19, #40]
	mov	x1, x8
	bl	_device_create_bin_file
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _FLAG_COMPAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLAG_COMPAT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bin_attr_ro_root_nvmem,32,3    ; @bin_attr_ro_root_nvmem
	.comm	_bin_attr_ro_nvmem,32,3         ; @bin_attr_ro_nvmem
	.comm	_bin_attr_rw_root_nvmem,32,3    ; @bin_attr_rw_root_nvmem
	.comm	_bin_attr_rw_nvmem,32,3         ; @bin_attr_rw_nvmem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create eeprom binary file %d\n"

	.comm	_FLAG_COMPAT,4,2                ; @FLAG_COMPAT
	.comm	_eeprom_lock_key,4,2            ; @eeprom_lock_key
.subsections_via_symbols
