	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function media_check
_media_check:                           ## @media_check
	.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	_media@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r12
	movq	56(%rax), %rbx
	movl	(%rbx), %r13d
	leaq	20(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_46
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$2, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	cmpq	$0, 72(%r12)
	je	LBB0_3
## %bb.2:
	movq	_MC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MMU_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_outw
	movq	$0, 72(%r12)
LBB0_3:
	movq	_INTERRUPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_EPH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %r15d
	movq	_EPH_LINK_OK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	$1, %edi
	callq	_SMC_SELECT_BANK
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movq	_CFG_AUI_SELECT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %edi
	callq	_SMC_SELECT_BANK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	64(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 64(%r12)
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.4:
	movl	%r14d, %eax
	sarl	$8, %eax
	testl	%r14d, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$0, (%r12)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_7:
	callq	_local_irq_save
	movl	16(%rbx), %edi
	movq	%rbx, %rsi
	callq	_smc_interrupt
	callq	_local_irq_restore
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_8:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	decl	%eax
	movl	%eax, (%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%r12, %rdi
	addq	$24, %rdi
	movq	%rcx, 24(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_BANK_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CFG_MII_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_15
## %bb.11:
	cmpl	$0, 48(%r12)
	js	LBB0_18
## %bb.12:
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	movl	48(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mdio_read
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_20
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	$-1, 48(%r12)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_46
LBB0_15:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	orl	%r15d, %r13d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	40(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	cmpq	$0, 32(%r12)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	_EPH_16COL@GOTPCREL(%rip), %rax
	je	LBB0_22
## %bb.17:
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_19:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_24
LBB0_20:
	andl	$4, %r15d
	cmpl	8(%r12), %r15d
	jne	LBB0_36
LBB0_18:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_46
LBB0_22:
	movl	(%rax), %eax
	testl	%eax, 16(%r12)
	je	LBB0_24
LBB0_23:
	orl	%eax, %r13d
LBB0_24:
	movq	$0, 32(%r12)
	movl	16(%r12), %eax
	cmpl	%eax, %r13d
	je	LBB0_46
## %bb.25:
	movl	%eax, %ecx
	andl	%r13d, %ecx
	testb	$1, %cl
	je	LBB0_28
## %bb.26:
	movl	%eax, %esi
	xorl	%r13d, %esi
	movq	_EPH_LINK_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%esi, %edx
	je	LBB0_28
## %bb.27:
	testl	%eax, %edx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_31
LBB0_28:
	testb	$2, %cl
	je	LBB0_32
## %bb.29:
	xorl	%r13d, %eax
	movq	_EPH_16COL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_32
## %bb.30:
	testl	%r13d, %ecx
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.7(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.6(%rip), %rsi
LBB0_31:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_32:
	cmpq	$0, 8(%rbx)
	jne	LBB0_45
## %bb.33:
	testb	$1, %r13b
	jne	LBB0_39
## %bb.34:
	movq	_EPH_16COL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_41
## %bb.35:
	movq	%rbx, %rdi
	movl	$1, %esi
	jmp	LBB0_44
LBB0_36:
	movl	48(%r12), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_mdio_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	andl	$448, %eax                      ## imm = 0x1C0
	cmpl	$64, %eax
	movq	_TCR_FDUPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %r14d
	testl	$256, %ecx                      ## imm = 0x100
	cmovnel	%eax, %r14d
	movl	%r14d, 12(%r12)
	testl	%r15d, %r15d
	je	LBB0_38
## %bb.37:
	testl	$384, %ecx                      ## imm = 0x180
	movl	$10, %eax
	movl	$100, %edx
	cmovel	%eax, %edx
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	leal	(%rax,%rax), %ecx
	addl	$70, %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_38:
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_TCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%r13, %rdi
	callq	_inw
	orl	12(%r12), %eax
	addq	(%r14), %r13
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_outw
	movl	%r15d, 8(%r12)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_46
LBB0_39:
	movq	_EPH_LINK_OK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_43
## %bb.40:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_42
LBB0_41:
	leaq	L_.str.10(%rip), %rsi
LBB0_42:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_45
LBB0_43:
	movq	%rbx, %rdi
	movl	$2, %esi
LBB0_44:
	callq	_smc_set_xcvr
LBB0_45:
	movl	%r13d, 16(%r12)
LBB0_46:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%r12, %rdi
	addq	$24, %rdi
	movq	%rcx, 24(%r12)
	callq	_add_timer
	movl	%r15d, %edi
	callq	_SMC_SELECT_BANK
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_media,4,2                      ## @media
	.comm	_BANK_SELECT,8,3                ## @BANK_SELECT
	.comm	_MC_RESET,4,2                   ## @MC_RESET
	.comm	_MMU_CMD,8,3                    ## @MMU_CMD
	.comm	_INTERRUPT,8,3                  ## @INTERRUPT
	.comm	_EPH,8,3                        ## @EPH
	.comm	_EPH_LINK_OK,4,2                ## @EPH_LINK_OK
	.comm	_CONFIG,8,3                     ## @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ## @CFG_AUI_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt(s) dropped!\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CFG_MII_SELECT,4,2             ## @CFG_MII_SELECT
L_.str.1:                               ## @.str.1
	.asciz	"MII is missing!\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s link beat\n"

L_.str.3:                               ## @.str.3
	.asciz	"found"

L_.str.4:                               ## @.str.4
	.asciz	"lost"

	.comm	_TCR_FDUPLX,4,2                 ## @TCR_FDUPLX
L_.str.5:                               ## @.str.5
	.asciz	"autonegotiation complete: %dbaseT-%cD selected\n"

	.comm	_TCR,8,3                        ## @TCR
	.comm	_EPH_16COL,4,2                  ## @EPH_16COL
L_.str.6:                               ## @.str.6
	.asciz	"coax cable %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"problem"

L_.str.8:                               ## @.str.8
	.asciz	"ok"

L_.str.9:                               ## @.str.9
	.asciz	"flipped to 10baseT\n"

L_.str.10:                              ## @.str.10
	.asciz	"flipped to 10base2\n"

	.comm	_smc,8,3                        ## @smc
	.no_dead_strip	_media_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function media_check
_media_check:                           ; @media_check
	.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
Lloh0:
	adrp	x8, _media@GOTPAGE
Lloh1:
	ldr	x8, [x8, _media@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	ldr	x22, [x0, #56]
	ldr	w26, [x22]
	add	x20, x0, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x28, _BANK_SELECT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _BANK_SELECT@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
	mov	x21, x0
	mov	x0, x22
	bl	_netif_device_present
Lloh5:
	adrp	x24, _HZ@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	cbz	w0, LBB0_43
; %bb.1:
	mov	w0, #2
	bl	_SMC_SELECT_BANK
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _MC_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _MMU_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMU_CMD@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x1, x8, x26
	bl	_outw
	str	xzr, [x19, #72]
LBB0_3:
Lloh13:
	adrp	x8, _INTERRUPT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTERRUPT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x0, x8, x26
	bl	_inw
	mov	x24, x0
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh16:
	adrp	x8, _EPH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPH@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x0, x8, x26
	bl	_inw
	mov	x23, x0
Lloh19:
	adrp	x8, _EPH_LINK_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPH_LINK_OK@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x8]
	mov	w27, #1
	mov	w0, #1
	bl	_SMC_SELECT_BANK
Lloh22:
	adrp	x8, _CONFIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x26
	bl	_inw
Lloh25:
	adrp	x8, _CFG_AUI_SELECT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CFG_AUI_SELECT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	cinc	w27, w27, ne
	mov	x0, x21
	bl	_SMC_SELECT_BANK
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #64]
	add	w9, w8, #1
	str	w9, [x19, #64]
	cmp	w8, #0
	and	w8, w24, w24, asr #8
	ccmp	w8, #0, #4, ne
Lloh28:
	adrp	x24, _HZ@GOTPAGE
Lloh29:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
LBB0_5:
	sub	w8, w8, #1
Lloh30:
	adrp	x9, _jiffies@GOTPAGE
Lloh31:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
	str	w8, [x19]
Lloh32:
	ldr	x8, [x9]
	ldrsw	x9, [x24]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	add	x8, x8, w9, sxtw
	str	x8, [x19, #24]!
	mov	x0, x19
	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
	b	_add_timer
LBB0_6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
LBB0_8:
	bl	_local_irq_save
	ldr	w0, [x22, #16]
	mov	x1, x22
	bl	_smc_interrupt
	bl	_local_irq_restore
	ldr	w8, [x24]
	str	w8, [x19]
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
LBB0_9:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x28]
	add	x0, x8, x26
	bl	_inw
	mov	x21, x0
	ldr	w8, [x19, #4]
Lloh35:
	adrp	x9, _CFG_MII_SELECT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CFG_MII_SELECT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	ldr	w8, [x19, #48]
	tbnz	w8, #31, LBB0_43
; %bb.11:
	mov	w0, #3
	bl	_SMC_SELECT_BANK
	ldr	w1, [x19, #48]
	mov	x0, x22
	mov	w2, #1
	bl	_mdio_read
	mov	w8, #65535
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	cbnz	w0, LBB0_17
LBB0_13:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
	mov	w8, #-1
	str	w8, [x19, #48]
	b	LBB0_43
LBB0_14:
	and	w8, w25, w23
	orr	w23, w27, w8
Lloh40:
	adrp	x8, _jiffies@GOTPAGE
Lloh41:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh42:
	ldr	x0, [x8]
	ldr	x8, [x19, #40]
	ldrsw	x9, [x24]
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_24
; %bb.15:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_22
; %bb.16:
Lloh43:
	adrp	x8, _EPH_16COL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EPH_16COL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	b	LBB0_23
LBB0_17:
	and	w24, w0, #0x4
	ldr	w8, [x19, #8]
	cmp	w24, w8
	b.eq	LBB0_21
; %bb.18:
	ldr	w1, [x19, #48]
	mov	x0, x22
	mov	w2, #5
	bl	_mdio_read
	mov	x23, x0
Lloh46:
	adrp	x8, l_.str.3@PAGE
Lloh47:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh48:
	adrp	x9, l_.str.4@PAGE
Lloh49:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
	and	w8, w23, #0x100
	and	w9, w23, #0x1c0
	cmp	w9, #64
	cset	w9, eq
	orr	w8, w9, w8, lsr #8
Lloh52:
	adrp	x9, _TCR_FDUPLX@GOTPAGE
Lloh53:
	ldr	x9, [x9, _TCR_FDUPLX@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, wzr, ne
	str	w8, [x19, #12]
	cbz	w24, LBB0_20
; %bb.19:
	cmp	w8, #0
	mov	w8, #70
	mov	w9, #72
	csel	x8, x9, x8, eq
	tst	w23, #0x180
	mov	w9, #100
	mov	w10, #10
	csel	x9, x10, x9, eq
	stp	x9, x8, [sp]
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
LBB0_20:
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh57:
	adrp	x22, _TCR@GOTPAGE
Lloh58:
	ldr	x22, [x22, _TCR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x26
	bl	_inw
	ldr	w8, [x19, #12]
	orr	w0, w8, w0
	ldr	x8, [x22]
	add	x1, x8, x26
	bl	_outw
	str	w24, [x19, #8]
LBB0_21:
Lloh59:
	adrp	x24, _HZ@GOTPAGE
Lloh60:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	b	LBB0_43
LBB0_22:
	ldr	w9, [x19, #16]
Lloh61:
	adrp	x8, _EPH_16COL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EPH_16COL@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_24
LBB0_23:
	orr	w23, w8, w23
LBB0_24:
	str	xzr, [x19, #32]
	ldr	w8, [x19, #16]
	cmp	w23, w8
	b.eq	LBB0_43
; %bb.25:
	and	w9, w8, w23
	tbz	w9, #0, LBB0_28
; %bb.26:
	eor	w11, w8, w23
Lloh64:
	adrp	x10, _EPH_LINK_OK@GOTPAGE
Lloh65:
	ldr	x10, [x10, _EPH_LINK_OK@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_28
; %bb.27:
Lloh67:
	adrp	x9, l_.str.4@PAGE
Lloh68:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh69:
	adrp	x11, l_.str.3@PAGE
Lloh70:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w10, w8
	csel	x8, x11, x9, eq
	str	x8, [sp]
Lloh71:
	adrp	x1, l_.str.2@PAGE
Lloh72:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_31
LBB0_28:
	tbz	w9, #1, LBB0_32
; %bb.29:
	eor	w9, w8, w23
Lloh73:
	adrp	x8, _EPH_16COL@GOTPAGE
Lloh74:
	ldr	x8, [x8, _EPH_16COL@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_32
; %bb.30:
Lloh76:
	adrp	x9, l_.str.7@PAGE
Lloh77:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh78:
	adrp	x10, l_.str.8@PAGE
Lloh79:
	add	x10, x10, l_.str.8@PAGEOFF
	tst	w8, w23
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh80:
	adrp	x1, l_.str.6@PAGE
Lloh81:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_31:
	mov	x0, x22
	bl	_netdev_info
LBB0_32:
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_42
; %bb.33:
	tbnz	w23, #0, LBB0_36
; %bb.34:
Lloh82:
	adrp	x8, _EPH_16COL@GOTPAGE
Lloh83:
	ldr	x8, [x8, _EPH_16COL@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_38
; %bb.35:
	mov	x0, x22
	mov	w1, #1
	b	LBB0_41
LBB0_36:
Lloh85:
	adrp	x8, _EPH_LINK_OK@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EPH_LINK_OK@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_40
; %bb.37:
Lloh88:
	adrp	x1, l_.str.9@PAGE
Lloh89:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_39
LBB0_38:
Lloh90:
	adrp	x1, l_.str.10@PAGE
Lloh91:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_39:
	mov	x0, x22
	bl	_netdev_info
	b	LBB0_42
LBB0_40:
	mov	x0, x22
	mov	w1, #2
LBB0_41:
	bl	_smc_set_xcvr
LBB0_42:
	str	w23, [x19, #16]
LBB0_43:
Lloh92:
	adrp	x8, _jiffies@GOTPAGE
Lloh93:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh94:
	ldr	x8, [x8]
	ldrsw	x9, [x24]
	add	x8, x8, x9
	str	x8, [x19, #24]!
	mov	x0, x19
	bl	_add_timer
	mov	x0, x21
	bl	_SMC_SELECT_BANK
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_media,4,2                      ; @media
	.comm	_BANK_SELECT,8,3                ; @BANK_SELECT
	.comm	_MC_RESET,4,2                   ; @MC_RESET
	.comm	_MMU_CMD,8,3                    ; @MMU_CMD
	.comm	_INTERRUPT,8,3                  ; @INTERRUPT
	.comm	_EPH,8,3                        ; @EPH
	.comm	_EPH_LINK_OK,4,2                ; @EPH_LINK_OK
	.comm	_CONFIG,8,3                     ; @CONFIG
	.comm	_CFG_AUI_SELECT,4,2             ; @CFG_AUI_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt(s) dropped!\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CFG_MII_SELECT,4,2             ; @CFG_MII_SELECT
l_.str.1:                               ; @.str.1
	.asciz	"MII is missing!\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s link beat\n"

l_.str.3:                               ; @.str.3
	.asciz	"found"

l_.str.4:                               ; @.str.4
	.asciz	"lost"

	.comm	_TCR_FDUPLX,4,2                 ; @TCR_FDUPLX
l_.str.5:                               ; @.str.5
	.asciz	"autonegotiation complete: %dbaseT-%cD selected\n"

	.comm	_TCR,8,3                        ; @TCR
	.comm	_EPH_16COL,4,2                  ; @EPH_16COL
l_.str.6:                               ; @.str.6
	.asciz	"coax cable %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"problem"

l_.str.8:                               ; @.str.8
	.asciz	"ok"

l_.str.9:                               ; @.str.9
	.asciz	"flipped to 10baseT\n"

l_.str.10:                              ; @.str.10
	.asciz	"flipped to 10base2\n"

	.comm	_smc,8,3                        ; @smc
	.no_dead_strip	_media_check
.subsections_via_symbols
