	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_set_features
_netvsc_set_features:                   ## @netvsc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	xorl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_rtnl_dereference
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_rtnl_dereference
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r13)
	je	LBB0_3
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	jne	LBB0_6
## %bb.7:
	movq	_NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movq	_NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED@GOTPCREL(%rip), %rax
LBB0_8:
	leaq	-56(%rbp), %rdx
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rndis_filter_set_offload_params
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	xorl	(%rcx), %r15d
	movl	%r15d, (%r12)
	movl	%eax, %ebx
LBB0_10:
	movq	%r14, %rax
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movl	%r15d, 4(%rax)
	movq	%rax, %rdi
	callq	_netdev_update_features
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED,8,3 ## @NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED
	.comm	_NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED,8,3 ## @NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED
	.no_dead_strip	_netvsc_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_set_features
_netvsc_set_features:                   ; @netvsc_set_features
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	w23, [x0]
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_rtnl_dereference
	mov	x22, x0
	ldr	w0, [x20]
	bl	_rtnl_dereference
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x20, x0
	eor	w8, w23, w19
Lloh3:
	adrp	x23, _NETIF_F_LRO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x8, _NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED@GOTPAGEOFF]
Lloh7:
	adrp	x9, _NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w10, w19
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	stp	x8, x8, [sp]
	mov	x2, sp
	mov	x0, x21
	mov	x1, x22
	bl	_rndis_filter_set_offload_params
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	eor	w19, w8, w19
	str	w19, [x21]
LBB0_7:
	cbnz	x20, LBB0_9
	b	LBB0_3
LBB0_8:
	mov	w22, #0
	cbz	x20, LBB0_3
LBB0_9:
	str	w19, [x20, #4]
	mov	x0, x20
	bl	_netdev_update_features
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED,8,3 ; @NDIS_OFFLOAD_PARAMETERS_RSC_ENABLED
	.comm	_NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED,8,3 ; @NDIS_OFFLOAD_PARAMETERS_RSC_DISABLED
	.no_dead_strip	_netvsc_set_features
.subsections_via_symbols
