	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_port_setup
_ksz9477_port_setup:                    ## @ksz9477_port_setup
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	40(%rdi), %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_REG_PORT_CTRL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_TAIL_TAG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
LBB0_2:
	movslq	%r14d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_REG_PORT_CTRL_0@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_PORT_MAC_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	movq	_REG_PORT_MAC_CTRL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_BACK_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_P_BCAST_STORM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_BROADCAST_STORM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_P_PRIO_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_PORT_DIFFSERV_PRIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	movq	_REG_PORT_MRI_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_USER_PRIO_CEILING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	movq	_REG_PORT_MTI_QUEUE_CTRL_0__4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTI_PVID_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz9477_port_cfg32
	movl	(%r15), %edx
	movq	_PORT_802_1P_PRIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_PORT_FORCE_TX_FLOW_CTRL@GOTPCREL(%rip), %rax
	movq	_PORT_FORCE_RX_FLOW_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%r12), %edx
	cmpl	%r14d, (%r13)
	jle	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	cmpq	$0, 32(%r13)
	je	LBB0_20
## %bb.4:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ksz9477_phy_errata_setup
	jmp	LBB0_20
LBB0_5:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_REG_PORT_XMII_CTRL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ksz_pread8
	movl	4(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.8:
	movq	%rbx, %r15
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_10:
	movq	%rbx, %r15
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	movl	$1, %esi
LBB0_9:
	movq	%r12, %rdx
	callq	_ksz9477_set_xmii
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_ksz9477_set_gbit
	movq	_SPEED_100@GOTPCREL(%rip), %rsi
	jmp	LBB0_19
LBB0_11:
	movq	%rbx, %r15
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	movl	$2, %esi
	movq	%r12, %rdx
	callq	_ksz9477_set_xmii
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_ksz9477_set_gbit
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	jmp	LBB0_19
LBB0_12:
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	movl	$3, %esi
	movq	%r12, %rdx
	callq	_ksz9477_set_xmii
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_ksz9477_set_gbit
	movq	_PORT_RGMII_ID_IG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PORT_RGMII_ID_EG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%esi, %ecx
	orl	%r8d, %ecx
	notl	%ecx
	andl	-44(%rbp), %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%r13), %edx
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %edx
	je	LBB0_14
## %bb.13:
	movq	_PHY_INTERFACE_MODE_RGMII_RXID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_15
LBB0_14:
	orl	%esi, %ecx
	movl	%ecx, -44(%rbp)
LBB0_15:
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	cmpl	%edi, %edx
	je	LBB0_18
## %bb.16:
	movq	_PHY_INTERFACE_MODE_RGMII_TXID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_18
## %bb.17:
	movq	%rbx, %r15
	jmp	LBB0_19
LBB0_18:
	movq	%rbx, %r15
	orl	%r8d, %ecx
	movl	%ecx, -44(%rbp)
LBB0_19:
	movq	(%rsi), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	movq	%rax, 24(%r15,%rbx)
	movq	_REG_PORT_XMII_CTRL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ksz_pwrite8
	movl	$1, 8(%r15,%rbx)
	movq	%r15, %rbx
