	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_set_flags
_vmxnet3_set_flags:                     ## @vmxnet3_set_flags
	.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, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	_ETH_FLAG_LRO@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	%rax, %r14
	setne	%sil
	movl	(%r15), %ecx
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	setne	%dl
	cmpb	%dl, %sil
	je	LBB0_5
## %bb.1:
	xorl	%ecx, %eax
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%cl
	movl	%eax, (%r15)
	movl	%ecx, (%r14)
	movq	_UPT1_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_3
## %bb.2:
	callq	_cpu_to_le64
	movq	8(%r14), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_3:
	notl	%edi
	callq	_cpu_to_le64
	movq	8(%r14), %rcx
	andl	%eax, (%rcx)
LBB0_4:
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMXNET3_CMD_UPDATE_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_FLAG_LRO,4,2               ## @ETH_FLAG_LRO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_UPT1_F_LRO,4,2                 ## @UPT1_F_LRO
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_UPDATE_FEATURE,4,2 ## @VMXNET3_CMD_UPDATE_FEATURE
	.no_dead_strip	_vmxnet3_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_set_flags
_vmxnet3_set_flags:                     ; @vmxnet3_set_flags
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _ETH_FLAG_LRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_FLAG_LRO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w21
	cset	w11, ne
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _NETIF_F_LRO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETIF_F_LRO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w12, ne
	cmp	w11, w12
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	cmp	w8, #0
	cset	w11, ne
	eor	w9, w10, w9
	str	w9, [x20]
	str	w11, [x0]
Lloh6:
	adrp	x9, _UPT1_F_LRO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UPT1_F_LRO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_cpu_to_le64
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	orr	w9, w9, w0
	b	LBB0_4
LBB0_3:
	mvn	w0, w0
	bl	_cpu_to_le64
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	and	w9, w9, w0
LBB0_4:
	str	w9, [x8]
Lloh9:
	adrp	x8, _VMXNET3_REG_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMXNET3_REG_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _VMXNET3_CMD_UPDATE_FEATURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMXNET3_CMD_UPDATE_FEATURE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_FLAG_LRO,4,2               ; @ETH_FLAG_LRO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_UPT1_F_LRO,4,2                 ; @UPT1_F_LRO
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_UPDATE_FEATURE,4,2 ; @VMXNET3_CMD_UPDATE_FEATURE
	.no_dead_strip	_vmxnet3_set_flags
.subsections_via_symbols
