	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_phy_vars
_set_phy_vars:                          ## @set_phy_vars
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_INT_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	8(%rdi), %r14
	jge	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	_PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	andq	(%rdi), %r13
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_DP
	incq	%r14
	cmpq	8(%r15), %r14
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_LINK_CONFIG_IDX
	movq	%r14, %rcx
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EXT_PHY1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_EXT_PHY2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %r14
	cmovneq	%r14, %rdx
	movq	%rdx, %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rsi
	movq	48(%r15), %rdx
	movl	(%rdx,%rax,4), %edx
	leaq	(%rcx,%rcx,2), %rdi
	movl	%edx, 12(%rsi,%rdi,8)
	movq	16(%r15), %r9
	movq	(%r9,%rax,8), %rcx
	movq	%rcx, (%rsi,%rdi,8)
	movq	40(%r15), %rbx
	movl	(%rbx,%rax,4), %r8d
	movl	%r8d, 8(%rsi,%rdi,8)
	movq	32(%r15), %rbx
	movl	(%rbx,%rax,4), %ebx
	movl	%ebx, 16(%rsi,%rdi,8)
	movq	(%r9,%rax,8), %rax
	movq	_SPEED_AUTO_NEG@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LINK_STATUS_AUTO_NEGOTIATE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	orl	%eax, (%rsi)
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,8,3 ## @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_INT_PHY,8,3                    ## @INT_PHY
	.comm	_EXT_PHY1,8,3                   ## @EXT_PHY1
	.comm	_EXT_PHY2,8,3                   ## @EXT_PHY2
	.comm	_SPEED_AUTO_NEG,8,3             ## @SPEED_AUTO_NEG
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_ENABLED,4,2 ## @LINK_STATUS_AUTO_NEGOTIATE_ENABLED
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"req_flow_ctrl %x, req_line_speed %x, speed_cap_mask %x\n"

	.no_dead_strip	_set_phy_vars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_phy_vars
_set_phy_vars:                          ; @set_phy_vars
	.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
Lloh0:
	adrp	x8, _INT_PHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_PHY@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x0, #8]
	cmp	x21, x8
	b.ge	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	and	x23, x8, x9
	mov	w24, #24
Lloh6:
	adrp	x25, _SPEED_AUTO_NEG@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SPEED_AUTO_NEG@GOTPAGEOFF]
Lloh8:
	adrp	x27, _NETIF_MSG_LINK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
Lloh12:
	adrp	x28, _EXT_PHY1@GOTPAGE
Lloh13:
	ldr	x28, [x28, _EXT_PHY1@GOTPAGEOFF]
Lloh14:
	adrp	x26, _EXT_PHY2@GOTPAGE
Lloh15:
	ldr	x26, [x26, _EXT_PHY2@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	mov	x1, x22
	bl	_DP
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_LINK_CONFIG_IDX
	mov	x8, x21
	cbz	x23, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x26]
	cmp	x21, x9
	csel	x10, x8, x21, eq
	cmp	x21, x8
	csel	x8, x9, x10, eq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #48]
	lsl	x10, x0, #2
	ldr	w2, [x9, x10]
	ldp	x11, x9, [x20, #16]
	madd	x8, x8, x24, x9
	str	w2, [x8, #12]
	lsl	x9, x0, #3
	ldr	x3, [x11, x9]
	ldp	x13, x12, [x20, #32]
	ldr	w4, [x12, x10]
	str	w4, [x8, #8]
	ldr	w10, [x13, x10]
	str	x3, [x8]
	str	w10, [x8, #16]
	ldr	x8, [x11, x9]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _LINK_STATUS_AUTO_NEGOTIATE_ENABLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LINK_STATUS_AUTO_NEGOTIATE_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,8,3 ; @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_INT_PHY,8,3                    ; @INT_PHY
	.comm	_EXT_PHY1,8,3                   ; @EXT_PHY1
	.comm	_EXT_PHY2,8,3                   ; @EXT_PHY2
	.comm	_SPEED_AUTO_NEG,8,3             ; @SPEED_AUTO_NEG
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_ENABLED,4,2 ; @LINK_STATUS_AUTO_NEGOTIATE_ENABLED
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"req_flow_ctrl %x, req_line_speed %x, speed_cap_mask %x\n"

	.no_dead_strip	_set_phy_vars
.subsections_via_symbols
