	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_eeprom_internal_read
_ipath_eeprom_internal_read:            ## @ipath_eeprom_internal_read
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_ipath_i2c_type
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_IPATH_NO_DEV@GOTPCREL(%rip), %rcx
	movq	_VERBOSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_ipath_cdbg
	addl	%r12d, %r12d
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_9:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_i2c_startcmd
	testl	%eax, %eax
	je	LBB0_10
## %bb.16:
	movq	(%r13), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_ipath_dbg
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	callq	_ipath_cdbg
	movq	_WRITE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r14, %rdi
	callq	_i2c_startcmd
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ipath_dbg
LBB0_5:
	movq	%r14, %rdi
	callq	_stop_cmd
	jmp	LBB0_15
LBB0_10:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.11:
	movq	%rbx, %r12
	movq	%r14, %rdi
	callq	_rd_byte
	movl	%eax, (%rbx)
	cmpl	$1, %r15d
	je	LBB0_14
## %bb.12:
	movl	%r15d, %r15d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_send_ack
	movq	%r14, %rdi
	callq	_rd_byte
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_stop_cmd
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_wr_byte
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_stop_cmd
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_ipath_dev_err
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	orl	(%r13), %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_NO_DEV,8,3               ## @IPATH_NO_DEV
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start command only address\n"

	.comm	_READ_CMD,4,2                   ## @READ_CMD
L_.str.1:                               ## @.str.1
	.asciz	"Start command uses devaddr\n"

	.comm	_WRITE_CMD,4,2                  ## @WRITE_CMD
L_.str.2:                               ## @.str.2
	.asciz	"Failed EEPROM startcmd\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to write EEPROM address\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed startcmd for dev %02X\n"

	.no_dead_strip	_ipath_eeprom_internal_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_eeprom_internal_read
_ipath_eeprom_internal_read:            ; @ipath_eeprom_internal_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_ipath_i2c_type
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _IPATH_NO_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_NO_DEV@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _VERBOSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VERBOSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x10]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ipath_cdbg
Lloh8:
	adrp	x8, _READ_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _READ_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w1, w8, w23, lsl #1
LBB0_3:
	mov	x0, x19
	bl	_i2c_startcmd
	cbz	w0, LBB0_10
; %bb.4:
	ldr	x8, [x22]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ipath_cdbg
	ldr	w8, [x22]
Lloh15:
	adrp	x9, _WRITE_CMD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WRITE_CMD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_i2c_startcmd
	cbz	w0, LBB0_15
; %bb.6:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_ipath_dbg
	mov	x0, x19
	bl	_stop_cmd
LBB0_8:
	mov	w0, #1
LBB0_9:
	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
	add	sp, sp, #80
	ret
LBB0_10:
	subs	w21, w21, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_rd_byte
	str	w0, [x20]
	cbz	w21, LBB0_14
; %bb.12:
	add	x20, x20, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_send_ack
	sub	w21, w21, #1
	mov	x0, x19
	bl	_rd_byte
	str	w0, [x20], #4
	cbnz	w21, LBB0_13
LBB0_14:
	mov	x0, x19
	bl	_stop_cmd
	mov	w0, #0
	b	LBB0_9
LBB0_15:
	mov	x0, x19
	mov	x1, x23
	bl	_wr_byte
	mov	x23, x0
	mov	x0, x19
	bl	_stop_cmd
	cbz	w23, LBB0_17
; %bb.16:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
	b	LBB0_8
LBB0_17:
	ldr	w8, [x22]
Lloh22:
	adrp	x9, _READ_CMD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _READ_CMD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_NO_DEV,8,3               ; @IPATH_NO_DEV
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start command only address\n"

	.comm	_READ_CMD,4,2                   ; @READ_CMD
l_.str.1:                               ; @.str.1
	.asciz	"Start command uses devaddr\n"

	.comm	_WRITE_CMD,4,2                  ; @WRITE_CMD
l_.str.2:                               ; @.str.2
	.asciz	"Failed EEPROM startcmd\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to write EEPROM address\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed startcmd for dev %02X\n"

	.no_dead_strip	_ipath_eeprom_internal_read
.subsections_via_symbols
