	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmxnet3_quiesce_dev            ## -- Begin function vmxnet3_quiesce_dev
	.p2align	4, 0x90
_vmxnet3_quiesce_dev:                   ## @vmxnet3_quiesce_dev
	.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
	movq	%rdi, %r15
	movq	_VMXNET3_STATE_BIT_QUIESCED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r15), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMXNET3_CMD_QUIESCE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_vmxnet3_disable_all_intrs
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r14, %rdi
	callq	_napi_disable
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	4(%r15), %edi
	callq	_netif_tx_disable
	movq	$0, 8(%r15)
	movl	4(%r15), %edi
	callq	_netif_carrier_off
	movq	%r15, %rdi
	callq	_vmxnet3_tq_cleanup_all
	movq	%r15, %rdi
	callq	_vmxnet3_rq_cleanup_all
	movq	%r15, %rdi
	callq	_vmxnet3_free_irqs
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_STATE_BIT_QUIESCED,4,2 ## @VMXNET3_STATE_BIT_QUIESCED
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_QUIESCE_DEV,4,2    ## @VMXNET3_CMD_QUIESCE_DEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmxnet3_quiesce_dev            ; -- Begin function vmxnet3_quiesce_dev
	.p2align	2
_vmxnet3_quiesce_dev:                   ; @vmxnet3_quiesce_dev
	.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	x19, x0
Lloh0:
	adrp	x8, _VMXNET3_STATE_BIT_QUIESCED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMXNET3_STATE_BIT_QUIESCED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_test_and_set_bit
	cbnz	x0, LBB0_5
; %bb.1:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _VMXNET3_REG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMXNET3_REG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _VMXNET3_CMD_QUIESCE_DEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMXNET3_CMD_QUIESCE_DEV@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_vmxnet3_disable_all_intrs
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_napi_disable
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_netif_tx_disable
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_vmxnet3_tq_cleanup_all
	mov	x0, x19
	bl	_vmxnet3_rq_cleanup_all
	mov	x0, x19
	bl	_vmxnet3_free_irqs
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_STATE_BIT_QUIESCED,4,2 ; @VMXNET3_STATE_BIT_QUIESCED
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_QUIESCE_DEV,4,2    ; @VMXNET3_CMD_QUIESCE_DEV
.subsections_via_symbols
