	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_rxintr
_glc_rxintr:                            ## @glc_rxintr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	56(%rdi), %r13
	movl	32(%rdi), %esi
	movl	36(%rdi), %edi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movq	(%r15), %rbx
	movq	48(%r15), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	_GELIC_DESCR_OWNED@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, (%rax,%rcx)
	je	LBB0_1
## %bb.16:
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_dmamap_sync                ## TAILCALL
LBB0_1:
	leaq	40(%r15), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFCOUNTER_IERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_glc_add_rxbuf_dma
	movq	(%r15), %rbx
	movq	48(%r15), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movl	(%r12), %edx
	testl	%edx, (%rax,%rcx)
	jne	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	incq	%rcx
	movq	_GLC_MAX_RX_PACKETS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	movl	$0, %edx
	cmovaeq	%rdx, %rcx
	movq	%rcx, (%r15)
	movslq	%ebx, %r14
	shlq	$4, %r14
	movq	_GELIC_CMDSTAT_CHAIN_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r14)
	movl	$1, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmovnel	%ecx, %edx
	movq	_GELIC_RXERRORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax,%r14)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r12
	movq	16(%r15), %rcx
	movq	8(%rcx,%r14), %r13
	movl	8(%rax,%r14), %eax
	movq	_GELIC_RX_IPCSUM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CSUM_IP_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CSUM_IP_CHECKED@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	orl	%ecx, 8(%r13)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_GELIC_RX_TCPUDPCSUM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CSUM_PSEUDO_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CSUM_DATA_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, 8(%r13)
	movl	$65535, 12(%r13)                ## imm = 0xFFFF
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_glc_add_rxbuf
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFCOUNTER_IERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %r13
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFCOUNTER_IPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	movq	%r12, 24(%r13)
	movq	48(%r15), %rax
	movl	12(%rax,%r14), %eax
	movl	%eax, (%r13)
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_m_adj
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r12, %r13
	callq	*(%r12)
	movq	%r14, %rdi
	callq	_mtx_lock
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GELIC_DESCR_OWNED@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_13:
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movl	28(%r15), %edi
	movl	24(%r15), %esi
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	shlq	$4, %rax
	movl	(%rcx,%rax), %edx
	xorl	%ecx, %ecx
	callq	_lv1_net_start_rx_dma
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_GELIC_DESCR_OWNED,4,2          ## @GELIC_DESCR_OWNED
	.comm	_GLC_MAX_RX_PACKETS,4,2         ## @GLC_MAX_RX_PACKETS
	.comm	_GELIC_CMDSTAT_CHAIN_END,4,2    ## @GELIC_CMDSTAT_CHAIN_END
	.comm	_GELIC_RXERRORS,4,2             ## @GELIC_RXERRORS
	.comm	_IFCOUNTER_IERRORS,4,2          ## @IFCOUNTER_IERRORS
	.comm	_GELIC_RX_IPCSUM,4,2            ## @GELIC_RX_IPCSUM
	.comm	_CSUM_IP_CHECKED,4,2            ## @CSUM_IP_CHECKED
	.comm	_CSUM_IP_VALID,4,2              ## @CSUM_IP_VALID
	.comm	_GELIC_RX_TCPUDPCSUM,4,2        ## @GELIC_RX_TCPUDPCSUM
	.comm	_CSUM_DATA_VALID,4,2            ## @CSUM_DATA_VALID
	.comm	_CSUM_PSEUDO_HDR,4,2            ## @CSUM_PSEUDO_HDR
	.comm	_IFCOUNTER_IPACKETS,4,2         ## @IFCOUNTER_IPACKETS
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lv1_net_start_rx_dma error: %d\n"

	.no_dead_strip	_glc_rxintr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_rxintr
