	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_link_event
_handle_link_event:                     ## @handle_link_event
	.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	%rdi, %r15
	movq	16(%rdi), %r14
	movq	_PORT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rdlp
	movq	_LINK_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movq	_PORT_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	addl	$-128, %ecx
	movl	$-1, %edx
	cmpl	$2, %ecx
	ja	LBB0_7
## %bb.6:
	movslq	%ecx, %rcx
	leaq	l_switch.table.handle_link_event(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
LBB0_7:
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_FLOW_CONTROL_ENABLED@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	testl	%ecx, %ecx
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rsi, %rcx
	testl	%eax, %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rbx
	movl	(%rbx,%r14), %esi
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_txq_reclaim
	movq	%rbx, %rdi
	callq	_txq_reset_hw_ptr
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_STATUS,4,2                ## @PORT_STATUS
	.comm	_LINK_UP,4,2                    ## @LINK_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"link down\n"

	.comm	_PORT_SPEED_MASK,4,2            ## @PORT_SPEED_MASK
	.comm	_FULL_DUPLEX,4,2                ## @FULL_DUPLEX
	.comm	_FLOW_CONTROL_ENABLED,4,2       ## @FLOW_CONTROL_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"link up, %d Mb/s, %s duplex, flow control %sabled\n"

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

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

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

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

	.no_dead_strip	_handle_link_event
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.handle_link_event
l_switch.table.handle_link_event:
	.long	1000                            ## 0x3e8
	.long	100                             ## 0x64
	.long	10                              ## 0xa

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_link_event
_handle_link_event:                     ; @handle_link_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _PORT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rdlp
Lloh3:
	adrp	x8, _LINK_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINK_UP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _PORT_SPEED_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_SPEED_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.2:
Lloh9:
	adrp	x9, l_switch.table.handle_link_event@PAGE
Lloh10:
	add	x9, x9, l_switch.table.handle_link_event@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_9
; %bb.4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_netif_carrier_off
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x21, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x19, x8, x21
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #1
	bl	_txq_reclaim
	mov	x0, x19
	bl	_txq_reset_hw_ptr
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	mov	w8, #-1
LBB0_8:
Lloh13:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _FLOW_CONTROL_ENABLED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FLOW_CONTROL_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, l_.str.2@PAGE
Lloh20:
	add	x11, x11, l_.str.2@PAGEOFF
Lloh21:
	adrp	x12, l_.str.3@PAGE
Lloh22:
	add	x12, x12, l_.str.3@PAGEOFF
	tst	w9, w0
	csel	x9, x12, x11, eq
Lloh23:
	adrp	x11, l_.str.4@PAGE
Lloh24:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh25:
	adrp	x12, l_.str.5@PAGE
Lloh26:
	add	x12, x12, l_.str.5@PAGEOFF
	tst	w10, w0
	csel	x10, x12, x11, eq
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_netif_carrier_on
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_STATUS,4,2                ; @PORT_STATUS
	.comm	_LINK_UP,4,2                    ; @LINK_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"link down\n"

	.comm	_PORT_SPEED_MASK,4,2            ; @PORT_SPEED_MASK
	.comm	_FULL_DUPLEX,4,2                ; @FULL_DUPLEX
	.comm	_FLOW_CONTROL_ENABLED,4,2       ; @FLOW_CONTROL_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"link up, %d Mb/s, %s duplex, flow control %sabled\n"

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

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

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

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

	.no_dead_strip	_handle_link_event
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.handle_link_event
l_switch.table.handle_link_event:
	.long	1000                            ; 0x3e8
	.long	100                             ; 0x64
	.long	10                              ; 0xa

.subsections_via_symbols
