	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_close
_iavf_close:                            ## @iavf_close
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	___IAVF_DOWN_PENDING@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jle	LBB0_8
## %bb.1:
	movq	%r15, %rbx
	addq	$12, %rbx
	movq	___IAVF_IN_CRITICAL_TASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	jmp	LBB0_3
LBB0_4:
	movq	___IAVF_VSI_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r15), %esi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_CLIENT_ENABLED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_IAVF_FLAG_CLIENT_NEEDS_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_6:
	movq	%r15, %rdi
	callq	_iavf_down
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_iavf_free_traffic_irqs
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	8(%r15), %r12d
	movq	(%r15), %rax
	movq	___IAVF_DOWN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___IAVF_DOWN_PENDING,8,3        ## @__IAVF_DOWN_PENDING
	.comm	___IAVF_IN_CRITICAL_TASK,4,2    ## @__IAVF_IN_CRITICAL_TASK
	.comm	___IAVF_VSI_DOWN,4,2            ## @__IAVF_VSI_DOWN
	.comm	_IAVF_FLAG_CLIENT_NEEDS_CLOSE,4,2 ## @IAVF_FLAG_CLIENT_NEEDS_CLOSE
	.comm	___IAVF_DOWN,8,3                ## @__IAVF_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device resources not yet released\n"

	.no_dead_strip	_iavf_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iavf_close
_iavf_close:                            ; @iavf_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x22, ___IAVF_DOWN_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___IAVF_DOWN_PENDING@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.1:
	mov	x20, x0
	add	x21, x0, #12
Lloh2:
	adrp	x23, ___IAVF_IN_CRITICAL_TASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, ___IAVF_IN_CRITICAL_TASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	b	LBB0_2
LBB0_4:
Lloh4:
	adrp	x8, ___IAVF_VSI_DOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___IAVF_VSI_DOWN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	_set_bit
	mov	x0, x20
	bl	_CLIENT_ENABLED
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _IAVF_FLAG_CLIENT_NEEDS_CLOSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IAVF_FLAG_CLIENT_NEEDS_CLOSE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_6:
	mov	x0, x20
	bl	_iavf_down
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x20
	bl	_iavf_free_traffic_irqs
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	ldr	w21, [x20, #8]
	ldr	x8, [x20]
Lloh10:
	adrp	x9, ___IAVF_DOWN@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___IAVF_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w20, eq
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_wait_event_timeout
	cbnz	w0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___IAVF_DOWN_PENDING,8,3        ; @__IAVF_DOWN_PENDING
	.comm	___IAVF_IN_CRITICAL_TASK,4,2    ; @__IAVF_IN_CRITICAL_TASK
	.comm	___IAVF_VSI_DOWN,4,2            ; @__IAVF_VSI_DOWN
	.comm	_IAVF_FLAG_CLIENT_NEEDS_CLOSE,4,2 ; @IAVF_FLAG_CLIENT_NEEDS_CLOSE
	.comm	___IAVF_DOWN,8,3                ; @__IAVF_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device resources not yet released\n"

	.no_dead_strip	_iavf_close
.subsections_via_symbols
