	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_rx_checksum
_ena_rx_checksum:                       ## @ena_rx_checksum
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	cmpq	$0, 32(%r15)
	je	LBB0_2
LBB0_10:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	movq	_ENA_ETH_IO_L3_PROTO_IPV4@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	setne	%dil
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	12(%rbx)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movl	24(%rbx), %edi
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	leaq	L_.str(%rip), %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
LBB0_5:
	movq	8(%r15), %rax
	movq	_ENA_ETH_IO_L4_PROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_ENA_ETH_IO_L4_PROTO_UDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movl	16(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	12(%rbx)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movl	24(%rbx), %edi
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	leaq	L_.str.1(%rip), %rcx
	callq	_netif_dbg
	jmp	LBB0_10
LBB0_8:
	movl	20(%r15), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_u64_stats_update_end           ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.comm	_ENA_ETH_IO_L3_PROTO_IPV4,8,3   ## @ENA_ETH_IO_L3_PROTO_IPV4
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX IPv4 header checksum error\n"

	.comm	_ENA_ETH_IO_L4_PROTO_TCP,8,3    ## @ENA_ETH_IO_L4_PROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_UDP,8,3    ## @ENA_ETH_IO_L4_PROTO_UDP
L_.str.1:                               ## @.str.1
	.asciz	"RX L4 checksum error\n"

	.comm	_CHECKSUM_UNNECESSARY,8,3       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ena_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_rx_checksum
_ena_rx_checksum:                       ; @ena_rx_checksum
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	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
LBB0_3:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _ENA_ETH_IO_L3_PROTO_IPV4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENA_ETH_IO_L3_PROTO_IPV4@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_u64_stats_update_end
	ldr	w0, [x20, #24]
Lloh12:
	adrp	x8, _rx_err@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	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
	b	_netif_dbg
LBB0_6:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_7:
	ldr	x8, [x21, #8]
Lloh17:
	adrp	x9, _ENA_ETH_IO_L4_PROTO_TCP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENA_ETH_IO_L4_PROTO_TCP@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh20:
	adrp	x9, _ENA_ETH_IO_L4_PROTO_UDP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ENA_ETH_IO_L4_PROTO_UDP@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.8:
	ldr	w0, [x21, #16]
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_u64_stats_update_end
	ldr	w0, [x20, #24]
Lloh23:
	adrp	x8, _rx_err@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_netif_dbg
	b	LBB0_2
LBB0_10:
	ldr	w0, [x21, #20]
	bl	_likely
	cbz	x0, LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, 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
	b	_u64_stats_update_end
LBB0_12:
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_u64_stats_update_end
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.comm	_ENA_ETH_IO_L3_PROTO_IPV4,8,3   ; @ENA_ETH_IO_L3_PROTO_IPV4
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX IPv4 header checksum error\n"

	.comm	_ENA_ETH_IO_L4_PROTO_TCP,8,3    ; @ENA_ETH_IO_L4_PROTO_TCP
	.comm	_ENA_ETH_IO_L4_PROTO_UDP,8,3    ; @ENA_ETH_IO_L4_PROTO_UDP
l_.str.1:                               ; @.str.1
	.asciz	"RX L4 checksum error\n"

	.comm	_CHECKSUM_UNNECESSARY,8,3       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ena_rx_checksum
.subsections_via_symbols