LBB0_20:
	leaq	24(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movl	8(%r13), %r15d
	movl	16(%r13), %eax
	movl	%eax, 12(%r13)
	movl	%eax, 20(%r13)
	jmp	LBB0_24
LBB0_22:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	shlq	$5, %rdx
	movl	(%rbx,%rdx), %r15d
	orl	16(%r13), %r15d
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 12(%r13)
	cmpq	$0, 16(%rbx,%rdx)
	je	LBB0_24
## %bb.23:
	orl	%eax, 20(%r13)
LBB0_24:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ksz9477_cfg_port_member
	cmpl	%r14d, (%r13)
	jle	LBB0_26
## %bb.25:
	movq	_REG_PORT_PHY_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ksz_pread16
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PORT_CTRL_0,4,2            ## @REG_PORT_CTRL_0
	.comm	_PORT_TAIL_TAG_ENABLE,4,2       ## @PORT_TAIL_TAG_ENABLE
	.comm	_PORT_MAC_LOOPBACK,4,2          ## @PORT_MAC_LOOPBACK
	.comm	_REG_PORT_MAC_CTRL_1,4,2        ## @REG_PORT_MAC_CTRL_1
	.comm	_PORT_BACK_PRESSURE,4,2         ## @PORT_BACK_PRESSURE
	.comm	_P_BCAST_STORM_CTRL,4,2         ## @P_BCAST_STORM_CTRL
	.comm	_PORT_BROADCAST_STORM,4,2       ## @PORT_BROADCAST_STORM
	.comm	_P_PRIO_CTRL,4,2                ## @P_PRIO_CTRL
	.comm	_PORT_DIFFSERV_PRIO_ENABLE,4,2  ## @PORT_DIFFSERV_PRIO_ENABLE
	.comm	_REG_PORT_MRI_MAC_CTRL,4,2      ## @REG_PORT_MRI_MAC_CTRL
	.comm	_PORT_USER_PRIO_CEILING,4,2     ## @PORT_USER_PRIO_CEILING
	.comm	_REG_PORT_MTI_QUEUE_CTRL_0__4,4,2 ## @REG_PORT_MTI_QUEUE_CTRL_0__4
	.comm	_MTI_PVID_REPLACE,4,2           ## @MTI_PVID_REPLACE
	.comm	_PORT_802_1P_PRIO_ENABLE,4,2    ## @PORT_802_1P_PRIO_ENABLE
	.comm	_PORT_FORCE_TX_FLOW_CTRL,4,2    ## @PORT_FORCE_TX_FLOW_CTRL
	.comm	_PORT_FORCE_RX_FLOW_CTRL,4,2    ## @PORT_FORCE_RX_FLOW_CTRL
	.comm	_REG_PORT_XMII_CTRL_1,4,2       ## @REG_PORT_XMII_CTRL_1
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_PORT_RGMII_ID_IG_ENABLE,4,2    ## @PORT_RGMII_ID_IG_ENABLE
	.comm	_PORT_RGMII_ID_EG_ENABLE,4,2    ## @PORT_RGMII_ID_EG_ENABLE
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,4,2 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,4,2 ## @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,4,2 ## @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_REG_PORT_PHY_INT_ENABLE,4,2    ## @REG_PORT_PHY_INT_ENABLE
	.no_dead_strip	_ksz9477_port_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_port_setup
_ksz9477_port_setup:                    ; @ksz9477_port_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x22, _REG_PORT_CTRL_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_PORT_CTRL_0@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh2:
	adrp	x8, _PORT_TAIL_TAG_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORT_TAIL_TAG_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_ksz_port_cfg
LBB0_2:
	sxtw	x24, w19
	ldr	w2, [x22]
Lloh5:
	adrp	x8, _PORT_MAC_LOOPBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORT_MAC_LOOPBACK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_ksz_port_cfg
Lloh8:
	adrp	x8, _REG_PORT_MAC_CTRL_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_PORT_MAC_CTRL_1@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _PORT_BACK_PRESSURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PORT_BACK_PRESSURE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_ksz_port_cfg
Lloh14:
	adrp	x8, _P_BCAST_STORM_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P_BCAST_STORM_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _PORT_BROADCAST_STORM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PORT_BROADCAST_STORM@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_ksz_port_cfg
Lloh20:
	adrp	x25, _P_PRIO_CTRL@GOTPAGE
Lloh21:
	ldr	x25, [x25, _P_PRIO_CTRL@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh22:
	adrp	x8, _PORT_DIFFSERV_PRIO_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PORT_DIFFSERV_PRIO_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_ksz_port_cfg
Lloh25:
	adrp	x8, _REG_PORT_MRI_MAC_CTRL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REG_PORT_MRI_MAC_CTRL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _PORT_USER_PRIO_CEILING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PORT_USER_PRIO_CEILING@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_ksz_port_cfg
Lloh31:
	adrp	x8, _REG_PORT_MTI_QUEUE_CTRL_0__4@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REG_PORT_MTI_QUEUE_CTRL_0__4@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _MTI_PVID_REPLACE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MTI_PVID_REPLACE@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_ksz9477_port_cfg32
	ldr	w2, [x25]
Lloh37:
	adrp	x8, _PORT_802_1P_PRIO_ENABLE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PORT_802_1P_PRIO_ENABLE@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #1
	bl	_ksz_port_cfg
	ldr	w8, [x20]
	ldr	w2, [x22]
Lloh40:
	adrp	x9, _PORT_FORCE_TX_FLOW_CTRL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PORT_FORCE_TX_FLOW_CTRL@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _PORT_FORCE_RX_FLOW_CTRL@GOTPAGE
Lloh44:
	ldr	x10, [x10, _PORT_FORCE_RX_FLOW_CTRL@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	orr	w3, w10, w9
	mov	x0, x20
	mov	x1, x19
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
	mov	w4, #0
	bl	_ksz_port_cfg
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_20
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_ksz9477_phy_errata_setup
	b	LBB0_20
LBB0_5:
	mov	w4, #1
	bl	_ksz_port_cfg
Lloh46:
	adrp	x22, _REG_PORT_XMII_CTRL_1@GOTPAGE
Lloh47:
	ldr	x22, [x22, _REG_PORT_XMII_CTRL_1@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_ksz_pread8
	ldr	w8, [x20, #4]
	add	x2, sp, #12
	mov	x0, x20
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.8:
	mov	w1, #0
	b	LBB0_10
LBB0_9:
	mov	w1, #1
LBB0_10:
	bl	_ksz9477_set_xmii
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #0
	bl	_ksz9477_set_gbit
Lloh48:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	mov	w1, #2
	bl	_ksz9477_set_xmii
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #1
	bl	_ksz9477_set_gbit
	b	LBB0_18
LBB0_12:
	mov	w1, #3
	bl	_ksz9477_set_xmii
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #1
	bl	_ksz9477_set_gbit
Lloh50:
	adrp	x8, _PORT_RGMII_ID_IG_ENABLE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PORT_RGMII_ID_IG_ENABLE@GOTPAGEOFF]
Lloh52:
	ldr	w11, [x8]
	ldr	w9, [sp, #12]
Lloh53:
	adrp	x8, _PORT_RGMII_ID_EG_ENABLE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PORT_RGMII_ID_EG_ENABLE@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	orr	w10, w11, w8
	bic	w9, w9, w10
	str	w9, [sp, #12]
	ldr	w10, [x20, #4]
Lloh56:
	adrp	x12, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh57:
	ldr	x12, [x12, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh58:
	ldr	w12, [x12]
	cmp	w10, w12
	b.eq	LBB0_14
; %bb.13:
Lloh59:
	adrp	x13, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGE
Lloh60:
	ldr	x13, [x13, _PHY_INTERFACE_MODE_RGMII_RXID@GOTPAGEOFF]
Lloh61:
	ldr	w13, [x13]
	cmp	w10, w13
	b.ne	LBB0_15
LBB0_14:
	orr	w9, w9, w11
	str	w9, [sp, #12]
LBB0_15:
	cmp	w10, w12
	b.eq	LBB0_17
; %bb.16:
Lloh62:
	adrp	x11, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGE
Lloh63:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_RGMII_TXID@GOTPAGEOFF]
Lloh64:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_18
LBB0_17:
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_18:
Lloh65:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	add	x25, x23, x24, lsl #5
	str	x8, [x25, #24]
	ldr	w2, [x22]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_ksz_pwrite8
	mov	w8, #1
	str	w8, [x25, #8]
LBB0_20:
	add	x22, x20, #24
	mov	x0, x22
	bl	_mutex_lock
	cbz	w21, LBB0_22
; %bb.21:
	ldr	w21, [x20, #8]
	ldr	w8, [x20, #16]
	str	w8, [x20, #12]
	b	LBB0_24
LBB0_22:
	add	x9, x23, x24, lsl #5
	ldr	w8, [x9]
	ldp	w11, w10, [x20, #12]
	orr	w21, w8, w10
	mov	w8, #1
	lsl	w8, w8, w19
	orr	w10, w11, w8
	str	w10, [x20, #12]
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_25
; %bb.23:
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
LBB0_24:
	str	w8, [x20, #20]
LBB0_25:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ksz9477_cfg_port_member
	ldr	w8, [x20]
	cmp	w8, w19
	b.le	LBB0_27
; %bb.26:
Lloh67:
	adrp	x8, _REG_PORT_PHY_INT_ENABLE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _REG_PORT_PHY_INT_ENABLE@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ksz_pread16
LBB0_27:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PORT_CTRL_0,4,2            ; @REG_PORT_CTRL_0
	.comm	_PORT_TAIL_TAG_ENABLE,4,2       ; @PORT_TAIL_TAG_ENABLE
	.comm	_PORT_MAC_LOOPBACK,4,2          ; @PORT_MAC_LOOPBACK
	.comm	_REG_PORT_MAC_CTRL_1,4,2        ; @REG_PORT_MAC_CTRL_1
	.comm	_PORT_BACK_PRESSURE,4,2         ; @PORT_BACK_PRESSURE
	.comm	_P_BCAST_STORM_CTRL,4,2         ; @P_BCAST_STORM_CTRL
	.comm	_PORT_BROADCAST_STORM,4,2       ; @PORT_BROADCAST_STORM
	.comm	_P_PRIO_CTRL,4,2                ; @P_PRIO_CTRL
	.comm	_PORT_DIFFSERV_PRIO_ENABLE,4,2  ; @PORT_DIFFSERV_PRIO_ENABLE
	.comm	_REG_PORT_MRI_MAC_CTRL,4,2      ; @REG_PORT_MRI_MAC_CTRL
	.comm	_PORT_USER_PRIO_CEILING,4,2     ; @PORT_USER_PRIO_CEILING
	.comm	_REG_PORT_MTI_QUEUE_CTRL_0__4,4,2 ; @REG_PORT_MTI_QUEUE_CTRL_0__4
	.comm	_MTI_PVID_REPLACE,4,2           ; @MTI_PVID_REPLACE
	.comm	_PORT_802_1P_PRIO_ENABLE,4,2    ; @PORT_802_1P_PRIO_ENABLE
	.comm	_PORT_FORCE_TX_FLOW_CTRL,4,2    ; @PORT_FORCE_TX_FLOW_CTRL
	.comm	_PORT_FORCE_RX_FLOW_CTRL,4,2    ; @PORT_FORCE_RX_FLOW_CTRL
	.comm	_REG_PORT_XMII_CTRL_1,4,2       ; @REG_PORT_XMII_CTRL_1
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_PORT_RGMII_ID_IG_ENABLE,4,2    ; @PORT_RGMII_ID_IG_ENABLE
	.comm	_PORT_RGMII_ID_EG_ENABLE,4,2    ; @PORT_RGMII_ID_EG_ENABLE
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,4,2 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_RGMII_RXID,4,2 ; @PHY_INTERFACE_MODE_RGMII_RXID
	.comm	_PHY_INTERFACE_MODE_RGMII_TXID,4,2 ; @PHY_INTERFACE_MODE_RGMII_TXID
	.comm	_REG_PORT_PHY_INT_ENABLE,4,2    ; @REG_PORT_PHY_INT_ENABLE
	.no_dead_strip	_ksz9477_port_setup
.subsections_via_symbols
