	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8695_rx_irq
_ks8695_rx_irq:                         ## @ks8695_rx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %ebx
	movq	16(%rax), %rcx
	movslq	%ebx, %r14
	movq	%r14, %rax
	shlq	$4, %rax
	movl	$-1, %r13d
	cmpq	$0, 8(%rcx,%rax)
	je	LBB0_17
## %bb.1:
	movq	8(%r12), %rcx
	movl	(%rcx,%rax), %r15d
	movq	_RDES_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%r15d, %eax
	jne	LBB0_17
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	xorl	%eax, %eax
	callq	_rmb
	movq	8(%r12), %rax
	shlq	$4, %r14
	movl	(%rax,%r14), %edi
	callq	_le32_to_cpu
	movq	_RDES_LS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RDES_FS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDES_RE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RDES_ES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	20(%rdx)
	movq	_RDES_TL@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	16(%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDES_RF@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	16(%rdx)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDES_CE@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	12(%rdx)
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDES_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDES_FLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	%eax, %r15d
	addl	$-4, %r15d
	movq	16(%r12), %rax
	movq	8(%rax,%r14), %rbx
	movq	$0, 8(%rax,%r14)
	movq	8(%r12), %rcx
	movq	$0, 8(%rcx,%r14)
	movl	24(%r12), %edi
	movl	(%rax,%r14), %edx
	movl	4(%rax,%r14), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	incl	4(%r14)
	addl	%r15d, (%r14)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r13d, %rax
	incq	%rax
	movq	_MAX_RX_DESC_MASK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	andq	%rax, %rbx
	cmpl	(%r12), %ebx
	je	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rcx
	movq	%rbx, %rax
	shlq	$4, %rax
	cmpq	$0, 8(%rcx,%rax)
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rcx
	movl	(%rcx,%rax), %r15d
	movq	_RDES_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rbx, %r14
	testl	%r15d, %eax
	je	LBB0_5
LBB0_17:
	xorl	%edi, %edi
	cmpl	$-1, %r13d
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	incl	%r13d
	movq	_MAX_RX_DESC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	%r13d, (%r12)
LBB0_19:
	movq	%r12, %rdi
	callq	_ks8695_refill_rxbuffers
	movq	_KS8695_DRSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ks8695_writereg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDES_OWN,4,2                   ## @RDES_OWN
	.comm	_RDES_FS,4,2                    ## @RDES_FS
	.comm	_RDES_LS,4,2                    ## @RDES_LS
	.comm	_RDES_ES,4,2                    ## @RDES_ES
	.comm	_RDES_RE,4,2                    ## @RDES_RE
	.comm	_RDES_TL,4,2                    ## @RDES_TL
	.comm	_RDES_RF,4,2                    ## @RDES_RF
	.comm	_RDES_CE,4,2                    ## @RDES_CE
	.comm	_RDES_FLEN,4,2                  ## @RDES_FLEN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_MAX_RX_DESC_MASK,4,2           ## @MAX_RX_DESC_MASK
	.comm	_KS8695_DRSC,4,2                ## @KS8695_DRSC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ks8695_rx_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8695_rx_irq
_ks8695_rx_irq:                         ; @ks8695_rx_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w22, [x0]
	ldr	x8, [x0, #16]
	add	x8, x8, w22, sxtw #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	sxtw	x21, w22
	ldr	x8, [x19, #8]
	lsl	x9, x21, #4
	ldr	w24, [x8, x9]
Lloh0:
	adrp	x23, _RDES_OWN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RDES_OWN@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cpu_to_le32
	tst	w0, w24
	b.eq	LBB0_6
LBB0_2:
	mov	w24, #-1
LBB0_3:
	cmn	w24, #1
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	add	w8, w24, #1
Lloh2:
	adrp	x9, _MAX_RX_DESC_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_RX_DESC_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	mov	x0, x19
	bl	_ks8695_refill_rxbuffers
Lloh5:
	adrp	x8, _KS8695_DRSC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KS8695_DRSC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ks8695_writereg
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x25, _RDES_FS@GOTPAGE
Lloh12:
	ldr	x25, [x25, _RDES_FS@GOTPAGEOFF]
Lloh13:
	adrp	x26, _RDES_LS@GOTPAGE
Lloh14:
	ldr	x26, [x26, _RDES_LS@GOTPAGEOFF]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
Lloh15:
	adrp	x27, _MAX_RX_DESC_MASK@GOTPAGE
Lloh16:
	ldr	x27, [x27, _MAX_RX_DESC_MASK@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x22
	bl	_rmb
	ldr	x8, [x19, #8]
	lsl	x28, x21, #4
	ldr	w0, [x8, x28]
	bl	_le32_to_cpu
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	bics	wzr, w8, w0
	b.ne	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh17:
	adrp	x8, _RDES_ES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RDES_ES@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x8]
Lloh20:
	adrp	x8, _RDES_RE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RDES_RE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w9, w8, w9
	tst	w9, w0
	b.eq	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #20]
	add	w9, w9, #1
	str	w9, [x20, #20]
Lloh23:
	adrp	x9, _RDES_TL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RDES_TL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #16]
	add	w9, w9, #1
	str	w9, [x20, #16]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh26:
	adrp	x9, _RDES_RF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RDES_RF@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #16]
	add	w9, w9, #1
	str	w9, [x20, #16]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh29:
	adrp	x9, _RDES_CE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RDES_CE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #12]
	add	w9, w9, #1
	str	w9, [x20, #12]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	tst	w8, w0
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x23]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8, x28]
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w24
	add	x8, x8, #1
	ldrsw	x9, [x27]
	and	x22, x9, x8
	ldr	w8, [x19]
	cmp	w22, w8
	b.eq	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x22, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	lsl	x9, x22, #4
	ldr	w28, [x8, x9]
	ldr	w0, [x23]
	bl	_cpu_to_le32
	mov	x21, x22
	tst	w0, w28
	b.eq	LBB0_7
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh32:
	adrp	x8, _RDES_FLEN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RDES_FLEN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w21, w8, #4
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x28
	ldr	x22, [x8, #8]
	str	xzr, [x8, #8]
	add	x9, x9, x28
	str	xzr, [x9, #8]
	ldr	w0, [x19, #24]
	ldp	w2, w1, [x8]
Lloh35:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	mov	x0, x22
	mov	x1, x21
	bl	_skb_put
	mov	x0, x22
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x22]
	mov	x0, x22
	bl	_netif_rx
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w21
	add.2s	v0, v0, v1
	str	d0, [x20]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RDES_OWN,4,2                   ; @RDES_OWN
	.comm	_RDES_FS,4,2                    ; @RDES_FS
	.comm	_RDES_LS,4,2                    ; @RDES_LS
	.comm	_RDES_ES,4,2                    ; @RDES_ES
	.comm	_RDES_RE,4,2                    ; @RDES_RE
	.comm	_RDES_TL,4,2                    ; @RDES_TL
	.comm	_RDES_RF,4,2                    ; @RDES_RF
	.comm	_RDES_CE,4,2                    ; @RDES_CE
	.comm	_RDES_FLEN,4,2                  ; @RDES_FLEN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_MAX_RX_DESC_MASK,4,2           ; @MAX_RX_DESC_MASK
	.comm	_KS8695_DRSC,4,2                ; @KS8695_DRSC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ks8695_rx_irq
.subsections_via_symbols
