	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_prepare_for_reset
_fm10k_prepare_for_reset:               ## @fm10k_prepare_for_reset
	.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, %rbx
	movq	16(%rdi), %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_in_interrupt
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_netif_trans_update
	movq	___FM10K_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_fm10k_stop_macvlan_task
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	8(%rbx), %edi
	callq	_fm10k_iov_suspend
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_fm10k_close
LBB0_3:
	movq	%rbx, %rdi
	callq	_fm10k_mbx_free_irq
	movq	%rbx, %rdi
	callq	_fm10k_clear_queueing_scheme
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	addq	%rcx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	$1, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___FM10K_RESETTING,4,2          ## @__FM10K_RESETTING
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_fm10k_prepare_for_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_prepare_for_reset
_fm10k_prepare_for_reset:               ; @fm10k_prepare_for_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
	bl	_in_interrupt
	bl	_WARN_ON
	mov	x0, x20
	bl	_netif_trans_update
Lloh0:
	adrp	x8, ___FM10K_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___FM10K_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_fm10k_stop_macvlan_task
	bl	_rtnl_lock
	ldr	w0, [x19, #8]
	bl	_fm10k_iov_suspend
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_fm10k_close
LBB0_4:
	mov	x0, x19
	bl	_fm10k_mbx_free_irq
	mov	x0, x19
	bl	_fm10k_clear_queueing_scheme
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	mov	w10, #10
	madd	x8, x9, x10, x8
	str	x8, [x19]
	bl	_rtnl_unlock
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	___FM10K_RESETTING,4,2          ; @__FM10K_RESETTING
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_fm10k_prepare_for_reset
.subsections_via_symbols
