	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8152_rx_csum
_r8152_rx_csum:                         ## @r8152_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movl	4(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movq	_RD_IPV4_CS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_IPF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	(%r12), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_RD_IPV6_CS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_10
LBB0_5:
	movq	_RD_UDP_CS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_UDPF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_7:
	movq	_RD_TCP_CS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_10
## %bb.8:
	movq	_TCPF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_10
LBB0_9:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RD_IPV4_CS,4,2                 ## @RD_IPV4_CS
	.comm	_IPF,4,2                        ## @IPF
	.comm	_RD_UDP_CS,4,2                  ## @RD_UDP_CS
	.comm	_UDPF,4,2                       ## @UDPF
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_RD_TCP_CS,4,2                  ## @RD_TCP_CS
	.comm	_TCPF,4,2                       ## @TCPF
	.comm	_RD_IPV6_CS,4,2                 ## @RD_IPV6_CS
	.no_dead_strip	_r8152_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8152_rx_csum
_r8152_rx_csum:                         ; @r8152_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
Lloh0:
	adrp	x22, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHECKSUM_NONE@GOTPAGEOFF]
	ldr	w19, [x22]
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETIF_F_RXCSU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UM_UNNECESSARY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w19, w9, w19, eq
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, 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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RD_IPV4_CS,4,2                 ; @RD_IPV4_CS
	.comm	_IPF,4,2                        ; @IPF
	.comm	_RD_UDP_CS,4,2                  ; @RD_UDP_CS
	.comm	_UDPF,4,2                       ; @UDPF
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_RD_TCP_CS,4,2                  ; @RD_TCP_CS
	.comm	_TCPF,4,2                       ; @TCPF
	.comm	_RD_IPV6_CS,4,2                 ; @RD_IPV6_CS
	.no_dead_strip	_r8152_rx_csum
.subsections_via_symbols
