	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_set_coalesce
_vmxnet3_set_coalesce:                  ## @vmxnet3_set_coalesce
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	24(%rax), %r12
	movq	%rax, %rdi
	callq	_VMXNET3_VERSION_GE_3
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpq	$0, 168(%rbx)
	jne	LBB0_21
## %bb.4:
	cmpq	$0, 160(%rbx)
	jne	LBB0_21
## %bb.5:
	cmpq	$0, 152(%rbx)
	jne	LBB0_21
## %bb.6:
	cmpq	$0, 144(%rbx)
	jne	LBB0_21
## %bb.7:
	cmpq	$0, 136(%rbx)
	jne	LBB0_21
## %bb.8:
	cmpq	$0, 128(%rbx)
	jne	LBB0_21
## %bb.9:
	cmpq	$0, 120(%rbx)
	jne	LBB0_21
## %bb.10:
	cmpq	$0, 112(%rbx)
	jne	LBB0_21
## %bb.11:
	cmpq	$0, 104(%rbx)
	jne	LBB0_21
## %bb.12:
	cmpq	$0, 96(%rbx)
	jne	LBB0_21
## %bb.13:
	cmpq	$0, 88(%rbx)
	jne	LBB0_21
## %bb.14:
	cmpq	$0, 80(%rbx)
	jne	LBB0_21
## %bb.15:
	cmpq	$0, 72(%rbx)
	jne	LBB0_21
## %bb.16:
	cmpq	$0, 64(%rbx)
	jne	LBB0_21
## %bb.17:
	cmpq	$0, 56(%rbx)
	jne	LBB0_21
## %bb.18:
	cmpq	$0, 48(%rbx)
	jne	LBB0_21
## %bb.19:
	cmpq	$0, 40(%rbx)
	jne	LBB0_21
## %bb.20:
	cmpq	$0, 32(%rbx)
	je	LBB0_22
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_44:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.28:
	testq	%rax, %rax
	jne	LBB0_21
## %bb.29:
	cmpq	$0, 16(%rbx)
	jne	LBB0_21
## %bb.30:
	cmpq	$0, 24(%rbx)
	jne	LBB0_21
## %bb.31:
	callq	_VMXNET3_COAL_RBC_RATE
	movq	%rax, %rbx
	movq	_VMXNET3_COAL_RBC_MIN_RATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_21
## %bb.32:
	movq	_VMXNET3_COAL_RBC_MAX_RATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jg	LBB0_21
## %bb.33:
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_VMXNET3_COALESCE_RBC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, 32(%rcx)
	movq	%rbx, 24(%rcx)
	jmp	LBB0_42
LBB0_23:
	movq	16(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_24
## %bb.34:
	testq	%rcx, %rcx
	jne	LBB0_21
## %bb.35:
	cmpq	$0, 24(%rbx)
	jne	LBB0_21
## %bb.36:
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_VMXNET3_COALESCE_ADAPT@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_24:
	testq	%rcx, %rcx
	jne	LBB0_37
## %bb.25:
	cmpq	$0, 24(%rbx)
	je	LBB0_26
LBB0_37:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	cmpq	$0, 24(%rbx)
	je	LBB0_42
LBB0_39:
	movq	_VMXNET3_COAL_STATIC_MAX_DEPTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_21
## %bb.40:
	cmpq	%rcx, 24(%rbx)
	jg	LBB0_21
## %bb.41:
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_VMXNET3_COALESCE_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, 32(%rcx)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	movq	_VMXNET3_COAL_STATIC_DEFAULT_DEPTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmoveq	%rdx, %rax
	movq	%rax, 16(%rcx)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	cmoveq	%rdx, %rax
	movq	%rax, 8(%rcx)
	movq	%rdx, (%rcx)
	jmp	LBB0_42
LBB0_26:
	movq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_VMXNET3_COALESCE_DISABLED@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, 32(%rcx)
LBB0_42:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_44
## %bb.43:
	movq	%r15, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r12)
	movl	$40, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r12)
	movl	8(%r15), %edi
	callq	_cpu_to_le64
	movl	%eax, 4(%r12)
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMXNET3_CMD_SET_COALESCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VMXNET3_COALESCE_DISABLED,4,2  ## @VMXNET3_COALESCE_DISABLED
	.comm	_VMXNET3_COAL_RBC_MIN_RATE,8,3  ## @VMXNET3_COAL_RBC_MIN_RATE
	.comm	_VMXNET3_COAL_RBC_MAX_RATE,8,3  ## @VMXNET3_COAL_RBC_MAX_RATE
	.comm	_VMXNET3_COALESCE_RBC,4,2       ## @VMXNET3_COALESCE_RBC
	.comm	_VMXNET3_COALESCE_ADAPT,4,2     ## @VMXNET3_COALESCE_ADAPT
	.comm	_VMXNET3_COAL_STATIC_MAX_DEPTH,8,3 ## @VMXNET3_COAL_STATIC_MAX_DEPTH
	.comm	_VMXNET3_COALESCE_STATIC,4,2    ## @VMXNET3_COALESCE_STATIC
	.comm	_VMXNET3_COAL_STATIC_DEFAULT_DEPTH,8,3 ## @VMXNET3_COAL_STATIC_DEFAULT_DEPTH
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_SET_COALESCE,4,2   ## @VMXNET3_CMD_SET_COALESCE
	.no_dead_strip	_vmxnet3_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_set_coalesce
