	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_finish_reset
_tlan_finish_reset:                     ## @tlan_finish_reset
	.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, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	48(%r14), %rcx
	movq	_TLAN_NET_CMD_NRESET@GOTPCREL(%rip), %rsi
	movq	_TLAN_NET_CMD_NWRAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	xorl	%ebx, %ebx
	cmpq	$0, 40(%r14)
	movl	$0, %esi
	je	LBB0_2
## %bb.1:
	movq	_TLAN_NET_CMD_DUPLEX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_2:
	orl	%esi, %edx
	movl	(%rcx,%rax,4), %r15d
	movq	(%r13), %rdi
	movq	_TLAN_NET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tlan_dio_write8
	movq	_TLAN_NET_MASK_MASK4@GOTPCREL(%rip), %rax
	movq	_TLAN_NET_MASK_MASK5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	_TLAN_NET_MASK_MASK7@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	orl	%ebx, %edx
	movq	(%r13), %rdi
	movq	_TLAN_NET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tlan_dio_write8
	movq	(%r13), %rdi
	movq	_TLAN_MAX_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1536, %edx                     ## imm = 0x600
	callq	_tlan_dio_write16
	movq	_MII_GEN_ID_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_read_reg
	movq	_MII_GEN_ID_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_read_reg
	movq	32(%r14), %rax
	movq	_TLAN_ADAPTER_UNMANAGED_PHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 24(%r14)
	je	LBB0_7
LBB0_6:
	movq	_MII_GS_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_24:
	cmpq	$0, (%r14)
	jne	LBB0_26
## %bb.25:
	movq	_TLAN_TLPHY_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_read_reg
	movq	_TLAN_TC_INTEN@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_write_reg
	movq	(%r13), %rdi
	movq	_TLAN_NET_SIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_tlan_dio_read8
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r13), %rdi
	movl	(%rbx), %esi
	movl	%eax, %edx
	callq	_tlan_dio_write8
LBB0_26:
	movq	_MII_GS_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_31
## %bb.27:
	movl	8(%r13), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_tlan_set_mac
	movl	$1, 8(%r14)
	movq	_TLAN_HC_INT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$8, %edi
	movq	(%r13), %rax
	movq	_TLAN_HOST_CMD@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rsi
	incq	%rsi
	callq	_outb
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_30
## %bb.28:
	movq	_TLAN_DEBUG_PROBE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.29:
	movq	_TLAN_HC_REQ_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	sarl	$8, %edi
	movq	(%r13), %rax
	movq	(%r15), %rcx
	leaq	(%rax,%rcx), %rsi
	incq	%rsi
	callq	_outb
LBB0_30:
	movl	12(%r14), %edi
	movq	_TLAN_CH_PARM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_outl
	movq	_TLAN_HC_GO@GOTPCREL(%rip), %rax
	movq	_TLAN_HC_RT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	callq	_outl
	movq	(%r13), %rdi
	movq	_TLAN_LED_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLAN_LED_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_tlan_dio_write8
	movq	%r13, %rdi
	callq	_netif_carrier_on
	movq	%r13, %rdi
	callq	_tlan_set_multicast_list
	jmp	LBB0_32
LBB0_31:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	movq	_TLAN_TIMER_FINISH_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_tlan_set_timer
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MII_GEN_STS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-48(%rbp), %r12
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	callq	_tlan_mii_read_reg
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r12, %rcx
	callq	_tlan_mii_read_reg
	movq	_MII_GS_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_24
## %bb.8:
	movl	-64(%rbp), %eax
	movq	_NAT_SEM_ID1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.9:
	movl	-60(%rbp), %eax
	movq	_NAT_SEM_ID2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.10:
	movq	_MII_AN_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_read_reg
	movq	_TLAN_TLPHY_PAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_tlan_mii_read_reg
	movl	-52(%rbp), %eax
	movq	_TLAN_PHY_AN_EN_STAT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	andl	%eax, %ecx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	_TLAN_PHY_SPEED_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	$10, %esi
	movl	$100, %ecx
	cmovel	%esi, %ecx
	movq	_TLAN_PHY_DUPLEX_FULL@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	(%r12), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_23
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	-44(%rbp), %eax
	testb	$32, %al
	jne	LBB0_12
