	.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
	pushq	%rax
	.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, %rbx
	movq	32(%rax), %rax
	movq	(%rax), %r14
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_34
## %bb.1:
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movq	_IntLatch@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	_EL3_TIMER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inb
	cmpl	$255, %eax
	jne	LBB0_6
## %bb.3:
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_5:
	callq	_local_irq_save
	movl	20(%r14), %edi
	movq	%r14, %rsi
	callq	_el3_interrupt
	callq	_local_irq_restore
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	decl	%eax
	movl	%eax, (%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	jmp	LBB0_35
LBB0_8:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$4, %edi
	callq	_EL3WINDOW
	movq	_WN4_MEDIA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	callq	_inw
	movl	%eax, %r12d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	andl	$51200, %r12d                   ## imm = 0xC800
	jmp	LBB0_14
LBB0_10:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	andl	$51216, %r12d                   ## imm = 0xC810
	movl	$6, %edi
	callq	_EL3WINDOW
	movq	_StatsDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_outw
	movq	%r13, %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	_StatsEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	callq	_outw
	addl	%r15d, 16(%r14)
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.11:
	testb	$16, 4(%rbx)
	je	LBB0_13
LBB0_12:
	orl	$16, %r12d
LBB0_13:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movl	4(%rbx), %eax
	cmpl	%eax, %r12d
	je	LBB0_33
## %bb.15:
	movl	%eax, %ecx
	andl	%r12d, %ecx
	testl	$32768, %ecx                    ## imm = 0x8000
	je	LBB0_18
## %bb.16:
	movl	%eax, %edx
	xorl	%r12d, %edx
	testl	$2048, %edx                     ## imm = 0x800
	jne	LBB0_17
LBB0_18:
	testl	$16384, %ecx                    ## imm = 0x4000
	je	LBB0_22
## %bb.19:
	movl	%eax, %ecx
	xorl	%r12d, %ecx
	testb	$16, %cl
	je	LBB0_22
## %bb.20:
	testb	$16, %al
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_21
LBB0_17:
	testl	$2048, %eax                     ## imm = 0x800
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_22:
	cmpq	$0, 8(%r14)
	je	LBB0_23
LBB0_32:
	movl	%r12d, 4(%rbx)
LBB0_33:
	movl	$1, %edi
	callq	_EL3WINDOW
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_34:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_35:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	cltq
	addq	(%rcx), %rax
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_23:
	testl	$32768, %r12d                   ## imm = 0x8000
	jne	LBB0_24
## %bb.27:
	testl	$16384, %r12d                   ## imm = 0x4000
	je	LBB0_32
## %bb.28:
	testb	$16, %r12b
	jne	LBB0_29
## %bb.30:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_31
LBB0_24:
	testl	$2048, %r12d                    ## imm = 0x800
	jne	LBB0_25
## %bb.26:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_tc589_set_xcvr
	jmp	LBB0_32
LBB0_25:
	leaq	L_.str.7(%rip), %rsi
LBB0_31:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_32
LBB0_29:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tc589_set_xcvr
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_media,4,2                      ## @media
	.comm	_EL3_STATUS,8,3                 ## @EL3_STATUS
	.comm	_IntLatch,4,2                   ## @IntLatch
	.comm	_EL3_TIMER,8,3                  ## @EL3_TIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt(s) dropped!\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_WN4_MEDIA,8,3                  ## @WN4_MEDIA
	.comm	_StatsDisable,4,2               ## @StatsDisable
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_StatsEnable,4,2                ## @StatsEnable
L_.str.1:                               ## @.str.1
	.asciz	"%s link beat\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"coax cable %s\n"

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

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

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

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

	.comm	_lp,8,3                         ## @lp
	.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, #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
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	x8, [x0, #32]
	ldr	x20, [x8]
	ldr	w22, [x20]
	mov	x0, x20
	bl	_netif_device_present
Lloh3:
	adrp	x24, _jiffies@GOTPAGE
Lloh4:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	cbz	w0, LBB0_24
; %bb.1:
Lloh5:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inw
Lloh8:
	adrp	x8, _IntLatch@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IntLatch@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
Lloh11:
	adrp	x8, _EL3_TIMER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EL3_TIMER@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inb
	cmp	w0, #255
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
LBB0_5:
	bl	_local_irq_save
	ldr	w0, [x20, #20]
	mov	x1, x20
	bl	_el3_interrupt
	bl	_local_irq_restore
Lloh16:
	adrp	x8, _HZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
	sub	w8, w8, #1
	str	w8, [x19]
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	b	LBB0_25
LBB0_8:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	w0, #4
	bl	_EL3WINDOW
Lloh22:
	adrp	x8, _WN4_MEDIA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WN4_MEDIA@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_inw
	mov	x23, x0
	ldr	x0, [x24]
	ldr	x8, [x19, #24]
Lloh25:
	adrp	x9, _HZ@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh27:
	ldrsw	x9, [x9]
	add	x1, x8, x9
	bl	_time_before
	cbz	x0, LBB0_10
; %bb.9:
	mov	w8, #51200
	and	w25, w23, w8
	b	LBB0_13
LBB0_10:
	mov	w8, #51216
	and	w25, w23, w8
	mov	w0, #6
	bl	_EL3WINDOW
Lloh28:
	adrp	x8, _StatsDisable@GOTPAGE
Lloh29:
	ldr	x8, [x8, _StatsDisable@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x26, _EL3_CMD@GOTPAGE
Lloh32:
	ldr	x26, [x26, _EL3_CMD@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x1, x8, x22
	bl	_outw
	mov	x0, x22
	bl	_inb
	mov	x23, x0
Lloh33:
	adrp	x8, _StatsEnable@GOTPAGE
Lloh34:
	ldr	x8, [x8, _StatsEnable@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x26]
	add	x1, x8, x22
	bl	_outw
	ldr	w8, [x20, #16]
	add	w8, w8, w23
	str	w8, [x20, #16]
	cbnz	w23, LBB0_12
; %bb.11:
	ldrb	w8, [x19, #4]
	tbz	w8, #4, LBB0_13
LBB0_12:
	orr	w25, w25, #0x10
LBB0_13:
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.eq	LBB0_23
; %bb.14:
	and	w9, w8, w25
	tbz	w9, #15, LBB0_16
; %bb.15:
	eor	w10, w8, w25
	tbnz	w10, #11, LBB0_19
LBB0_16:
	tbz	w9, #14, LBB0_21
; %bb.17:
	eor	w9, w8, w25
	tbz	w9, #4, LBB0_21
; %bb.18:
Lloh36:
	adrp	x9, l_.str.5@PAGE
Lloh37:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh38:
	adrp	x10, l_.str.6@PAGE
Lloh39:
	add	x10, x10, l_.str.6@PAGEOFF
	tst	w8, #0x10
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh42:
	adrp	x9, l_.str.2@PAGE
Lloh43:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh44:
	adrp	x10, l_.str.3@PAGE
Lloh45:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, #0x800
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.1@PAGE
Lloh47:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_netdev_info
LBB0_21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_26
LBB0_22:
	str	w25, [x19, #4]
LBB0_23:
	mov	w0, #1
	bl	_EL3WINDOW
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_24:
Lloh48:
	adrp	x8, _HZ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
LBB0_25:
	ldr	x9, [x24]
	add	x8, x9, w8, sxtw
	str	x8, [x19, #8]!
	mov	x0, x19
	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
	b	_add_timer
LBB0_26:
	tbnz	w25, #15, LBB0_30
; %bb.27:
	tbz	w25, #14, LBB0_22
; %bb.28:
	tbnz	w25, #4, LBB0_34
; %bb.29:
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_33
LBB0_30:
	tbnz	w25, #11, LBB0_32
; %bb.31:
	mov	x0, x20
	mov	w1, #2
	bl	_tc589_set_xcvr
	b	LBB0_22
LBB0_32:
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_33:
	mov	x0, x20
	bl	_netdev_info
	b	LBB0_22
LBB0_34:
	mov	x0, x20
	mov	w1, #1
	bl	_tc589_set_xcvr
	b	LBB0_22
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_media,4,2                      ; @media
	.comm	_EL3_STATUS,8,3                 ; @EL3_STATUS
	.comm	_IntLatch,4,2                   ; @IntLatch
	.comm	_EL3_TIMER,8,3                  ; @EL3_TIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt(s) dropped!\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_WN4_MEDIA,8,3                  ; @WN4_MEDIA
	.comm	_StatsDisable,4,2               ; @StatsDisable
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_StatsEnable,4,2                ; @StatsEnable
l_.str.1:                               ; @.str.1
	.asciz	"%s link beat\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"coax cable %s\n"

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

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

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

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

	.comm	_lp,8,3                         ; @lp
	.no_dead_strip	_media_check
.subsections_via_symbols
