	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comet_timer                    ## -- Begin function comet_timer
	.p2align	4, 0x90
_comet_timer:                           ## @comet_timer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r14
	movq	16(%rax), %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_tulip_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tulip_mdio_read
	movl	%eax, %r12d
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_tulip_mdio_read
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_netdev_dbg
LBB0_2:
	movq	%rbx, %rdi
	callq	_tulip_check_duplex
	movq	%rbx, %rdi
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	callq	_netif_carrier_on
	jmp	LBB0_5
LBB0_3:
	callq	_netif_carrier_off
LBB0_5:
	addl	%r15d, %r15d
	movl	%r15d, %edi
	callq	_RUN_AT
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer,4,2                      ## @timer
	.comm	_HZ,4,2                         ## @HZ
	.comm	_tulip_debug,4,2                ## @tulip_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Comet link status %04x partner capability %04x\n"

	.comm	_tp,8,3                         ## @tp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comet_timer                    ; -- Begin function comet_timer
	.p2align	2
_comet_timer:                           ; @comet_timer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	x20, [x0, #16]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _tulip_debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tulip_debug@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_tulip_mdio_read
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #5
	bl	_tulip_mdio_read
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_dbg
LBB0_2:
	mov	x0, x20
	bl	_tulip_check_duplex
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_netif_carrier_on
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_netif_carrier_off
LBB0_5:
	lsl	w0, w22, #1
	bl	_RUN_AT
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_timer,4,2                      ; @timer
	.comm	_HZ,4,2                         ; @HZ
	.comm	_tulip_debug,4,2                ; @tulip_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Comet link status %04x partner capability %04x\n"

	.comm	_tp,8,3                         ; @tp
.subsections_via_symbols