## %bb.13:
	testb	$64, %al
	jne	LBB0_14
LBB0_15:
	testb	$-128, %al
	jne	LBB0_16
LBB0_17:
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_18
LBB0_19:
	testl	$512, %eax                      ## imm = 0x200
	je	LBB0_21
LBB0_20:
	movq	_media@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
LBB0_21:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_23:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	%rcx, 16(%r14)
	callq	_add_timer
	jmp	LBB0_24
LBB0_12:
	movq	_media@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	movl	-44(%rbp), %eax
	testb	$64, %al
	je	LBB0_15
LBB0_14:
	movq	_media@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	movl	-44(%rbp), %eax
	testb	$-128, %al
	je	LBB0_17
LBB0_16:
	movq	_media@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	movl	-44(%rbp), %eax
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_19
LBB0_18:
	movq	_media@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	movl	-44(%rbp), %eax
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_NET_CMD_NRESET,4,2        ## @TLAN_NET_CMD_NRESET
	.comm	_TLAN_NET_CMD_NWRAP,4,2         ## @TLAN_NET_CMD_NWRAP
	.comm	_TLAN_NET_CMD_DUPLEX,4,2        ## @TLAN_NET_CMD_DUPLEX
	.comm	_TLAN_NET_CMD,4,2               ## @TLAN_NET_CMD
	.comm	_TLAN_NET_MASK_MASK4,4,2        ## @TLAN_NET_MASK_MASK4
	.comm	_TLAN_NET_MASK_MASK5,4,2        ## @TLAN_NET_MASK_MASK5
	.comm	_TLAN_NET_MASK_MASK7,4,2        ## @TLAN_NET_MASK_MASK7
	.comm	_TLAN_NET_MASK,4,2              ## @TLAN_NET_MASK
	.comm	_TLAN_MAX_RX,4,2                ## @TLAN_MAX_RX
	.comm	_MII_GEN_ID_HI,4,2              ## @MII_GEN_ID_HI
	.comm	_MII_GEN_ID_LO,4,2              ## @MII_GEN_ID_LO
	.comm	_TLAN_ADAPTER_UNMANAGED_PHY,4,2 ## @TLAN_ADAPTER_UNMANAGED_PHY
	.comm	_MII_GS_LINK,4,2                ## @MII_GS_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link forced\n"

	.comm	_MII_GEN_STS,4,2                ## @MII_GEN_STS
	.comm	_NAT_SEM_ID1,4,2                ## @NAT_SEM_ID1
	.comm	_NAT_SEM_ID2,4,2                ## @NAT_SEM_ID2
	.comm	_MII_AN_LPA,4,2                 ## @MII_AN_LPA
	.comm	_TLAN_TLPHY_PAR,4,2             ## @TLAN_TLPHY_PAR
L_.str.1:                               ## @.str.1
	.asciz	"Link active, %s %uMbps %s-Duplex\n"

	.comm	_TLAN_PHY_AN_EN_STAT,4,2        ## @TLAN_PHY_AN_EN_STAT
L_.str.2:                               ## @.str.2
	.asciz	"forced"

L_.str.3:                               ## @.str.3
	.asciz	"Autonegotiation enabled,"

	.comm	_TLAN_PHY_SPEED_100,4,2         ## @TLAN_PHY_SPEED_100
	.comm	_TLAN_PHY_DUPLEX_FULL,4,2       ## @TLAN_PHY_DUPLEX_FULL
L_.str.4:                               ## @.str.4
	.asciz	"Full"

L_.str.5:                               ## @.str.5
	.asciz	"Half"

L_.str.6:                               ## @.str.6
	.asciz	"Partner capability:"

L_.str.7:                               ## @.str.7
	.asciz	" %s"

	.comm	_media,8,3                      ## @media
L_.str.8:                               ## @.str.8
	.asciz	"\n"