_glc_rxintr:                            ; @glc_rxintr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x20, [x0, #56]
	ldr	w0, [x0, #36]
	ldr	w1, [x19, #32]
Lloh0:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	ldr	x8, [x19, #48]
	ldr	x21, [x19]
	lsl	x9, x21, #4
	ldr	w9, [x8, x9]
Lloh3:
	adrp	x22, _GELIC_DESCR_OWNED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GELIC_DESCR_OWNED@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #32]
Lloh5:
	adrp	x8, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_bus_dmamap_sync
LBB0_2:
	mov	w24, #0
Lloh8:
	adrp	x27, _GLC_MAX_RX_PACKETS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _GLC_MAX_RX_PACKETS@GOTPAGEOFF]
Lloh10:
	adrp	x28, _GELIC_CMDSTAT_CHAIN_END@GOTPAGE
Lloh11:
	ldr	x28, [x28, _GELIC_CMDSTAT_CHAIN_END@GOTPAGEOFF]
Lloh12:
	adrp	x25, _GELIC_RXERRORS@GOTPAGE
Lloh13:
	ldr	x25, [x25, _GELIC_RXERRORS@GOTPAGEOFF]
Lloh14:
	adrp	x26, _IFCOUNTER_IERRORS@GOTPAGE
Lloh15:
	ldr	x26, [x26, _IFCOUNTER_IERRORS@GOTPAGEOFF]
	add	x9, x19, #40
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_glc_add_rxbuf_dma
	ldr	x8, [x19, #48]
	ldr	x21, [x19]
	lsl	x9, x21, #4
	ldr	w9, [x8, x9]
	ldr	w10, [x22]
	tst	w10, w9
	b.ne	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x21, #1
	ldrsw	x10, [x27]
	cmp	x9, x10
	csinc	x9, xzr, x21, hs
	str	x9, [x19]
	lsl	x9, x21, #32
	add	x9, x8, x9, asr #28
	ldr	w10, [x28]
	ldp	w11, w9, [x9]
	tst	w10, w11
	csinc	w24, w24, wzr, eq
	ldr	w10, [x25]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x22, w21
	ldr	x9, [x19, #16]
	lsl	x10, x22, #4
	add	x9, x9, x10
	ldr	x23, [x9, #8]
	add	x8, x8, x10
	ldr	w8, [x8, #8]
Lloh16:
	adrp	x9, _GELIC_RX_IPCSUM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GELIC_RX_IPCSUM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x9, _CSUM_IP_CHECKED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CSUM_IP_CHECKED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _CSUM_IP_VALID@GOTPAGE
Lloh23:
	ldr	x10, [x10, _CSUM_IP_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x23, #8]
	orr	w9, w9, w10
	str	w9, [x23, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x9, _GELIC_RX_TCPUDPCSUM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GELIC_RX_TCPUDPCSUM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x8, _CSUM_DATA_VALID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CSUM_DATA_VALID@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _CSUM_PSEUDO_HDR@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CSUM_PSEUDO_HDR@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23, #8]
	orr	w8, w8, w9
	str	w8, [x23, #8]
	mov	w8, #65535
	str	w8, [x23, #12]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_glc_add_rxbuf
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh34:
	adrp	x8, _IFCOUNTER_IPACKETS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IFCOUNTER_IPACKETS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
	str	x20, [x23, #24]
	ldr	x8, [x19, #48]
	add	x8, x8, x22, lsl #4
	ldr	w8, [x8, #12]
	str	w8, [x23]
	str	w8, [x23, #16]
	mov	x0, x23
	mov	w1, #2
	bl	_m_adj
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_mtx_unlock
	ldr	x8, [x20]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	mov	x0, x22
	bl	_mtx_lock
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh37:
	adrp	x22, _GELIC_DESCR_OWNED@GOTPAGE
Lloh38:
	ldr	x22, [x22, _GELIC_DESCR_OWNED@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	ldp	w1, w0, [x19, #32]
Lloh39:
	adrp	x8, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	cbz	w24, LBB0_17
; %bb.15:
	ldp	w1, w0, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	lsl	x9, x9, #4
	ldr	w2, [x8, x9]
	mov	w3, #0
	bl	_lv1_net_start_rx_dma
	cbz	w0, LBB0_17
; %bb.16:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_device_printf
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_GELIC_DESCR_OWNED,4,2          ; @GELIC_DESCR_OWNED
	.comm	_GLC_MAX_RX_PACKETS,4,2         ; @GLC_MAX_RX_PACKETS
	.comm	_GELIC_CMDSTAT_CHAIN_END,4,2    ; @GELIC_CMDSTAT_CHAIN_END
	.comm	_GELIC_RXERRORS,4,2             ; @GELIC_RXERRORS
	.comm	_IFCOUNTER_IERRORS,4,2          ; @IFCOUNTER_IERRORS
	.comm	_GELIC_RX_IPCSUM,4,2            ; @GELIC_RX_IPCSUM
	.comm	_CSUM_IP_CHECKED,4,2            ; @CSUM_IP_CHECKED
	.comm	_CSUM_IP_VALID,4,2              ; @CSUM_IP_VALID
	.comm	_GELIC_RX_TCPUDPCSUM,4,2        ; @GELIC_RX_TCPUDPCSUM
	.comm	_CSUM_DATA_VALID,4,2            ; @CSUM_DATA_VALID
	.comm	_CSUM_PSEUDO_HDR,4,2            ; @CSUM_PSEUDO_HDR
	.comm	_IFCOUNTER_IPACKETS,4,2         ; @IFCOUNTER_IPACKETS
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lv1_net_start_rx_dma error: %d\n"

	.no_dead_strip	_glc_rxintr
.subsections_via_symbols
