	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_force_link_speed
_port_force_link_speed:                 ## @port_force_link_speed
	.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
	cmpl	$0, 4(%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movl	(%rdi), %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PHY_FULL_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -44(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hw_w_phy_ctrl
	incl	%r15d
	cmpl	4(%r12), %r15d
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %ebx
	movq	_PHY_CTRL_INTERVAL@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	_KS884X_PHY_1_CTRL_OFFSET@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_hw_r_phy_ctrl
	movq	_PHY_AUTO_NEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	8(%r12), %eax
	cmpl	$100, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$10, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PHY_SPEED_100MBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PHY_SPEED_100MBIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -44(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r12), %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PHY_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS884X_PHY_1_CTRL_OFFSET,4,2   ## @KS884X_PHY_1_CTRL_OFFSET
	.comm	_PHY_CTRL_INTERVAL,4,2          ## @PHY_CTRL_INTERVAL
	.comm	_PHY_AUTO_NEG_ENABLE,4,2        ## @PHY_AUTO_NEG_ENABLE
	.comm	_PHY_SPEED_100MBIT,4,2          ## @PHY_SPEED_100MBIT
	.comm	_PHY_FULL_DUPLEX,4,2            ## @PHY_FULL_DUPLEX
	.no_dead_strip	_port_force_link_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_force_link_speed
_port_force_link_speed:                 ; @port_force_link_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	w22, #0
	ldr	x20, [x0, #16]
	ldr	w23, [x0]
Lloh0:
	adrp	x24, _KS884X_PHY_1_CTRL_OFFSET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _KS884X_PHY_1_CTRL_OFFSET@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PHY_CTRL_INTERVAL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PHY_CTRL_INTERVAL@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PHY_AUTO_NEG_ENABLE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PHY_AUTO_NEG_ENABLE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PHY_SPEED_100MBIT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PHY_SPEED_100MBIT@GOTPAGEOFF]
Lloh8:
	adrp	x28, _PHY_FULL_DUPLEX@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PHY_FULL_DUPLEX@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	orr	w2, w2, w8
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w2, [sp, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_hw_w_phy_ctrl
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w22
	ldr	w9, [x24]
	ldr	w10, [x25]
	madd	w21, w10, w8, w9
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_hw_r_phy_ctrl
	ldr	w8, [x26]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w8, [x19, #8]
	cmp	w8, #100
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #10
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	bic	w2, w2, w8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	orr	w2, w8, w2
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w2, [sp, #12]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	bic	w2, w2, w8
	b	LBB0_3
LBB0_13:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KS884X_PHY_1_CTRL_OFFSET,4,2   ; @KS884X_PHY_1_CTRL_OFFSET
	.comm	_PHY_CTRL_INTERVAL,4,2          ; @PHY_CTRL_INTERVAL
	.comm	_PHY_AUTO_NEG_ENABLE,4,2        ; @PHY_AUTO_NEG_ENABLE
	.comm	_PHY_SPEED_100MBIT,4,2          ; @PHY_SPEED_100MBIT
	.comm	_PHY_FULL_DUPLEX,4,2            ; @PHY_FULL_DUPLEX
	.no_dead_strip	_port_force_link_speed
.subsections_via_symbols
