	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_set_link_modes
_gem_set_link_modes:                    ## @gem_set_link_modes
	.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	%rdi, %r12
	movl	8(%rdi), %edi
	xorl	%esi, %esi
	callq	_netdev_get_tx_queue
	movq	%rax, %r13
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_found_mii_phy
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	32(%r12), %rdi
	movq	48(%r12), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_34
## %bb.2:
	movq	32(%r12), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
	movl	40(%r12), %r15d
	movl	44(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	(%r12), %rax
	movq	_phy_serialink@GOTPCREL(%rip), %rcx
	movq	_phy_serdes@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	cmpq	(%rbx), %rax
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_PCS_MIILP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movq	_PCS_MIIADV_FD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	(%r12), %rax
	xorl	%r14d, %r14d
	cmpq	(%rbx), %rax
	jne	LBB0_9
LBB0_8:
	movl	$1, %r14d
LBB0_9:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	testl	%r14d, %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmovneq	%rax, %r9
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %r8d
	callq	_netif_info
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	_MAC_TXCFG_ICS@GOTPCREL(%rip), %rax
	movq	_MAC_TXCFG_ICOLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %r14d
	movq	_MAC_TXCFG_EIPG0@GOTPCREL(%rip), %rax
	movq	_MAC_TXCFG_NGU@GOTPCREL(%rip), %rdx
	cmovel	%r14d, %ecx
	movl	(%rdx), %edi
	orl	(%rax), %edi
	orl	%ecx, %edi
	movq	_MAC_TXCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	callq	_writel
	movq	_MAC_XIFCFG_OE@GOTPCREL(%rip), %rcx
	movq	_MAC_XIFCFG_LLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.14:
	movq	_MAC_XIFCFG_FLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_11:
	movq	(%r12), %rcx
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_13
## %bb.12:
	movq	_phy_mii_mdio1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
LBB0_13:
	movq	_MAC_XIFCFG_DISE@GOTPCREL(%rip), %rcx
LBB0_15:
	orl	(%rcx), %eax
LBB0_16:
	movq	_SPEED_1000@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %r15d
	jne	LBB0_18
## %bb.17:
	movq	_MAC_XIFCFG_GMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_18:
	orl	%eax, %edi
	movq	_MAC_XIFCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	callq	_writel
	movl	(%r13), %ebx
	movq	_MAC_TXCFG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movq	_MAC_TXCFG_TCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%ebx, %r15d
	jne	LBB0_21
## %bb.19:
	testl	%r14d, %r14d
	jne	LBB0_21
## %bb.20:
	orl	%eax, %edi
	movq	(%r13), %rsi
	addq	24(%r12), %rsi
	callq	_writel
	movq	_MAC_RXCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movl	%eax, %edi
	movq	_MAC_RXCFG_RCE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_22
LBB0_21:
	notl	%edi
	andl	%edi, %eax
	movq	(%r13), %rsi
	addq	24(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_MAC_RXCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movq	_MAC_RXCFG_RCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
LBB0_22:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_MAC_RXCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	callq	_writel
	movq	(%r12), %rax
	movq	_phy_serialink@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.23:
	movq	_phy_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_26
LBB0_25:
	movq	_PCS_MIILP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movq	_PCS_MIIADV_SP@GOTPCREL(%rip), %rcx
	movq	_PCS_MIIADV_AP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	movl	$1, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmovnel	%eax, %ebx
LBB0_26:
	movq	_MAC_STIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	testl	%r14d, %r14d
	movl	$64, %eax
	movl	$512, %edi                      ## imm = 0x200
	cmovnel	%eax, %edi
	callq	_writel
	movq	_MAC_MCCFG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movq	_MAC_MCCFG_SPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MAC_MCCFG_RPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	movl	%ebx, %r14d
	je	LBB0_28
## %bb.27:
	orl	%eax, %edi
	orl	%ecx, %edi
	jmp	LBB0_29
LBB0_28:
	orl	%edi, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
LBB0_29:
	movq	(%r13), %rsi
	addq	24(%r12), %rsi
	callq	_writel
	movq	%r12, %rdi
	callq	_gem_start_dma
	movq	%r15, %rdi
	callq	___netif_tx_unlock
	movq	%r12, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:
	movl	8(%r12), %edi
	testl	%r14d, %r14d
	je	LBB0_33
## %bb.32:
	movl	20(%r12), %edx
	movl	12(%r12), %r8d
	movl	16(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_34
LBB0_30:
	xorl	%ebx, %ebx
	jmp	LBB0_34
LBB0_33:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_34:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_phy_serialink,8,3              ## @phy_serialink
	.comm	_phy_serdes,8,3                 ## @phy_serdes
	.comm	_PCS_MIILP,8,3                  ## @PCS_MIILP
	.comm	_PCS_MIIADV_FD,4,2              ## @PCS_MIIADV_FD
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link is up at %d Mbps, %s-duplex\n"

L_.str.1:                               ## @.str.1
	.asciz	"full"

L_.str.2:                               ## @.str.2
	.asciz	"half"

	.comm	_MAC_TXCFG_EIPG0,4,2            ## @MAC_TXCFG_EIPG0
	.comm	_MAC_TXCFG_NGU,4,2              ## @MAC_TXCFG_NGU
	.comm	_MAC_TXCFG_ICS,4,2              ## @MAC_TXCFG_ICS
	.comm	_MAC_TXCFG_ICOLL,4,2            ## @MAC_TXCFG_ICOLL
	.comm	_MAC_TXCFG,8,3                  ## @MAC_TXCFG
	.comm	_MAC_XIFCFG_OE,4,2              ## @MAC_XIFCFG_OE
	.comm	_MAC_XIFCFG_LLED,4,2            ## @MAC_XIFCFG_LLED
	.comm	_phy_mii_mdio0,8,3              ## @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ## @phy_mii_mdio1
	.comm	_MAC_XIFCFG_DISE,4,2            ## @MAC_XIFCFG_DISE
	.comm	_MAC_XIFCFG_FLED,4,2            ## @MAC_XIFCFG_FLED
	.comm	_MAC_XIFCFG_GMII,4,2            ## @MAC_XIFCFG_GMII
	.comm	_MAC_XIFCFG,8,3                 ## @MAC_XIFCFG
	.comm	_MAC_TXCFG_TCE,4,2              ## @MAC_TXCFG_TCE
	.comm	_MAC_RXCFG,8,3                  ## @MAC_RXCFG
	.comm	_MAC_RXCFG_RCE,4,2              ## @MAC_RXCFG_RCE
	.comm	_PCS_MIIADV_SP,4,2              ## @PCS_MIIADV_SP
	.comm	_PCS_MIIADV_AP,4,2              ## @PCS_MIIADV_AP
	.comm	_MAC_STIME,8,3                  ## @MAC_STIME
	.comm	_MAC_MCCFG,8,3                  ## @MAC_MCCFG
	.comm	_MAC_MCCFG_SPE,4,2              ## @MAC_MCCFG_SPE
	.comm	_MAC_MCCFG_RPE,4,2              ## @MAC_MCCFG_RPE
L_.str.3:                               ## @.str.3
	.asciz	"Pause is enabled (rxfifo: %d off: %d on: %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Pause is disabled\n"

	.no_dead_strip	_gem_set_link_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_set_link_modes
_gem_set_link_modes:                    ; @gem_set_link_modes
	.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	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_netdev_get_tx_queue
	mov	x20, x0
Lloh0:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_found_mii_phy
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #32
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	cbz	x0, LBB0_7
; %bb.2:
	mov	w0, #1
	b	LBB0_32
LBB0_3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _phy_serialink@GOTPAGE
Lloh4:
	ldr	x9, [x9, _phy_serialink@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x22, _phy_serdes@GOTPAGE
Lloh7:
	ldr	x22, [x22, _phy_serdes@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x19, #24]
Lloh8:
	adrp	x9, _PCS_MIILP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCS_MIILP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _PCS_MIIADV_FD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCS_MIIADV_FD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	mov	w23, #1
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	x9, [x19, #32]
Lloh16:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w23, eq
	ldp	w21, w22, [x19, #40]
	b	LBB0_11
LBB0_8:
	mov	w22, #0
	mov	w23, #0
	b	LBB0_11
LBB0_9:
	mov	w23, #0
LBB0_10:
	mov	w22, #0
Lloh17:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
LBB0_11:
Lloh20:
	adrp	x8, _link@GOTPAGE
Lloh21:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
Lloh23:
	adrp	x8, l_.str.2@PAGE
Lloh24:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh25:
	adrp	x9, l_.str.1@PAGE
Lloh26:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w23, #0
	csel	x5, x9, x8, ne
Lloh27:
	adrp	x3, l_.str@PAGE
Lloh28:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_netif_info
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x20
	bl	___netif_tx_lock
Lloh29:
	adrp	x8, _MAC_TXCFG_EIPG0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAC_TXCFG_EIPG0@GOTPAGEOFF]
Lloh31:
	adrp	x9, _MAC_TXCFG_NGU@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MAC_TXCFG_NGU@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh35:
	adrp	x9, _MAC_TXCFG_ICS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MAC_TXCFG_ICS@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _MAC_TXCFG_ICOLL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _MAC_TXCFG_ICOLL@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w23, #0
	csel	w9, w9, wzr, ne
	orr	w0, w8, w9
	ldr	x8, [x19, #24]
Lloh41:
	adrp	x24, _MAC_TXCFG@GOTPAGE
Lloh42:
	ldr	x24, [x24, _MAC_TXCFG@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
Lloh43:
	adrp	x8, _MAC_XIFCFG_OE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAC_XIFCFG_OE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _MAC_XIFCFG_LLED@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MAC_XIFCFG_LLED@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cbz	w23, LBB0_13
; %bb.12:
Lloh49:
	adrp	x9, _MAC_XIFCFG_FLED@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MAC_XIFCFG_FLED@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	ldr	x9, [x19]
Lloh51:
	adrp	x10, _phy_mii_mdio0@GOTPAGE
Lloh52:
	ldr	x10, [x10, _phy_mii_mdio0@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_15
; %bb.14:
Lloh54:
	adrp	x10, _phy_mii_mdio1@GOTPAGE
Lloh55:
	ldr	x10, [x10, _phy_mii_mdio1@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
LBB0_15:
Lloh57:
	adrp	x9, _MAC_XIFCFG_DISE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _MAC_XIFCFG_DISE@GOTPAGEOFF]
LBB0_16:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_17:
Lloh59:
	adrp	x25, _SPEED_1000@GOTPAGE
Lloh60:
	ldr	x25, [x25, _SPEED_1000@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh61:
	adrp	x10, _MAC_XIFCFG_GMII@GOTPAGE
Lloh62:
	ldr	x10, [x10, _MAC_XIFCFG_GMII@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	cmp	w21, w9
	csel	w9, w10, wzr, eq
	orr	w0, w9, w8
	ldr	x8, [x19, #24]
Lloh64:
	adrp	x9, _MAC_XIFCFG@GOTPAGE
Lloh65:
	ldr	x9, [x9, _MAC_XIFCFG@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w26, [x25]
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh67:
	adrp	x8, _MAC_TXCFG_TCE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MAC_TXCFG_TCE@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x25, _MAC_RXCFG@GOTPAGE
Lloh71:
	ldr	x25, [x25, _MAC_RXCFG@GOTPAGEOFF]
	cmp	w21, w26
	b.ne	LBB0_20
; %bb.18:
	cbnz	w23, LBB0_20
; %bb.19:
	orr	w0, w8, w0
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
Lloh72:
	adrp	x8, _MAC_RXCFG_RCE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MAC_RXCFG_RCE@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_21
LBB0_20:
	bic	w0, w0, w8
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
Lloh75:
	adrp	x8, _MAC_RXCFG_RCE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _MAC_RXCFG_RCE@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_21:
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh78:
	adrp	x9, _phy_serialink@GOTPAGE
Lloh79:
	ldr	x9, [x9, _phy_serialink@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.22:
Lloh81:
	adrp	x9, _phy_serdes@GOTPAGE
Lloh82:
	ldr	x9, [x9, _phy_serdes@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
LBB0_23:
	ldr	x8, [x19, #24]
Lloh84:
	adrp	x9, _PCS_MIILP@GOTPAGE
Lloh85:
	ldr	x9, [x9, _PCS_MIILP@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh87:
	adrp	x8, _PCS_MIIADV_SP@GOTPAGE
Lloh88:
	ldr	x8, [x8, _PCS_MIIADV_SP@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
Lloh90:
	adrp	x9, _PCS_MIIADV_AP@GOTPAGE
Lloh91:
	ldr	x9, [x9, _PCS_MIIADV_AP@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	csinc	w22, w22, wzr, eq
LBB0_24:
	ldr	x8, [x19, #24]
Lloh93:
	adrp	x9, _MAC_STIME@GOTPAGE
Lloh94:
	ldr	x9, [x9, _MAC_STIME@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w8, #512
	mov	w9, #64
	cmp	w23, #0
	csel	w0, w9, w8, ne
	bl	_writel
	ldr	x8, [x19, #24]
Lloh96:
	adrp	x21, _MAC_MCCFG@GOTPAGE
Lloh97:
	ldr	x21, [x21, _MAC_MCCFG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh98:
	adrp	x8, _MAC_MCCFG_SPE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MAC_MCCFG_SPE@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
Lloh101:
	adrp	x9, _MAC_MCCFG_RPE@GOTPAGE
Lloh102:
	ldr	x9, [x9, _MAC_MCCFG_RPE@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	cbz	w22, LBB0_26
; %bb.25:
	orr	w8, w8, w0
	orr	w0, w8, w9
	b	LBB0_27
LBB0_26:
	orr	w8, w9, w8
	bic	w0, w0, w8
LBB0_27:
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_gem_start_dma
	mov	x0, x20
	bl	___netif_tx_unlock
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_32
; %bb.28:
	ldr	w0, [x19, #8]
	cbz	w22, LBB0_30
; %bb.29:
	ldp	w9, w8, [x19, #16]
	ldr	w10, [x19, #12]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh104:
	adrp	x1, l_.str.3@PAGE
Lloh105:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_31
LBB0_30:
Lloh106:
	adrp	x1, l_.str.4@PAGE
Lloh107:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_31:
	bl	_netdev_info
	mov	w0, #0
LBB0_32:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_phy_serialink,8,3              ; @phy_serialink
	.comm	_phy_serdes,8,3                 ; @phy_serdes
	.comm	_PCS_MIILP,8,3                  ; @PCS_MIILP
	.comm	_PCS_MIIADV_FD,4,2              ; @PCS_MIIADV_FD
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link is up at %d Mbps, %s-duplex\n"

l_.str.1:                               ; @.str.1
	.asciz	"full"

l_.str.2:                               ; @.str.2
	.asciz	"half"

	.comm	_MAC_TXCFG_EIPG0,4,2            ; @MAC_TXCFG_EIPG0
	.comm	_MAC_TXCFG_NGU,4,2              ; @MAC_TXCFG_NGU
	.comm	_MAC_TXCFG_ICS,4,2              ; @MAC_TXCFG_ICS
	.comm	_MAC_TXCFG_ICOLL,4,2            ; @MAC_TXCFG_ICOLL
	.comm	_MAC_TXCFG,8,3                  ; @MAC_TXCFG
	.comm	_MAC_XIFCFG_OE,4,2              ; @MAC_XIFCFG_OE
	.comm	_MAC_XIFCFG_LLED,4,2            ; @MAC_XIFCFG_LLED
	.comm	_phy_mii_mdio0,8,3              ; @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ; @phy_mii_mdio1
	.comm	_MAC_XIFCFG_DISE,4,2            ; @MAC_XIFCFG_DISE
	.comm	_MAC_XIFCFG_FLED,4,2            ; @MAC_XIFCFG_FLED
	.comm	_MAC_XIFCFG_GMII,4,2            ; @MAC_XIFCFG_GMII
	.comm	_MAC_XIFCFG,8,3                 ; @MAC_XIFCFG
	.comm	_MAC_TXCFG_TCE,4,2              ; @MAC_TXCFG_TCE
	.comm	_MAC_RXCFG,8,3                  ; @MAC_RXCFG
	.comm	_MAC_RXCFG_RCE,4,2              ; @MAC_RXCFG_RCE
	.comm	_PCS_MIIADV_SP,4,2              ; @PCS_MIIADV_SP
	.comm	_PCS_MIIADV_AP,4,2              ; @PCS_MIIADV_AP
	.comm	_MAC_STIME,8,3                  ; @MAC_STIME
	.comm	_MAC_MCCFG,8,3                  ; @MAC_MCCFG
	.comm	_MAC_MCCFG_SPE,4,2              ; @MAC_MCCFG_SPE
	.comm	_MAC_MCCFG_RPE,4,2              ; @MAC_MCCFG_RPE
l_.str.3:                               ; @.str.3
	.asciz	"Pause is enabled (rxfifo: %d off: %d on: %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Pause is disabled\n"

	.no_dead_strip	_gem_set_link_modes
.subsections_via_symbols
