	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de_media_interrupt
_de_media_interrupt:                    ## @de_media_interrupt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_LinkPass@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_10
## %bb.1:
	movq	(%rbx), %rax
	movq	_DE_MEDIA_AUI@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_DE_MEDIA_BNC@GOTPCREL(%rip), %r15
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rdx
	cmpq	%rdx, %rax
	je	LBB0_3
## %bb.6:
	cmpq	%rcx, %rax
	je	LBB0_8
LBB0_7:
	cmpq	%rdx, %rax
	jne	LBB0_9
LBB0_8:
	movq	_DE_MEDIA_TP_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_de_stop_rxtx
	movq	%rbx, %rdi
	callq	_de_set_media
	movq	%rbx, %rdi
	callq	_de_start_rxtx
LBB0_9:
	movq	%rbx, %rdi
	callq	_de_link_up
	movq	_DE_TIMER_LINK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_LinkFail@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %esi
	sete	%dil
	callq	_BUG_ON
	movl	12(%rbx), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	(%rbx), %rax
	movq	_DE_MEDIA_AUI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.12:
	movq	_DE_MEDIA_BNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	callq	_de_link_down
	movq	_DE_TIMER_NO_LINK@GOTPCREL(%rip), %rax
LBB0_14:
	addq	$8, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rax), %rsi
	addq	(%rcx), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_DE_MEDIA_TP_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_de_ok_to_advertise
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	cmpq	%rcx, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LinkPass,4,2                   ## @LinkPass
	.comm	_DE_MEDIA_AUI,8,3               ## @DE_MEDIA_AUI
	.comm	_DE_MEDIA_BNC,8,3               ## @DE_MEDIA_BNC
	.comm	_DE_MEDIA_TP_AUTO,8,3           ## @DE_MEDIA_TP_AUTO
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DE_TIMER_LINK,8,3              ## @DE_TIMER_LINK
	.comm	_LinkFail,4,2                   ## @LinkFail
	.comm	_DE_TIMER_NO_LINK,8,3           ## @DE_TIMER_NO_LINK
	.no_dead_strip	_de_media_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de_media_interrupt
_de_media_interrupt:                    ; @de_media_interrupt
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _LinkPass@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LinkPass@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _DE_MEDIA_AUI@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DE_MEDIA_AUI@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh5:
	adrp	x21, _DE_MEDIA_BNC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DE_MEDIA_BNC@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.3:
Lloh7:
	adrp	x8, _DE_MEDIA_TP_AUTO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DE_MEDIA_TP_AUTO@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_de_ok_to_advertise
	cbz	w0, LBB0_10
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x10, [x21]
LBB0_5:
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _DE_MEDIA_TP_AUTO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DE_MEDIA_TP_AUTO@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_de_stop_rxtx
	mov	x0, x19
	bl	_de_set_media
	mov	x0, x19
	bl	_de_start_rxtx
LBB0_7:
	mov	x0, x19
	bl	_de_link_up
Lloh13:
	adrp	x8, _DE_TIMER_LINK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DE_TIMER_LINK@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x8, _LinkFail@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LinkFail@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x19, #12]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _DE_MEDIA_AUI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DE_MEDIA_AUI@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x10, _DE_MEDIA_BNC@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DE_MEDIA_BNC@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
LBB0_10:
	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
	ret
LBB0_11:
	mov	x0, x19
	bl	_de_link_down
Lloh24:
	adrp	x8, _DE_TIMER_NO_LINK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DE_TIMER_NO_LINK@GOTPAGEOFF]
LBB0_12:
Lloh26:
	adrp	x9, _jiffies@GOTPAGE
Lloh27:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
	add	x0, x19, #8
Lloh28:
	ldr	x9, [x9]
	ldr	x8, [x8]
	add	x1, x8, x9
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LinkPass,4,2                   ; @LinkPass
	.comm	_DE_MEDIA_AUI,8,3               ; @DE_MEDIA_AUI
	.comm	_DE_MEDIA_BNC,8,3               ; @DE_MEDIA_BNC
	.comm	_DE_MEDIA_TP_AUTO,8,3           ; @DE_MEDIA_TP_AUTO
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DE_TIMER_LINK,8,3              ; @DE_TIMER_LINK
	.comm	_LinkFail,4,2                   ; @LinkFail
	.comm	_DE_TIMER_NO_LINK,8,3           ; @DE_TIMER_NO_LINK
	.no_dead_strip	_de_media_interrupt
.subsections_via_symbols
