	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_set_features
_cp_set_features:                       ## @cp_set_features
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	xorl	%r15d, %eax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_RxChkSum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, (%rbx)
	je	LBB0_3
## %bb.2:
	orl	4(%r14), %esi
	jmp	LBB0_4
LBB0_3:
	notl	%esi
	andl	4(%r14), %esi
LBB0_4:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movq	_RxVlanOn@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, (%rcx)
	je	LBB0_6
## %bb.5:
	orl	%eax, %esi
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	andl	%eax, %esi
LBB0_7:
	movl	%esi, 4(%r14)
	movq	_CpCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpw16_f
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RxChkSum,4,2                   ## @RxChkSum
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RxVlanOn,4,2                   ## @RxVlanOn
	.comm	_CpCmd,4,2                      ## @CpCmd
	.no_dead_strip	_cp_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_set_features
_cp_set_features:                       ; @cp_set_features
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x21]
	eor	w8, w8, w20
Lloh0:
	adrp	x21, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETIF_F_RXCSUM@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	w9, [x21]
Lloh2:
	adrp	x8, _RxChkSum@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RxChkSum@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w9, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
LBB0_4:
Lloh5:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
Lloh8:
	adrp	x9, _RxVlanOn@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RxVlanOn@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w10, w20
	b.eq	LBB0_6
; %bb.5:
	orr	w1, w8, w9
	b	LBB0_7
LBB0_6:
	bic	w1, w8, w9
LBB0_7:
	str	w1, [x19, #4]
Lloh11:
	adrp	x8, _CpCmd@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CpCmd@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cpw16_f
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RxChkSum,4,2                   ; @RxChkSum
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RxVlanOn,4,2                   ; @RxVlanOn
	.comm	_CpCmd,4,2                      ; @CpCmd
	.no_dead_strip	_cp_set_features
.subsections_via_symbols
