	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_write_phy_reg_mdi        ## -- Begin function ixgbe_write_phy_reg_mdi
	.p2align	4, 0x90
_ixgbe_write_phy_reg_mdi:               ## @ixgbe_write_phy_reg_mdi
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_IXGBE_MSRWD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_MSCA_NP_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r13, %rax
	shlq	%cl, %rax
	movq	_IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	shlq	%cl, %rdx
	orq	%rax, %rdx
	movq	(%r12), %rbx
	movq	_IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	orq	%rdx, %rbx
	movq	_IXGBE_MSCA_ADDR_CYCLE@GOTPCREL(%rip), %rax
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %rcx
	orq	(%rax), %rbx
	orq	(%rcx), %rbx
	movq	_IXGBE_MSCA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_MDIO_COMMAND_TIMEOUT@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	cmpq	(%r14), %r13
	jl	LBB0_4
LBB0_5:
	testq	%rbx, %rax
	je	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_2:
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rax
	jne	LBB0_6
LBB0_7:
	movq	_IXGBE_MSCA_NP_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	shlq	%cl, %rbx
	movq	_IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	shlq	%cl, %rsi
	movq	(%r12), %rdx
	movq	_IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	orq	%rsi, %rdx
	movq	_IXGBE_MSCA_WRITE@GOTPCREL(%rip), %rcx
	orq	%rax, %rbx
	orq	%rdx, %rbx
	orq	(%rcx), %rbx
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	cmpq	$0, (%r14)
	jle	LBB0_11
## %bb.8:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_9
	jmp	LBB0_12
LBB0_11:
	movq	_IXGBE_MSCA_MDI_COMMAND@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_15
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_MSRWD,4,2                ## @IXGBE_MSRWD
	.comm	_IXGBE_MSCA_NP_ADDR_SHIFT,8,3   ## @IXGBE_MSCA_NP_ADDR_SHIFT
	.comm	_IXGBE_MSCA_DEV_TYPE_SHIFT,8,3  ## @IXGBE_MSCA_DEV_TYPE_SHIFT
	.comm	_IXGBE_MSCA_PHY_ADDR_SHIFT,8,3  ## @IXGBE_MSCA_PHY_ADDR_SHIFT
	.comm	_IXGBE_MSCA_ADDR_CYCLE,8,3      ## @IXGBE_MSCA_ADDR_CYCLE
	.comm	_IXGBE_MSCA_MDI_COMMAND,8,3     ## @IXGBE_MSCA_MDI_COMMAND
	.comm	_IXGBE_MSCA,4,2                 ## @IXGBE_MSCA
	.comm	_IXGBE_MDIO_COMMAND_TIMEOUT,8,3 ## @IXGBE_MDIO_COMMAND_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY address cmd didn't complete\n"

	.comm	_IXGBE_ERR_PHY,4,2              ## @IXGBE_ERR_PHY
	.comm	_IXGBE_MSCA_WRITE,8,3           ## @IXGBE_MSCA_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"PHY write cmd didn't complete\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_write_phy_reg_mdi        ; -- Begin function ixgbe_write_phy_reg_mdi
	.p2align	2
_ixgbe_write_phy_reg_mdi:               ; @ixgbe_write_phy_reg_mdi
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IXGBE_MSRWD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_MSRWD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x3
	bl	_IXGBE_WRITE_REG
Lloh3:
	adrp	x27, _IXGBE_MSCA_NP_ADDR_SHIFT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _IXGBE_MSCA_NP_ADDR_SHIFT@GOTPAGEOFF]
	ldr	x8, [x27]
	lsl	x8, x21, x8
Lloh5:
	adrp	x28, _IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _IXGBE_MSCA_DEV_TYPE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x28]
	lsl	x9, x20, x9
	ldr	x10, [x19]
Lloh7:
	adrp	x11, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
Lloh10:
	adrp	x12, _IXGBE_MSCA_ADDR_CYCLE@GOTPAGE