L_.str.9:                               ## @.str.9
	.asciz	"Link active\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_TLAN_TLPHY_CTL,4,2             ## @TLAN_TLPHY_CTL
	.comm	_TLAN_TC_INTEN,4,2              ## @TLAN_TC_INTEN
	.comm	_TLAN_NET_SIO,4,2               ## @TLAN_NET_SIO
	.comm	_TLAN_NET_SIO_MINTEN,4,2        ## @TLAN_NET_SIO_MINTEN
	.comm	_TLAN_HC_INT_ON,4,2             ## @TLAN_HC_INT_ON
	.comm	_TLAN_HOST_CMD,8,3              ## @TLAN_HOST_CMD
	.comm	_debug,4,2                      ## @debug
	.comm	_TLAN_DEBUG_PROBE,4,2           ## @TLAN_DEBUG_PROBE
	.comm	_TLAN_HC_REQ_INT,4,2            ## @TLAN_HC_REQ_INT
	.comm	_TLAN_CH_PARM,8,3               ## @TLAN_CH_PARM
	.comm	_TLAN_HC_GO,4,2                 ## @TLAN_HC_GO
	.comm	_TLAN_HC_RT,4,2                 ## @TLAN_HC_RT
	.comm	_TLAN_LED_REG,4,2               ## @TLAN_LED_REG
	.comm	_TLAN_LED_LINK,4,2              ## @TLAN_LED_LINK
L_.str.10:                              ## @.str.10
	.asciz	"Link inactive, will retry in 10 secs...\n"

	.comm	_TLAN_TIMER_FINISH_RESET,4,2    ## @TLAN_TIMER_FINISH_RESET
	.no_dead_strip	_tlan_finish_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_finish_reset
