	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_process_rxbuf
_netxen_process_rxbuf:                  ## @netxen_process_rxbuf
	.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	%rcx, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %r13
	movl	16(%rdi), %edi
	leaq	(%rdx,%rdx,2), %rbx
	movl	16(%r13,%rbx,8), %eax
	movl	(%rsi), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	8(%r13,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%r14)
	setne	%al
	movq	_STATUS_CKSUM_OK@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	leaq	8(%r13,%rbx,8), %r15
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	incl	(%r14)
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	$0, (%r15)
LBB0_5:
	movq	_NETXEN_BUFFER_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13,%rbx,8)
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_STATUS_CKSUM_OK,8,3            ## @STATUS_CKSUM_OK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_NETXEN_BUFFER_FREE,4,2         ## @NETXEN_BUFFER_FREE
	.no_dead_strip	_netxen_process_rxbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_process_rxbuf
_netxen_process_rxbuf:                  ; @netxen_process_rxbuf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x0
	ldr	x23, [x1, #8]
	ldr	w0, [x0, #16]
	mov	w8, #24
	madd	x24, x2, x8, x23
	ldr	w8, [x24, #16]
	ldr	w2, [x1]
Lloh0:
	adrp	x9, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x1, x8
	bl	_pci_unmap_single
	ldr	x20, [x24, #8]!
	cbz	x20, LBB0_5
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, #0
Lloh3:
	adrp	x8, _STATUS_CKSUM_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_CKSUM_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x22, #0, ne
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh6:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x20]
	str	xzr, [x24]
LBB0_5:
Lloh10:
	adrp	x8, _NETXEN_BUFFER_FREE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETXEN_BUFFER_FREE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #24
	mul	x9, x19, x9
	str	w8, [x23, x9]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_STATUS_CKSUM_OK,8,3            ; @STATUS_CKSUM_OK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_NETXEN_BUFFER_FREE,4,2         ; @NETXEN_BUFFER_FREE
	.no_dead_strip	_netxen_process_rxbuf
.subsections_via_symbols