_vmxnet3_set_coalesce:                  ; @vmxnet3_set_coalesce
	.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
	mov	x19, x0
	ldr	x22, [x0, #24]
	bl	_VMXNET3_VERSION_GE_3
	cbz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x21, #168]
	cbnz	x8, LBB0_19
; %bb.2:
	ldr	x8, [x21, #160]
	cbnz	x8, LBB0_19
; %bb.3:
	ldr	x8, [x21, #152]
	cbnz	x8, LBB0_19
; %bb.4:
	ldr	x8, [x21, #144]
	cbnz	x8, LBB0_19
; %bb.5:
	ldr	x8, [x21, #136]
	cbnz	x8, LBB0_19
; %bb.6:
	ldr	x8, [x21, #128]
	cbnz	x8, LBB0_19
; %bb.7:
	ldr	x8, [x21, #120]
	cbnz	x8, LBB0_19
; %bb.8:
	ldr	x8, [x21, #112]
	cbnz	x8, LBB0_19
; %bb.9:
	ldr	x8, [x21, #104]
	cbnz	x8, LBB0_19
; %bb.10:
	ldr	x8, [x21, #96]
	cbnz	x8, LBB0_19
; %bb.11:
	ldr	x8, [x21, #88]
	cbnz	x8, LBB0_19
; %bb.12:
	ldr	x8, [x21, #80]
	cbnz	x8, LBB0_19
; %bb.13:
	ldr	x8, [x21, #72]
	cbnz	x8, LBB0_19
; %bb.14:
	ldr	x8, [x21, #64]
	cbnz	x8, LBB0_19
; %bb.15:
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_19
; %bb.16:
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_19
; %bb.18:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_23
LBB0_19:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
LBB0_23:
	ldp	x0, x8, [x21]
	cbz	x0, LBB0_30
; %bb.24:
	cbnz	x8, LBB0_19
; %bb.25:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_19
; %bb.26:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_19
; %bb.27:
	bl	_VMXNET3_COAL_RBC_RATE
Lloh4:
	adrp	x8, _VMXNET3_COAL_RBC_MIN_RATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VMXNET3_COAL_RBC_MIN_RATE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_19
; %bb.28:
	mov	x21, x0
Lloh7:
	adrp	x8, _VMXNET3_COAL_RBC_MAX_RATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VMXNET3_COAL_RBC_MAX_RATE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_19
; %bb.29:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh10:
	adrp	x8, _VMXNET3_COALESCE_RBC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VMXNET3_COALESCE_RBC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #32]
	str	x21, [x9, #24]
	b	LBB0_43
LBB0_30:
	ldr	x9, [x21, #16]
	cbz	x8, LBB0_34
; %bb.31:
	cbnz	x9, LBB0_19
; %bb.32:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_19
; %bb.33:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh13:
	adrp	x8, _VMXNET3_COALESCE_ADAPT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VMXNET3_COALESCE_ADAPT@GOTPAGEOFF]
	b	LBB0_42
LBB0_34:
	cbnz	x9, LBB0_36
; %bb.35:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_41
LBB0_36:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_38
; %bb.37:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_43
LBB0_38:
Lloh15:
	adrp	x9, _VMXNET3_COAL_STATIC_MAX_DEPTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VMXNET3_COAL_STATIC_MAX_DEPTH@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_19
; %bb.39:
	ldr	x8, [x21, #24]
	cmp	x8, x9
	b.gt	LBB0_19
; %bb.40:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh18:
	adrp	x8, _VMXNET3_COALESCE_STATIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VMXNET3_COALESCE_STATIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #32]
Lloh21:
	adrp	x8, _VMXNET3_COAL_STATIC_DEFAULT_DEPTH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VMXNET3_COAL_STATIC_DEFAULT_DEPTH@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldp	x10, x11, [x21, #16]
	cmp	x10, #0
	csel	x10, x8, x10, eq
	str	x10, [x9, #16]
	cmp	x11, #0
	csel	x10, x8, x11, eq
	stp	x8, x10, [x9]
	b	LBB0_43
LBB0_41:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh24:
	adrp	x8, _VMXNET3_COALESCE_DISABLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VMXNET3_COALESCE_DISABLED@GOTPAGEOFF]
LBB0_42:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9, #32]
LBB0_43:
	str	wzr, [x19]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_22
; %bb.44:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x22]
	mov	w0, #40
	bl	_cpu_to_le32
	str	w0, [x22, #8]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le64
	str	w0, [x22, #4]
Lloh26:
	adrp	x8, _VMXNET3_REG_CMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VMXNET3_REG_CMD@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _VMXNET3_CMD_SET_COALESCE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VMXNET3_CMD_SET_COALESCE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VMXNET3_COALESCE_DISABLED,4,2  ; @VMXNET3_COALESCE_DISABLED
	.comm	_VMXNET3_COAL_RBC_MIN_RATE,8,3  ; @VMXNET3_COAL_RBC_MIN_RATE
	.comm	_VMXNET3_COAL_RBC_MAX_RATE,8,3  ; @VMXNET3_COAL_RBC_MAX_RATE
	.comm	_VMXNET3_COALESCE_RBC,4,2       ; @VMXNET3_COALESCE_RBC
	.comm	_VMXNET3_COALESCE_ADAPT,4,2     ; @VMXNET3_COALESCE_ADAPT
	.comm	_VMXNET3_COAL_STATIC_MAX_DEPTH,8,3 ; @VMXNET3_COAL_STATIC_MAX_DEPTH
	.comm	_VMXNET3_COALESCE_STATIC,4,2    ; @VMXNET3_COALESCE_STATIC
	.comm	_VMXNET3_COAL_STATIC_DEFAULT_DEPTH,8,3 ; @VMXNET3_COAL_STATIC_DEFAULT_DEPTH
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_SET_COALESCE,4,2   ; @VMXNET3_CMD_SET_COALESCE
	.no_dead_strip	_vmxnet3_set_coalesce
.subsections_via_symbols