Lloh11:
	ldr	x12, [x12, _IXGBE_MSCA_ADDR_CYCLE@GOTPAGEOFF]
	lsl	x10, x10, x11
Lloh12:
	ldr	x11, [x12]
Lloh13:
	adrp	x23, _IXGBE_MSCA_MDI_COMMAND@GOTPAGE
Lloh14:
	ldr	x23, [x23, _IXGBE_MSCA_MDI_COMMAND@GOTPAGEOFF]
	ldr	x12, [x23]
	orr	x8, x9, x8
	orr	x8, x8, x10
	orr	x8, x8, x11
	orr	x22, x8, x12
Lloh15:
	adrp	x24, _IXGBE_MSCA@GOTPAGE
Lloh16:
	ldr	x24, [x24, _IXGBE_MSCA@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x22
	bl	_IXGBE_WRITE_REG
Lloh17:
	adrp	x25, _IXGBE_MDIO_COMMAND_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _IXGBE_MDIO_COMMAND_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x22, x0
	ldr	x8, [x23]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	ldr	x9, [x25]
	cmp	x26, x9
	b.lt	LBB0_2
LBB0_4:
	tst	x8, x22
	b.eq	LBB0_9
LBB0_5:
Lloh19:
	adrp	x20, l_.str@PAGE
Lloh20:
	add	x20, x20, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_hw_dbg
Lloh21:
	adrp	x8, _IXGBE_ERR_PHY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IXGBE_ERR_PHY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x23]
	tst	x8, x22
	b.ne	LBB0_5
LBB0_9:
	ldr	x9, [x27]
	lsl	x9, x21, x9
	ldr	x10, [x28]
	lsl	x10, x20, x10
	ldr	x11, [x19]
Lloh24:
	adrp	x12, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGE
Lloh25:
	ldr	x12, [x12, _IXGBE_MSCA_PHY_ADDR_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
	lsl	x11, x11, x12
Lloh27:
	adrp	x12, _IXGBE_MSCA_WRITE@GOTPAGE
Lloh28:
	ldr	x12, [x12, _IXGBE_MSCA_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x12]
	orr	x8, x9, x8
	orr	x8, x8, x10
	orr	x8, x8, x11
	orr	x20, x8, x12
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x21, #0
Lloh30:
	adrp	x20, l_.str.1@PAGE
Lloh31:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	tst	x8, x0
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldr	x8, [x25]
	cmp	x21, x8
	b.lt	LBB0_11
	b	LBB0_6
LBB0_13:
	ldr	x8, [x23]
	tst	x8, x20
	b.eq	LBB0_15
; %bb.14:
Lloh32:
	adrp	x20, l_.str.1@PAGE
Lloh33:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_15:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_MSRWD,4,2                ; @IXGBE_MSRWD
	.comm	_IXGBE_MSCA_NP_ADDR_SHIFT,8,3   ; @IXGBE_MSCA_NP_ADDR_SHIFT
	.comm	_IXGBE_MSCA_DEV_TYPE_SHIFT,8,3  ; @IXGBE_MSCA_DEV_TYPE_SHIFT
	.comm	_IXGBE_MSCA_PHY_ADDR_SHIFT,8,3  ; @IXGBE_MSCA_PHY_ADDR_SHIFT
	.comm	_IXGBE_MSCA_ADDR_CYCLE,8,3      ; @IXGBE_MSCA_ADDR_CYCLE
	.comm	_IXGBE_MSCA_MDI_COMMAND,8,3     ; @IXGBE_MSCA_MDI_COMMAND
	.comm	_IXGBE_MSCA,4,2                 ; @IXGBE_MSCA
	.comm	_IXGBE_MDIO_COMMAND_TIMEOUT,8,3 ; @IXGBE_MDIO_COMMAND_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY address cmd didn't complete\n"

	.comm	_IXGBE_ERR_PHY,4,2              ; @IXGBE_ERR_PHY
	.comm	_IXGBE_MSCA_WRITE,8,3           ; @IXGBE_MSCA_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"PHY write cmd didn't complete\n"

.subsections_via_symbols
