	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_i2c_read
_xgbe_phy_i2c_read:                     ## @xgbe_phy_i2c_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	$-1, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_XGBE_I2C_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r12d, -72(%rbp)
	movl	%ebx, -68(%rbp)
	movq	%r14, -64(%rbp)
	movq	%r13, %rdi
	leaq	-72(%rbp), %rsi
	callq	_xgbe_phy_i2c_xfer
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %ecx
	testl	%r15d, %r15d
	movl	%ecx, %r15d
	jne	LBB0_1
	jmp	LBB0_7
LBB0_2:
	movl	$-1, %ebx
	movq	_XGBE_I2C_CMD_READ@GOTPCREL(%rip), %r15
	leaq	-72(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	%r12d, -72(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -68(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_xgbe_phy_i2c_xfer
	movl	%eax, %ecx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jne	LBB0_3
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_I2C_CMD_WRITE,4,2         ## @XGBE_I2C_CMD_WRITE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_XGBE_I2C_CMD_READ,4,2          ## @XGBE_I2C_CMD_READ
	.no_dead_strip	_xgbe_phy_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_i2c_read
_xgbe_phy_i2c_read:                     ; @xgbe_phy_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _XGBE_I2C_CMD_WRITE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _XGBE_I2C_CMD_WRITE@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [sp, #24]
	stp	w1, w3, [sp, #8]
	str	x2, [sp, #16]
	add	x1, sp, #8
	bl	_xgbe_phy_i2c_xfer
Lloh2:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x25]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x26]
	str	w8, [sp, #24]
	stp	w22, w24, [sp, #8]
	str	x23, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_xgbe_phy_i2c_xfer
	cbnz	w0, LBB0_5
LBB0_3:
Lloh4:
	adrp	x23, _XGBE_I2C_CMD_READ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _XGBE_I2C_CMD_READ@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #24]
	stp	w22, w21, [sp, #8]
	str	x20, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_xgbe_phy_i2c_xfer
	ldr	w8, [x25]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x23]
	str	w8, [sp, #24]
	stp	w22, w21, [sp, #8]
	str	x20, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_xgbe_phy_i2c_xfer
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_I2C_CMD_WRITE,4,2         ; @XGBE_I2C_CMD_WRITE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_XGBE_I2C_CMD_READ,4,2          ; @XGBE_I2C_CMD_READ
	.no_dead_strip	_xgbe_phy_i2c_read
.subsections_via_symbols
