	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_eeprom_ewen               ## -- Begin function solo_eeprom_ewen
	.p2align	4, 0x90
_solo_eeprom_ewen:                      ## @solo_eeprom_ewen
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	movl	$63, %eax
	cmovnel	%eax, %esi
	movq	_EE_EWEN_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ADDR_LEN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %esi
	callq	_solo_eeprom_cmd
	xorl	%ebx, %ebx
	movl	$16, %r12d
	movq	_SOLO_EEPROM_ENABLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EE_SHIFT_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_write
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_read
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_write
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_read
	movl	%eax, %ebx
	shll	$2, %r15d
	addl	%eax, %ebx
	orl	%r15d, %ebx
	decl	%r12d
	jne	LBB0_1
## %bb.2:
	movq	_EE_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_write
	movq	%r14, %rdi
	callq	_solo_eeprom_reg_read
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EE_EWEN_CMD,4,2                ## @EE_EWEN_CMD
	.comm	_ADDR_LEN,4,2                   ## @ADDR_LEN
	.comm	_SOLO_EEPROM_ENABLE,4,2         ## @SOLO_EEPROM_ENABLE
	.comm	_EE_SHIFT_CLK,4,2               ## @EE_SHIFT_CLK
	.comm	_EE_CS,4,2                      ## @EE_CS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_eeprom_ewen               ; -- Begin function solo_eeprom_ewen
	.p2align	2
_solo_eeprom_ewen:                      ; @solo_eeprom_ewen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #63
	cmp	w1, #0
	csel	w8, wzr, w8, eq
Lloh0:
	adrp	x9, _EE_EWEN_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EE_EWEN_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ADDR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
	bl	_solo_eeprom_cmd
	mov	w20, #0
	mov	w21, #16
Lloh6:
	adrp	x22, _SOLO_EEPROM_ENABLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SOLO_EEPROM_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x23, _EE_SHIFT_CLK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _EE_SHIFT_CLK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_solo_eeprom_reg_write
	mov	x0, x19
	bl	_solo_eeprom_reg_read
	orr	w20, w0, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_solo_eeprom_reg_write
	mov	x0, x19
	bl	_solo_eeprom_reg_read
	lsl	w8, w0, #1
	orr	w20, w8, w20, lsl #2
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.2:
Lloh10:
	adrp	x8, _EE_CS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EE_CS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mvn	w1, w8
	mov	x0, x19
	bl	_solo_eeprom_reg_write
	mov	x0, x19
	bl	_solo_eeprom_reg_read
	orr	w0, w0, w20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EE_EWEN_CMD,4,2                ; @EE_EWEN_CMD
	.comm	_ADDR_LEN,4,2                   ; @ADDR_LEN
	.comm	_SOLO_EEPROM_ENABLE,4,2         ; @SOLO_EEPROM_ENABLE
	.comm	_EE_SHIFT_CLK,4,2               ; @EE_SHIFT_CLK
	.comm	_EE_CS,4,2                      ; @EE_CS
.subsections_via_symbols
