	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_set_link_modes
_cas_set_link_modes:                    ## @cas_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	movl	$10, -24(%rbp)
	movl	$0, -28(%rbp)
	movl	36(%rdi), %edi
	callq	_CAS_PHY_MII
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cas_mif_poll
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_cas_phy_read
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	callq	_cas_read_mii_link_mode
	jmp	LBB0_9
LBB0_10:
	movq	_REG_PCS_MII_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	callq	_cas_read_pcs_link_mode
	movq	_PCS_MII_AUTONEG_EN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.11:
	movq	_PCS_MII_CTRL_DUPLEX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	$1, -20(%rbp)
	jmp	LBB0_13
LBB0_3:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$1, -20(%rbp)
LBB0_5:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	$100, -24(%rbp)
	jmp	LBB0_9
LBB0_7:
	movq	_CAS_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_CAS_FLAG_1000MB_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	movl	$100, %eax
	movl	$1000, %ecx                     ## imm = 0x3E8
	cmovel	%eax, %ecx
	movl	%ecx, -24(%rbp)
LBB0_9:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_cas_mif_poll
LBB0_13:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	movl	-24(%rbp), %r8d
	cmpl	$0, -20(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_info
	movq	_MAC_XIF_TX_MII_OUTPUT_EN@GOTPCREL(%rip), %rax
	movq	_MAC_XIF_LINK_LED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	36(%r14), %edi
	callq	_CAS_PHY_MII
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_MAC_XIF_MII_BUFFER_OUTPUT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpl	$0, -20(%rbp)
	jne	LBB0_15
## %bb.17:
	movq	_MAC_XIF_DISABLE_ECHO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_18
LBB0_16:
	cmpl	$0, -20(%rbp)
	je	LBB0_18
LBB0_15:
	movq	_MAC_XIF_FDPLX_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	orl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	$1000, -24(%rbp)                ## imm = 0x3E8
	jne	LBB0_21
## %bb.20:
	movq	_MAC_XIF_GMII_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	orl	%eax, %ebx
	movq	_REG_MAC_XIF_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_MAC_TX_CFG_IPG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, -20(%rbp)
	je	LBB0_24
## %bb.22:
	movq	_MAC_TX_CFG_IGNORE_CARRIER@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MAC_TX_CFG_IGNORE_COLL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_23
LBB0_24:
	movq	_MAC_TX_CFG_NEVER_GIVE_UP_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MAC_TX_CFG_NEVER_GIVE_UP_LIM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpl	$1000, -24(%rbp)                ## imm = 0x3E8
	jne	LBB0_23
## %bb.25:
	movq	_MAC_TX_CFG_CARRIER_EXTEND@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_REG_MAC_TX_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_REG_MAC_RX_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_MAC_RX_CFG_STRIP_FCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_MAC_RX_CFG_CARRIER_EXTEND@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_REG_MAC_SLOT_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	$512, %edi                      ## imm = 0x200
	callq	_writel
	movl	$4, 4(%r14)
	movq	_CAS_1000MB_MIN_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	jmp	LBB0_26
LBB0_23:
	movq	_REG_MAC_TX_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_REG_MAC_RX_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_MAC_RX_CFG_STRIP_FCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$0, -20(%rbp)
	cmovel	%edx, %ecx
	movq	_CAS_MIN_MTU@GOTPCREL(%rip), %rdx
	cmoveq	_CAS_MIN_FRAME@GOTPCREL(%rip), %rdx
	sete	%al
	shll	$2, %eax
	movl	(%rdx), %edx
	movl	%eax, 4(%r14)
	movl	%edx, 32(%r14)
	movq	_MAC_RX_CFG_CARRIER_EXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%ecx, %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_REG_MAC_SLOT_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	$64, %edi
	callq	_writel
LBB0_26:
	movq	%r14, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_33
## %bb.27:
	movl	-28(%rbp), %eax
	testb	$1, %al
	jne	LBB0_28
## %bb.29:
	movl	16(%r14), %edi
	testb	$16, %al
	jne	LBB0_30
## %bb.31:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_32
LBB0_28:
	movl	28(%r14), %edx
	movl	24(%r14), %ecx
	movl	16(%r14), %edi
	movl	20(%r14), %r8d
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_33
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
LBB0_32:
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_33:
	movq	_REG_MAC_CTRL_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_MAC_CTRL_CFG_SEND_PAUSE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MAC_CTRL_CFG_RECV_PAUSE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	orl	%edx, %edi
	notl	%edi
	andl	%eax, %edi
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	orl	%edx, %edi
	andl	$1, %eax
	negl	%eax
	andl	%ecx, %eax
	orl	%eax, %edi
LBB0_35:
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_cas_start_dma
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_CAS_BMCR_SPEED1000,4,2         ## @CAS_BMCR_SPEED1000
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ## @CAS_FLAG_1000MB_CAP
	.comm	_REG_PCS_MII_CTRL,8,3           ## @REG_PCS_MII_CTRL
	.comm	_PCS_MII_AUTONEG_EN,4,2         ## @PCS_MII_AUTONEG_EN
	.comm	_PCS_MII_CTRL_DUPLEX,4,2        ## @PCS_MII_CTRL_DUPLEX
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link up at %d Mbps, %s-duplex\n"

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

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

	.comm	_MAC_XIF_TX_MII_OUTPUT_EN,4,2   ## @MAC_XIF_TX_MII_OUTPUT_EN
	.comm	_MAC_XIF_LINK_LED,4,2           ## @MAC_XIF_LINK_LED
	.comm	_MAC_XIF_MII_BUFFER_OUTPUT_EN,4,2 ## @MAC_XIF_MII_BUFFER_OUTPUT_EN
	.comm	_MAC_XIF_DISABLE_ECHO,4,2       ## @MAC_XIF_DISABLE_ECHO
	.comm	_MAC_XIF_FDPLX_LED,4,2          ## @MAC_XIF_FDPLX_LED
	.comm	_MAC_XIF_GMII_MODE,4,2          ## @MAC_XIF_GMII_MODE
	.comm	_REG_MAC_XIF_CFG,8,3            ## @REG_MAC_XIF_CFG
	.comm	_MAC_TX_CFG_IPG_EN,4,2          ## @MAC_TX_CFG_IPG_EN
	.comm	_MAC_TX_CFG_IGNORE_CARRIER,4,2  ## @MAC_TX_CFG_IGNORE_CARRIER
	.comm	_MAC_TX_CFG_IGNORE_COLL,4,2     ## @MAC_TX_CFG_IGNORE_COLL
	.comm	_MAC_TX_CFG_NEVER_GIVE_UP_EN,4,2 ## @MAC_TX_CFG_NEVER_GIVE_UP_EN
	.comm	_MAC_TX_CFG_NEVER_GIVE_UP_LIM,4,2 ## @MAC_TX_CFG_NEVER_GIVE_UP_LIM
	.comm	_MAC_TX_CFG_CARRIER_EXTEND,4,2  ## @MAC_TX_CFG_CARRIER_EXTEND
	.comm	_REG_MAC_TX_CFG,8,3             ## @REG_MAC_TX_CFG
	.comm	_REG_MAC_RX_CFG,8,3             ## @REG_MAC_RX_CFG
	.comm	_MAC_RX_CFG_STRIP_FCS,4,2       ## @MAC_RX_CFG_STRIP_FCS
	.comm	_MAC_RX_CFG_CARRIER_EXTEND,4,2  ## @MAC_RX_CFG_CARRIER_EXTEND
	.comm	_REG_MAC_SLOT_TIME,8,3          ## @REG_MAC_SLOT_TIME
	.comm	_CAS_1000MB_MIN_FRAME,4,2       ## @CAS_1000MB_MIN_FRAME
	.comm	_CAS_MIN_MTU,4,2                ## @CAS_MIN_MTU
	.comm	_CAS_MIN_FRAME,4,2              ## @CAS_MIN_FRAME
L_.str.3:                               ## @.str.3
	.asciz	"Pause is enabled (rxfifo: %d off: %d on: %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"TX pause enabled\n"

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

	.comm	_REG_MAC_CTRL_CFG,8,3           ## @REG_MAC_CTRL_CFG
	.comm	_MAC_CTRL_CFG_SEND_PAUSE_EN,4,2 ## @MAC_CTRL_CFG_SEND_PAUSE_EN
	.comm	_MAC_CTRL_CFG_RECV_PAUSE_EN,4,2 ## @MAC_CTRL_CFG_RECV_PAUSE_EN
	.no_dead_strip	_cas_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 cas_set_link_modes
_cas_set_link_modes:                    ; @cas_set_link_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #10
	stp	w8, wzr, [x29, #-24]
	stur	wzr, [x29, #-28]
	ldr	w0, [x0, #36]
	bl	_CAS_PHY_MII
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_cas_mif_poll
Lloh0:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cas_phy_read
Lloh3:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	sub	x1, x29, #20
	sub	x2, x29, #24
	sub	x3, x29, #28
	mov	x0, x19
	bl	_cas_read_mii_link_mode
	b	LBB0_13
LBB0_3:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _REG_PCS_MII_CTRL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_PCS_MII_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	sub	x1, x29, #20
	sub	x2, x29, #24
	sub	x3, x29, #28
	mov	x0, x19
	bl	_cas_read_pcs_link_mode
Lloh9:
	adrp	x8, _PCS_MII_AUTONEG_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCS_MII_AUTONEG_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_14
; %bb.4:
Lloh12:
	adrp	x8, _PCS_MII_CTRL_DUPLEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCS_MII_CTRL_DUPLEX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.5:
	mov	w8, #1
	stur	w8, [x29, #-20]
	b	LBB0_14
LBB0_6:
Lloh15:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	stur	w8, [x29, #-20]
LBB0_8:
Lloh18:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #100
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _CAS_BMCR_SPEED1000@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAS_BMCR_SPEED1000@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.11:
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _CAS_FLAG_1000MB_CAP@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CAS_FLAG_1000MB_CAP@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1000
	mov	w9, #100
	csel	w8, w9, w8, eq
LBB0_12:
	stur	w8, [x29, #-24]
LBB0_13:
	mov	x0, x19
	mov	w1, #1
	bl	_cas_mif_poll
LBB0_14:
Lloh27:
	adrp	x8, _link@GOTPAGE
Lloh28:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	ldp	w4, w8, [x29, #-24]
Lloh30:
	adrp	x9, l_.str.1@PAGE
Lloh31:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh32:
	adrp	x10, l_.str.2@PAGE
Lloh33:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x5, x10, x9, eq
Lloh34:
	adrp	x3, l_.str@PAGE
Lloh35:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh36:
	adrp	x8, _MAC_XIF_TX_MII_OUTPUT_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAC_XIF_TX_MII_OUTPUT_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _MAC_XIF_LINK_LED@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MAC_XIF_LINK_LED@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w0, [x19, #36]
	bl	_CAS_PHY_MII
	cbz	x0, LBB0_17
; %bb.15:
Lloh42:
	adrp	x8, _MAC_XIF_MII_BUFFER_OUTPUT_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MAC_XIF_MII_BUFFER_OUTPUT_EN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldur	w8, [x29, #-20]
	cbnz	w8, LBB0_18
; %bb.16:
Lloh45:
	adrp	x8, _MAC_XIF_DISABLE_ECHO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MAC_XIF_DISABLE_ECHO@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_19
LBB0_17:
	ldur	w8, [x29, #-20]
	cbz	w8, LBB0_19
LBB0_18:
Lloh48:
	adrp	x8, _MAC_XIF_FDPLX_LED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MAC_XIF_FDPLX_LED@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	b	LBB0_20
LBB0_19:
	mov	w8, #0
LBB0_20:
	orr	w8, w8, w20
	ldur	w9, [x29, #-24]
Lloh51:
	adrp	x10, _MAC_XIF_GMII_MODE@GOTPAGE
Lloh52:
	ldr	x10, [x10, _MAC_XIF_GMII_MODE@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	cmp	w9, #1000
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh54:
	adrp	x9, _REG_MAC_XIF_CFG@GOTPAGE
Lloh55:
	ldr	x9, [x9, _REG_MAC_XIF_CFG@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh57:
	adrp	x8, _MAC_TX_CFG_IPG_EN@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MAC_TX_CFG_IPG_EN@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldur	w9, [x29, #-20]
	cbz	w9, LBB0_22
; %bb.21:
Lloh60:
	adrp	x9, _MAC_TX_CFG_IGNORE_CARRIER@GOTPAGE
Lloh61:
	ldr	x9, [x9, _MAC_TX_CFG_IGNORE_CARRIER@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh63:
	adrp	x9, _MAC_TX_CFG_IGNORE_COLL@GOTPAGE
Lloh64:
	ldr	x9, [x9, _MAC_TX_CFG_IGNORE_COLL@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w0, w8, w9
	b	LBB0_24
LBB0_22:
Lloh66:
	adrp	x9, _MAC_TX_CFG_NEVER_GIVE_UP_EN@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MAC_TX_CFG_NEVER_GIVE_UP_EN@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh69:
	adrp	x9, _MAC_TX_CFG_NEVER_GIVE_UP_LIM@GOTPAGE
Lloh70:
	ldr	x9, [x9, _MAC_TX_CFG_NEVER_GIVE_UP_LIM@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldur	w8, [x29, #-24]
	cmp	w8, #1000
	b.ne	LBB0_24
; %bb.23:
Lloh72:
	adrp	x8, _MAC_TX_CFG_CARRIER_EXTEND@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MAC_TX_CFG_CARRIER_EXTEND@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
Lloh75:
	adrp	x9, _REG_MAC_TX_CFG@GOTPAGE
Lloh76:
	ldr	x9, [x9, _REG_MAC_TX_CFG@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh78:
	adrp	x20, _REG_MAC_RX_CFG@GOTPAGE
Lloh79:
	ldr	x20, [x20, _REG_MAC_RX_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh80:
	adrp	x8, _MAC_RX_CFG_STRIP_FCS@GOTPAGE
Lloh81:
	ldr	x8, [x8, _MAC_RX_CFG_STRIP_FCS@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
Lloh83:
	adrp	x9, _MAC_RX_CFG_CARRIER_EXTEND@GOTPAGE
Lloh84:
	ldr	x9, [x9, _MAC_RX_CFG_CARRIER_EXTEND@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh85:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh86:
	adrp	x9, _REG_MAC_SLOT_TIME@GOTPAGE
Lloh87:
	ldr	x9, [x9, _REG_MAC_SLOT_TIME@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #512
	bl	_writel
	mov	w8, #4
	str	w8, [x19, #4]
Lloh89:
	adrp	x8, _CAS_1000MB_MIN_FRAME@GOTPAGE
Lloh90:
	ldr	x8, [x8, _CAS_1000MB_MIN_FRAME@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_25
LBB0_24:
	ldr	x8, [x19, #8]
Lloh92:
	adrp	x9, _REG_MAC_TX_CFG@GOTPAGE
Lloh93:
	ldr	x9, [x9, _REG_MAC_TX_CFG@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh95:
	adrp	x20, _REG_MAC_RX_CFG@GOTPAGE
Lloh96:
	ldr	x20, [x20, _REG_MAC_RX_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldur	w8, [x29, #-20]
Lloh97:
	adrp	x9, _MAC_RX_CFG_STRIP_FCS@GOTPAGE
Lloh98:
	ldr	x9, [x9, _MAC_RX_CFG_STRIP_FCS@GOTPAGEOFF]
Lloh99:
	ldr	w9, [x9]
	bic	w10, w0, w9
	orr	w9, w9, w0
	cmp	w8, #0
	csel	w8, w10, w9, eq
	cset	w9, eq
Lloh100:
	adrp	x10, _CAS_MIN_FRAME@GOTPAGE
Lloh101:
	ldr	x10, [x10, _CAS_MIN_FRAME@GOTPAGEOFF]
Lloh102:
	adrp	x11, _CAS_MIN_MTU@GOTPAGE
Lloh103:
	ldr	x11, [x11, _CAS_MIN_MTU@GOTPAGEOFF]
	lsl	w9, w9, #2
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	str	w9, [x19, #4]
Lloh104:
	adrp	x9, _MAC_RX_CFG_CARRIER_EXTEND@GOTPAGE
Lloh105:
	ldr	x9, [x9, _MAC_RX_CFG_CARRIER_EXTEND@GOTPAGEOFF]
	str	w10, [x19, #32]
Lloh106:
	ldr	w9, [x9]
	bic	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh107:
	adrp	x9, _REG_MAC_SLOT_TIME@GOTPAGE
Lloh108:
	ldr	x9, [x9, _REG_MAC_SLOT_TIME@GOTPAGEOFF]
Lloh109:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #64
	bl	_writel
LBB0_25:
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_32
; %bb.26:
	ldur	w8, [x29, #-28]
	tbnz	w8, #0, LBB0_29
; %bb.27:
	ldr	w0, [x19, #16]
	tbnz	w8, #4, LBB0_30
; %bb.28:
Lloh110:
	adrp	x1, l_.str.5@PAGE
Lloh111:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_31
LBB0_29:
	ldp	w9, w8, [x19, #24]
	ldp	w0, w10, [x19, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh112:
	adrp	x1, l_.str.3@PAGE
Lloh113:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_31
LBB0_30:
Lloh114:
	adrp	x1, l_.str.4@PAGE
Lloh115:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_31:
	bl	_netdev_info
LBB0_32:
	ldr	x8, [x19, #8]
Lloh116:
	adrp	x20, _REG_MAC_CTRL_CFG@GOTPAGE
Lloh117:
	ldr	x20, [x20, _REG_MAC_CTRL_CFG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh118:
	adrp	x8, _MAC_CTRL_CFG_SEND_PAUSE_EN@GOTPAGE
Lloh119:
	ldr	x8, [x8, _MAC_CTRL_CFG_SEND_PAUSE_EN@GOTPAGEOFF]
Lloh120:
	ldr	w8, [x8]
Lloh121:
	adrp	x9, _MAC_CTRL_CFG_RECV_PAUSE_EN@GOTPAGE
Lloh122:
	ldr	x9, [x9, _MAC_CTRL_CFG_RECV_PAUSE_EN@GOTPAGEOFF]
Lloh123:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w0, w0, w10
	ldur	w10, [x29, #-28]
	cbz	w10, LBB0_34
; %bb.33:
	orr	w8, w0, w8
	sbfx	w10, w10, #0, #1
	and	w9, w10, w9
	orr	w0, w8, w9
LBB0_34:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_cas_start_dma
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_CAS_BMCR_SPEED1000,4,2         ; @CAS_BMCR_SPEED1000
	.comm	_CAS_FLAG_1000MB_CAP,4,2        ; @CAS_FLAG_1000MB_CAP
	.comm	_REG_PCS_MII_CTRL,8,3           ; @REG_PCS_MII_CTRL
	.comm	_PCS_MII_AUTONEG_EN,4,2         ; @PCS_MII_AUTONEG_EN
	.comm	_PCS_MII_CTRL_DUPLEX,4,2        ; @PCS_MII_CTRL_DUPLEX
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link up at %d Mbps, %s-duplex\n"

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

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

	.comm	_MAC_XIF_TX_MII_OUTPUT_EN,4,2   ; @MAC_XIF_TX_MII_OUTPUT_EN
	.comm	_MAC_XIF_LINK_LED,4,2           ; @MAC_XIF_LINK_LED
	.comm	_MAC_XIF_MII_BUFFER_OUTPUT_EN,4,2 ; @MAC_XIF_MII_BUFFER_OUTPUT_EN
	.comm	_MAC_XIF_DISABLE_ECHO,4,2       ; @MAC_XIF_DISABLE_ECHO
	.comm	_MAC_XIF_FDPLX_LED,4,2          ; @MAC_XIF_FDPLX_LED
	.comm	_MAC_XIF_GMII_MODE,4,2          ; @MAC_XIF_GMII_MODE
	.comm	_REG_MAC_XIF_CFG,8,3            ; @REG_MAC_XIF_CFG
	.comm	_MAC_TX_CFG_IPG_EN,4,2          ; @MAC_TX_CFG_IPG_EN
	.comm	_MAC_TX_CFG_IGNORE_CARRIER,4,2  ; @MAC_TX_CFG_IGNORE_CARRIER
	.comm	_MAC_TX_CFG_IGNORE_COLL,4,2     ; @MAC_TX_CFG_IGNORE_COLL
	.comm	_MAC_TX_CFG_NEVER_GIVE_UP_EN,4,2 ; @MAC_TX_CFG_NEVER_GIVE_UP_EN
	.comm	_MAC_TX_CFG_NEVER_GIVE_UP_LIM,4,2 ; @MAC_TX_CFG_NEVER_GIVE_UP_LIM
	.comm	_MAC_TX_CFG_CARRIER_EXTEND,4,2  ; @MAC_TX_CFG_CARRIER_EXTEND
	.comm	_REG_MAC_TX_CFG,8,3             ; @REG_MAC_TX_CFG
	.comm	_REG_MAC_RX_CFG,8,3             ; @REG_MAC_RX_CFG
	.comm	_MAC_RX_CFG_STRIP_FCS,4,2       ; @MAC_RX_CFG_STRIP_FCS
	.comm	_MAC_RX_CFG_CARRIER_EXTEND,4,2  ; @MAC_RX_CFG_CARRIER_EXTEND
	.comm	_REG_MAC_SLOT_TIME,8,3          ; @REG_MAC_SLOT_TIME
	.comm	_CAS_1000MB_MIN_FRAME,4,2       ; @CAS_1000MB_MIN_FRAME
	.comm	_CAS_MIN_MTU,4,2                ; @CAS_MIN_MTU
	.comm	_CAS_MIN_FRAME,4,2              ; @CAS_MIN_FRAME
l_.str.3:                               ; @.str.3
	.asciz	"Pause is enabled (rxfifo: %d off: %d on: %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"TX pause enabled\n"

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

	.comm	_REG_MAC_CTRL_CFG,8,3           ; @REG_MAC_CTRL_CFG
	.comm	_MAC_CTRL_CFG_SEND_PAUSE_EN,4,2 ; @MAC_CTRL_CFG_SEND_PAUSE_EN
	.comm	_MAC_CTRL_CFG_RECV_PAUSE_EN,4,2 ; @MAC_CTRL_CFG_RECV_PAUSE_EN
	.no_dead_strip	_cas_set_link_modes
.subsections_via_symbols
