	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_irq
_ks_irq:                                ## @ks_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ks_save_cmd_reg
	movq	_KS_ISR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ks_rdreg16
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_2:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ks_wrreg16
	movq	_IRQ_RXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ks_rcv
LBB0_4:
	movq	_IRQ_LCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ks_update_link_status
LBB0_6:
	movq	_IRQ_TXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_8:
	movq	_IRQ_LDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_KS_PMECR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ks_rdreg16
	movq	_PMECR_WKEVT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	_PMECR_WKEVT_LINK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ks_wrreg16
LBB0_10:
	movq	_IRQ_RXOI@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_unlikely
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rax
	incl	(%rax)
LBB0_12:
	movq	%r14, %rdi
	callq	_ks_restore_cmd_reg
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_ISR,4,2                     ## @KS_ISR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_RXI,4,2                    ## @IRQ_RXI
	.comm	_IRQ_LCI,4,2                    ## @IRQ_LCI
	.comm	_IRQ_TXI,4,2                    ## @IRQ_TXI
	.comm	_IRQ_LDI,4,2                    ## @IRQ_LDI
	.comm	_KS_PMECR,4,2                   ## @KS_PMECR
	.comm	_PMECR_WKEVT_MASK,4,2           ## @PMECR_WKEVT_MASK
	.comm	_PMECR_WKEVT_LINK,4,2           ## @PMECR_WKEVT_LINK
	.comm	_IRQ_RXOI,4,2                   ## @IRQ_RXOI
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ks_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_irq
_ks_irq:                                ; @ks_irq
	.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	x21, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_ks_save_cmd_reg
Lloh0:
	adrp	x22, _KS_ISR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KS_ISR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ks_rdreg16
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_ks_wrreg16
Lloh4:
	adrp	x8, _IRQ_RXI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_RXI@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_ks_rcv
LBB0_4:
Lloh7:
	adrp	x8, _IRQ_LCI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_LCI@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_ks_update_link_status
LBB0_6:
Lloh10:
	adrp	x8, _IRQ_TXI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_TXI@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_netif_wake_queue
LBB0_8:
Lloh13:
	adrp	x8, _IRQ_LDI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_LDI@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x21, _KS_PMECR@GOTPAGE
Lloh17:
	ldr	x21, [x21, _KS_PMECR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ks_rdreg16
Lloh18:
	adrp	x8, _PMECR_WKEVT_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PMECR_WKEVT_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w1, [x21]
Lloh21:
	adrp	x9, _PMECR_WKEVT_LINK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PMECR_WKEVT_LINK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ks_wrreg16
LBB0_10:
Lloh24:
	adrp	x8, _IRQ_RXOI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_RXOI@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_12:
Lloh27:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_13:
	mov	x0, x19
	bl	_ks_restore_cmd_reg
	ldr	w0, [x20]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_ISR,4,2                     ; @KS_ISR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_RXI,4,2                    ; @IRQ_RXI
	.comm	_IRQ_LCI,4,2                    ; @IRQ_LCI
	.comm	_IRQ_TXI,4,2                    ; @IRQ_TXI
	.comm	_IRQ_LDI,4,2                    ; @IRQ_LDI
	.comm	_KS_PMECR,4,2                   ; @KS_PMECR
	.comm	_PMECR_WKEVT_MASK,4,2           ; @PMECR_WKEVT_MASK
	.comm	_PMECR_WKEVT_LINK,4,2           ; @PMECR_WKEVT_LINK
	.comm	_IRQ_RXOI,4,2                   ; @IRQ_RXOI
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ks_irq
.subsections_via_symbols