_tlan_finish_reset:                     ; @tlan_finish_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
	ldp	x10, x9, [x0, #40]
	ldr	w21, [x9, x8, lsl #2]
Lloh0:
	adrp	x8, _TLAN_NET_CMD_NRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_NET_CMD_NRESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TLAN_NET_CMD_NWRAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLAN_NET_CMD_NWRAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TLAN_NET_CMD_DUPLEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TLAN_NET_CMD_DUPLEX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _TLAN_NET_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLAN_NET_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_tlan_dio_write8
Lloh12:
	adrp	x8, _TLAN_NET_MASK_MASK4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLAN_NET_MASK_MASK4@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TLAN_NET_MASK_MASK5@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TLAN_NET_MASK_MASK5@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x20]
Lloh18:
	adrp	x10, _TLAN_NET_MASK_MASK7@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TLAN_NET_MASK_MASK7@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, w10, wzr, eq
	orr	w2, w8, w9
	ldr	x0, [x19]
Lloh21:
	adrp	x8, _TLAN_NET_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TLAN_NET_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_tlan_dio_write8
	ldr	x0, [x19]
Lloh24:
	adrp	x8, _TLAN_MAX_RX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TLAN_MAX_RX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #1536
	bl	_tlan_dio_write16
Lloh27:
	adrp	x8, _MII_GEN_ID_HI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MII_GEN_ID_HI@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
Lloh30:
	adrp	x8, _MII_GEN_ID_LO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MII_GEN_ID_LO@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _TLAN_ADAPTER_UNMANAGED_PHY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _TLAN_ADAPTER_UNMANAGED_PHY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x22, _MII_GS_LINK@GOTPAGE
Lloh37:
	ldr	x22, [x22, _MII_GS_LINK@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
LBB0_2:
	ldr	w8, [x22]
	str	w8, [sp, #44]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_3:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh40:
	adrp	x23, _TLAN_TLPHY_CTL@GOTPAGE
Lloh41:
	ldr	x23, [x23, _TLAN_TLPHY_CTL@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #36
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
Lloh42:
	adrp	x8, _TLAN_TC_INTEN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TLAN_TC_INTEN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [sp, #36]
	orr	w3, w9, w8
	str	w3, [sp, #36]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_write_reg
	ldr	x0, [x19]
Lloh45:
	adrp	x21, _TLAN_NET_SIO@GOTPAGE
Lloh46:
	ldr	x21, [x21, _TLAN_NET_SIO@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_tlan_dio_read8
Lloh47:
	adrp	x8, _TLAN_NET_SIO_MINTEN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TLAN_NET_SIO_MINTEN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	x0, [x19]
	ldr	w1, [x21]
	bl	_tlan_dio_write8
LBB0_5:
	ldr	w8, [sp, #44]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.6:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_tlan_set_mac
	mov	w8, #1
	str	w8, [x20, #8]
Lloh50:
	adrp	x8, _TLAN_HC_INT_ON@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TLAN_HC_INT_ON@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	asr	w0, w8, #8
	ldr	x8, [x19]
Lloh53:
	adrp	x21, _TLAN_HOST_CMD@GOTPAGE
Lloh54:
	ldr	x21, [x21, _TLAN_HOST_CMD@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x1, x8, #1
	bl	_outb
Lloh55:
	adrp	x8, _debug@GOTPAGE
Lloh56:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
Lloh58:
	adrp	x9, _TLAN_DEBUG_PROBE@GOTPAGE
Lloh59:
	ldr	x9, [x9, _TLAN_DEBUG_PROBE@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
Lloh61:
	adrp	x8, _TLAN_HC_REQ_INT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TLAN_HC_REQ_INT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	asr	w0, w8, #8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x1, x8, #1
	bl	_outb
LBB0_9:
	ldr	w0, [x20, #12]
	ldr	x8, [x19]
Lloh64:
	adrp	x9, _TLAN_CH_PARM@GOTPAGE
Lloh65:
	ldr	x9, [x9, _TLAN_CH_PARM@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
Lloh67:
	adrp	x8, _TLAN_HC_GO@GOTPAGE
Lloh68:
	ldr	x8, [x8, _TLAN_HC_GO@GOTPAGEOFF]
Lloh69:
	adrp	x9, _TLAN_HC_RT@GOTPAGE
Lloh70:
	ldr	x9, [x9, _TLAN_HC_RT@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
Lloh72:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outl
	ldr	x0, [x19]
Lloh73:
	adrp	x8, _TLAN_LED_REG@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TLAN_LED_REG@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	adrp	x8, _TLAN_LED_LINK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TLAN_LED_LINK@GOTPAGEOFF]
Lloh78:
	ldr	w2, [x8]
	bl	_tlan_dio_write8
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_tlan_set_multicast_list
	b	LBB0_11
LBB0_10:
Lloh79:
	adrp	x1, l_.str.10@PAGE
Lloh80:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh81:
	adrp	x8, _HZ@GOTPAGE
Lloh82:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
Lloh84:
	adrp	x8, _TLAN_TIMER_FINISH_RESET@GOTPAGE
Lloh85:
	ldr	x8, [x8, _TLAN_TIMER_FINISH_RESET@GOTPAGEOFF]
Lloh86:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlan_set_timer
LBB0_11:
	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
	add	sp, sp, #112
	ret
LBB0_12:
Lloh87:
	adrp	x23, _MII_GEN_STS@GOTPAGE
Lloh88:
	ldr	x23, [x23, _MII_GEN_STS@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #44
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
	mov	w0, #1000
	bl	_udelay
	ldr	w2, [x23]
	add	x3, sp, #44
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
	ldr	w8, [sp, #44]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.13:
	ldr	w8, [sp, #28]
Lloh89:
	adrp	x9, _NAT_SEM_ID1@GOTPAGE
Lloh90:
	ldr	x9, [x9, _NAT_SEM_ID1@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.14:
	ldr	w8, [sp, #24]
Lloh92:
	adrp	x9, _NAT_SEM_ID2@GOTPAGE
Lloh93:
	ldr	x9, [x9, _NAT_SEM_ID2@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.15:
Lloh95:
	adrp	x8, _MII_AN_LPA@GOTPAGE
Lloh96:
	ldr	x8, [x8, _MII_AN_LPA@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	add	x3, sp, #40
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
Lloh98:
	adrp	x8, _TLAN_TLPHY_PAR@GOTPAGE
Lloh99:
	ldr	x8, [x8, _TLAN_TLPHY_PAR@GOTPAGEOFF]
Lloh100:
	ldr	w2, [x8]
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x21
	bl	_tlan_mii_read_reg
	ldr	w8, [sp, #32]
Lloh101:
	adrp	x23, _TLAN_PHY_AN_EN_STAT@GOTPAGE
Lloh102:
	ldr	x23, [x23, _TLAN_PHY_AN_EN_STAT@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh103:
	adrp	x10, l_.str.3@PAGE
Lloh104:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh105:
	adrp	x11, l_.str.2@PAGE
Lloh106:
	add	x11, x11, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x9, x11, x10, eq
Lloh107:
	adrp	x10, _TLAN_PHY_SPEED_100@GOTPAGE
Lloh108:
	ldr	x10, [x10, _TLAN_PHY_SPEED_100@GOTPAGEOFF]
Lloh109:
	ldr	w10, [x10]
Lloh110:
	adrp	x11, _TLAN_PHY_DUPLEX_FULL@GOTPAGE
Lloh111:
	ldr	x11, [x11, _TLAN_PHY_DUPLEX_FULL@GOTPAGEOFF]
Lloh112:
	ldr	w11, [x11]
Lloh113:
	adrp	x12, l_.str.4@PAGE
Lloh114:
	add	x12, x12, l_.str.4@PAGEOFF
Lloh115:
	adrp	x13, l_.str.5@PAGE
Lloh116:
	add	x13, x13, l_.str.5@PAGEOFF
	tst	w11, w8
	csel	x11, x13, x12, eq
	tst	w10, w8
	mov	w8, #100
	mov	w10, #10
	csel	x8, x10, x8, eq
	stp	x8, x11, [sp, #8]
	str	x9, [sp]
Lloh117:
	adrp	x1, l_.str.1@PAGE
Lloh118:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	ldr	w8, [sp, #32]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.16:
Lloh119:
	adrp	x1, l_.str.6@PAGE
Lloh120:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	ldr	w8, [sp, #40]
Lloh121:
	adrp	x23, _media@GOTPAGE
Lloh122:
	ldr	x23, [x23, _media@GOTPAGEOFF]
	tbnz	w8, #5, LBB0_25
; %bb.17:
	tbnz	w8, #6, LBB0_26
LBB0_18:
	tbnz	w8, #7, LBB0_27
LBB0_19:
	tbnz	w8, #8, LBB0_28
LBB0_20:
	tbz	w8, #9, LBB0_22
LBB0_21:
	ldr	x8, [x23]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh123:
	adrp	x0, l_.str.7@PAGE
Lloh124:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_cont
LBB0_22:
Lloh125:
	adrp	x0, l_.str.8@PAGE
Lloh126:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_cont
	b	LBB0_24
LBB0_23:
Lloh127:
	adrp	x1, l_.str.9@PAGE
Lloh128:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_24:
Lloh129:
	adrp	x8, _jiffies@GOTPAGE
Lloh130:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh131:
	adrp	x9, _HZ@GOTPAGE
Lloh132:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh133:
	ldr	x8, [x8]
Lloh134:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	mov	x0, x20
	str	x8, [x0, #16]!
	bl	_add_timer
	b	LBB0_3
LBB0_25:
	ldr	x8, [x23]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh135:
	adrp	x0, l_.str.7@PAGE
Lloh136:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_cont
	ldr	w8, [sp, #40]
	tbz	w8, #6, LBB0_18
LBB0_26:
	ldr	x8, [x23]
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh137:
	adrp	x0, l_.str.7@PAGE
Lloh138:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_cont
	ldr	w8, [sp, #40]
	tbz	w8, #7, LBB0_19
LBB0_27:
	ldr	x8, [x23]
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh139:
	adrp	x0, l_.str.7@PAGE
Lloh140:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_cont
	ldr	w8, [sp, #40]
	tbz	w8, #8, LBB0_20
LBB0_28:
	ldr	x8, [x23]
	ldr	w8, [x8, #12]
	str	x8, [sp]
Lloh141:
	adrp	x0, l_.str.7@PAGE
Lloh142:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_cont
	ldr	w8, [sp, #40]
	tbnz	w8, #9, LBB0_21
	b	LBB0_22
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh71
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh121, Lloh122
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh133
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpAdd	Lloh141, Lloh142
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_NET_CMD_NRESET,4,2        ; @TLAN_NET_CMD_NRESET
	.comm	_TLAN_NET_CMD_NWRAP,4,2         ; @TLAN_NET_CMD_NWRAP
	.comm	_TLAN_NET_CMD_DUPLEX,4,2        ; @TLAN_NET_CMD_DUPLEX
	.comm	_TLAN_NET_CMD,4,2               ; @TLAN_NET_CMD
	.comm	_TLAN_NET_MASK_MASK4,4,2        ; @TLAN_NET_MASK_MASK4
	.comm	_TLAN_NET_MASK_MASK5,4,2        ; @TLAN_NET_MASK_MASK5
	.comm	_TLAN_NET_MASK_MASK7,4,2        ; @TLAN_NET_MASK_MASK7
	.comm	_TLAN_NET_MASK,4,2              ; @TLAN_NET_MASK
	.comm	_TLAN_MAX_RX,4,2                ; @TLAN_MAX_RX
	.comm	_MII_GEN_ID_HI,4,2              ; @MII_GEN_ID_HI
	.comm	_MII_GEN_ID_LO,4,2              ; @MII_GEN_ID_LO
	.comm	_TLAN_ADAPTER_UNMANAGED_PHY,4,2 ; @TLAN_ADAPTER_UNMANAGED_PHY
	.comm	_MII_GS_LINK,4,2                ; @MII_GS_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link forced\n"

	.comm	_MII_GEN_STS,4,2                ; @MII_GEN_STS
	.comm	_NAT_SEM_ID1,4,2                ; @NAT_SEM_ID1
	.comm	_NAT_SEM_ID2,4,2                ; @NAT_SEM_ID2
	.comm	_MII_AN_LPA,4,2                 ; @MII_AN_LPA
	.comm	_TLAN_TLPHY_PAR,4,2             ; @TLAN_TLPHY_PAR
l_.str.1:                               ; @.str.1
	.asciz	"Link active, %s %uMbps %s-Duplex\n"

	.comm	_TLAN_PHY_AN_EN_STAT,4,2        ; @TLAN_PHY_AN_EN_STAT
l_.str.2:                               ; @.str.2
	.asciz	"forced"

l_.str.3:                               ; @.str.3
	.asciz	"Autonegotiation enabled,"

	.comm	_TLAN_PHY_SPEED_100,4,2         ; @TLAN_PHY_SPEED_100
	.comm	_TLAN_PHY_DUPLEX_FULL,4,2       ; @TLAN_PHY_DUPLEX_FULL
l_.str.4:                               ; @.str.4
	.asciz	"Full"

l_.str.5:                               ; @.str.5
	.asciz	"Half"

l_.str.6:                               ; @.str.6
	.asciz	"Partner capability:"

l_.str.7:                               ; @.str.7
	.asciz	" %s"

	.comm	_media,8,3                      ; @media
l_.str.8:                               ; @.str.8
	.asciz	"\n"

l_.str.9:                               ; @.str.9
	.asciz	"Link active\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_TLAN_TLPHY_CTL,4,2             ; @TLAN_TLPHY_CTL
	.comm	_TLAN_TC_INTEN,4,2              ; @TLAN_TC_INTEN
	.comm	_TLAN_NET_SIO,4,2               ; @TLAN_NET_SIO
	.comm	_TLAN_NET_SIO_MINTEN,4,2        ; @TLAN_NET_SIO_MINTEN
	.comm	_TLAN_HC_INT_ON,4,2             ; @TLAN_HC_INT_ON
	.comm	_TLAN_HOST_CMD,8,3              ; @TLAN_HOST_CMD
	.comm	_debug,4,2                      ; @debug
	.comm	_TLAN_DEBUG_PROBE,4,2           ; @TLAN_DEBUG_PROBE
	.comm	_TLAN_HC_REQ_INT,4,2            ; @TLAN_HC_REQ_INT
	.comm	_TLAN_CH_PARM,8,3               ; @TLAN_CH_PARM
	.comm	_TLAN_HC_GO,4,2                 ; @TLAN_HC_GO
	.comm	_TLAN_HC_RT,4,2                 ; @TLAN_HC_RT
	.comm	_TLAN_LED_REG,4,2               ; @TLAN_LED_REG
	.comm	_TLAN_LED_LINK,4,2              ; @TLAN_LED_LINK
l_.str.10:                              ; @.str.10
	.asciz	"Link inactive, will retry in 10 secs...\n"

	.comm	_TLAN_TIMER_FINISH_RESET,4,2    ; @TLAN_TIMER_FINISH_RESET
	.no_dead_strip	_tlan_finish_reset
.subsections_via_symbols
