	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_read_u16
_eeprom_read_u16:                       ## @eeprom_read_u16
	.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
	movl	%esi, %edx
	movq	%rdi, %r14
	movq	_EEPROM_CMD_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eeprom_op
	movq	_EEPROM_BIT_CS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_eeprom_write_reg
	xorl	%r12d, %r12d
	movl	$16, %ebx
	movq	_EEPROM_BIT_DO@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EEPROM_BIT_SK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	%r14, %rdi
	callq	_eeprom_write_reg
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_eeprom_write_reg
	movq	_FW_MEM_REG_EEPROM_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipw_read_reg32
	xorl	%ecx, %ecx
	testl	%eax, (%r13)
	setne	%cl
	leal	(%rcx,%r12,2), %r12d
	decl	%ebx
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_eeprom_write_reg
	movq	%r14, %rdi
	callq	_eeprom_disable_cs
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_CMD_READ,4,2            ## @EEPROM_CMD_READ
	.comm	_EEPROM_BIT_CS,4,2              ## @EEPROM_BIT_CS
	.comm	_EEPROM_BIT_SK,4,2              ## @EEPROM_BIT_SK
	.comm	_FW_MEM_REG_EEPROM_ACCESS,4,2   ## @FW_MEM_REG_EEPROM_ACCESS
	.comm	_EEPROM_BIT_DO,4,2              ## @EEPROM_BIT_DO
	.no_dead_strip	_eeprom_read_u16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_read_u16
_eeprom_read_u16:                       ; @eeprom_read_u16
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EEPROM_CMD_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_CMD_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_eeprom_op
Lloh3:
	adrp	x21, _EEPROM_BIT_CS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EEPROM_BIT_CS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_eeprom_write_reg
	mov	w20, #0
	mov	w22, #16
Lloh5:
	adrp	x23, _EEPROM_BIT_SK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EEPROM_BIT_SK@GOTPAGEOFF]
Lloh7:
	adrp	x24, _FW_MEM_REG_EEPROM_ACCESS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FW_MEM_REG_EEPROM_ACCESS@GOTPAGEOFF]
Lloh9:
	adrp	x25, _EEPROM_BIT_DO@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EEPROM_BIT_DO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_eeprom_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_eeprom_write_reg
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ipw_read_reg32
	ldr	w8, [x25]
	tst	w8, w0
	cset	w8, ne
	bfi	w8, w20, #1, #31
	mov	x20, x8
	subs	w22, w22, #1
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_eeprom_write_reg
	mov	x0, x19
	bl	_eeprom_disable_cs
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_CMD_READ,4,2            ; @EEPROM_CMD_READ
	.comm	_EEPROM_BIT_CS,4,2              ; @EEPROM_BIT_CS
	.comm	_EEPROM_BIT_SK,4,2              ; @EEPROM_BIT_SK
	.comm	_FW_MEM_REG_EEPROM_ACCESS,4,2   ; @FW_MEM_REG_EEPROM_ACCESS
	.comm	_EEPROM_BIT_DO,4,2              ; @EEPROM_BIT_DO
	.no_dead_strip	_eeprom_read_u16
.subsections_via_symbols
