	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_link_irq
_ks8695_link_irq:                       ## @ks8695_link_irq
	.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	%rsi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_KS8695_WMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_WMC_WLS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_netif_carrier_on
	movq	%r15, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%r15), %edi
	movq	_WMC_WSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	(%r14), %edx
	movq	_WMC_WDS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS8695_WMC,8,3                 ## @KS8695_WMC
	.comm	_WMC_WLS,4,2                    ## @WMC_WLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Link is now up (10%sMbps/%s-duplex)\n"

	.comm	_WMC_WSS,4,2                    ## @WMC_WSS
L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_WMC_WDS,4,2                    ## @WMC_WDS
L_.str.3:                               ## @.str.3
	.asciz	"Full"

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

L_.str.5:                               ## @.str.5
	.asciz	"%s: Link is now down.\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ks8695_link_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_link_irq
_ks8695_link_irq:                       ; @ks8695_link_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _KS8695_WMC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KS8695_WMC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _WMC_WLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMC_WLS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_netif_carrier_on
	mov	x0, x20
	bl	_netif_msg_link
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x20]
	ldr	w2, [x19]
Lloh6:
	adrp	x8, _WMC_WSS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMC_WSS@GOTPAGEOFF]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh10:
	adrp	x10, l_.str.2@PAGE
Lloh11:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	csel	x8, x10, x9, eq
Lloh13:
	adrp	x9, _WMC_WDS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WMC_WDS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, l_.str.3@PAGE
Lloh17:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh18:
	adrp	x11, l_.str.4@PAGE
Lloh19:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w9, w21
	csel	x9, x11, x10, eq
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_netif_msg_link
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20]
	ldr	w2, [x19]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_5:
	bl	_dev_info
LBB0_6:
Lloh24:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_KS8695_WMC,8,3                 ; @KS8695_WMC
	.comm	_WMC_WLS,4,2                    ; @WMC_WLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Link is now up (10%sMbps/%s-duplex)\n"

	.comm	_WMC_WSS,4,2                    ; @WMC_WSS
l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_WMC_WDS,4,2                    ; @WMC_WDS
l_.str.3:                               ; @.str.3
	.asciz	"Full"

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

l_.str.5:                               ; @.str.5
	.asciz	"%s: Link is now down.\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ks8695_link_irq
.subsections_via_symbols
