	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_set_rx_csum
_cp_set_rx_csum:                        ## @cp_set_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	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	4(%rax), %eax
	movq	_RxChkSum@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%eax, %ecx
	notl	%ebx
	andl	%eax, %ebx
	testq	%r15, %r15
	cmovnel	%ecx, %ebx
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, 4(%r14)
	movq	_CpCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_cpw16_f
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RxChkSum,4,2                   ## @RxChkSum
	.comm	_CpCmd,4,2                      ## @CpCmd
	.no_dead_strip	_cp_set_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_set_rx_csum
_cp_set_rx_csum:                        ; @cp_set_rx_csum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _RxChkSum@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RxChkSum@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w9, w8, w9
	cmp	x20, #0
	csel	w20, w9, w10, eq
	cmp	w20, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_spin_lock_irqsave
	str	w20, [x19, #4]
Lloh3:
	adrp	x8, _CpCmd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CpCmd@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_cpw16_f
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RxChkSum,4,2                   ; @RxChkSum
	.comm	_CpCmd,4,2                      ; @CpCmd
	.no_dead_strip	_cp_set_rx_csum
.subsections_via_symbols
