	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_csum
_rx_csum:                               ## @rx_csum
	.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	%rdx, %r14
	movl	%esi, %eax
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_CSUM_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_RQ_CQE_STATUS_GET
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_HINIC_RX_CSUM_HW_CHECK_NONE@GOTPCREL(%rip), %rcx
	movq	_HINIC_RX_CSUM_IPSU_OTHER_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, %edx
	jne	LBB0_5
## %bb.4:
	incl	(%r15)
	jmp	LBB0_5
LBB0_2:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSUM_ERR,4,2                   ## @CSUM_ERR
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_HINIC_RX_CSUM_HW_CHECK_NONE,4,2 ## @HINIC_RX_CSUM_HW_CHECK_NONE
	.comm	_HINIC_RX_CSUM_IPSU_OTHER_ERR,4,2 ## @HINIC_RX_CSUM_IPSU_OTHER_ERR
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.no_dead_strip	_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_csum
_rx_csum:                               ; @rx_csum
	.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	x19, x2
	mov	x8, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x9, _CSUM_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSUM_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_HINIC_RQ_CQE_STATUS_GET
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _HINIC_RX_CSUM_HW_CHECK_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HINIC_RX_CSUM_HW_CHECK_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HINIC_RX_CSUM_IPSU_OTHER_ERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HINIC_RX_CSUM_IPSU_OTHER_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_4:
Lloh12:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CSUM_ERR,4,2                   ; @CSUM_ERR
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_HINIC_RX_CSUM_HW_CHECK_NONE,4,2 ; @HINIC_RX_CSUM_HW_CHECK_NONE
	.comm	_HINIC_RX_CSUM_IPSU_OTHER_ERR,4,2 ; @HINIC_RX_CSUM_IPSU_OTHER_ERR
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.no_dead_strip	_rx_csum
.subsections_via_symbols
