	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_set_features
_netdev_set_features:                   ## @netdev_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movq	_DMA_RX_CSUM_TCP@GOTPCREL(%rip), %rcx
	movq	_DMA_RX_CSUM_IP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	orl	8(%rbx), %edi
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	andl	8(%rbx), %edi
LBB0_3:
	movl	%edi, 8(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_KS_DMA_RX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
LBB0_5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_DMA_RX_CSUM_TCP,4,2            ## @DMA_RX_CSUM_TCP
	.comm	_DMA_RX_CSUM_IP,4,2             ## @DMA_RX_CSUM_IP
	.comm	_KS_DMA_RX_CTRL,8,3             ## @KS_DMA_RX_CTRL
	.no_dead_strip	_netdev_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_set_features
_netdev_set_features:                   ; @netdev_set_features
	.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	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _DMA_RX_CSUM_TCP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_RX_CSUM_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _DMA_RX_CSUM_IP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMA_RX_CSUM_IP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w10, w8
	tst	w9, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #8]
	orr	w0, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #8]
	bic	w0, w9, w8
LBB0_3:
	str	w0, [x19, #8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _KS_DMA_RX_CTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KS_DMA_RX_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_DMA_RX_CSUM_TCP,4,2            ; @DMA_RX_CSUM_TCP
	.comm	_DMA_RX_CSUM_IP,4,2             ; @DMA_RX_CSUM_IP
	.comm	_KS_DMA_RX_CTRL,8,3             ; @KS_DMA_RX_CTRL
	.no_dead_strip	_netdev_set_features
.subsections_via_symbols
