	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_init_recovery_mode
_i40e_init_recovery_mode:               ## @i40e_init_recovery_mode
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_pci_save_state
	leaq	16(%rbx), %r14
	movq	_i40e_service_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	leaq	52(%rbx), %rdi
	movq	_i40e_service_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	___I40E_SERVICE_SCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_i40e_init_interrupt_scheme
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_i40e_reset_interrupt_capability
	movq	%r14, %rdi
	callq	_del_timer_sync
	movq	%r15, %rdi
	callq	_i40e_shutdown_adminq
	movl	(%r15), %edi
	callq	_iounmap
	movl	12(%rbx), %edi
	callq	_pci_disable_pcie_error_reporting
	movl	12(%rbx), %edi
	callq	_pci_release_mem_regions
	movl	12(%rbx), %edi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	callq	_kfree
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	40(%rbx), %rax
	movq	_I40E_MIN_VSI_ALLOC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	cmovgq	%rax, %rdi
	movq	%rdi, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i40e_vsi_mem_alloc
	xorl	%r12d, %r12d
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	%eax, 8(%rbx)
	movq	32(%rbx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.6:
	movl	$1, (%r13)
	movq	%r13, %rdi
	callq	_i40e_config_netdev
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movl	8(%r13), %edi
	callq	_register_netdev
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	movl	$1, 4(%r13)
	movq	%rbx, %rdi
	callq	_i40e_dbg_pf_init
	movq	%rbx, %rdi
	callq	_i40e_setup_misc_vector_for_recovery_mode
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	callq	_i40e_send_version
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	24(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_round_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mod_timer
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_i40e_service_timer,4,2         ## @i40e_service_timer
	.comm	_HZ,8,3                         ## @HZ
	.comm	_i40e_service_task,4,2          ## @i40e_service_task
	.comm	___I40E_SERVICE_SCHED,4,2       ## @__I40E_SERVICE_SCHED
	.comm	_I40E_MIN_VSI_ALLOC,8,3         ## @I40E_MIN_VSI_ALLOC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40E_VSI_MAIN,4,2              ## @I40E_VSI_MAIN
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_i40e_init_recovery_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_init_recovery_mode
_i40e_init_recovery_mode:               ; @i40e_init_recovery_mode
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_pci_save_state
	add	x20, x19, #16
Lloh0:
	adrp	x8, _i40e_service_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i40e_service_timer@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	add	x0, x19, #52
Lloh6:
	adrp	x8, _i40e_service_task@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i40e_service_task@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh9:
	adrp	x8, ___I40E_SERVICE_SCHED@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___I40E_SERVICE_SCHED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_clear_bit
	mov	x0, x19
	bl	_i40e_init_interrupt_scheme
	mov	x22, x0
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_i40e_reset_interrupt_capability
	mov	x0, x20
	bl	_del_timer_sync
	mov	x0, x21
	bl	_i40e_shutdown_adminq
	ldr	w0, [x21]
	bl	_iounmap
	ldr	w0, [x19, #12]
	bl	_pci_disable_pcie_error_reporting
	ldr	w0, [x19, #12]
	bl	_pci_release_mem_regions
	ldr	w0, [x19, #12]
	bl	_pci_disable_device
	mov	x0, x19
	bl	_kfree
LBB0_2:
	mov	x0, x22
	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
LBB0_3:
	ldr	x8, [x19, #40]
Lloh12:
	adrp	x9, _I40E_MIN_VSI_ALLOC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_MIN_VSI_ALLOC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x0, x8, x9, gt
	str	x0, [x19]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.4:
Lloh18:
	adrp	x8, _I40E_VSI_MAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i40e_vsi_mem_alloc
	tbnz	w0, #31, LBB0_10
; %bb.5:
	str	w0, [x19, #8]
	ldr	x8, [x19, #32]
	ldr	x23, [x8, w0, uxtw #3]
	cbz	x23, LBB0_10
; %bb.6:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x23
	bl	_i40e_config_netdev
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.7:
	ldr	w0, [x23, #8]
	bl	_register_netdev
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.8:
	mov	w8, #1
	str	w8, [x23, #4]
	mov	x0, x19
	bl	_i40e_dbg_pf_init
	mov	x0, x19
	bl	_i40e_setup_misc_vector_for_recovery_mode
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.9:
	mov	x0, x19
	bl	_i40e_send_version
Lloh21:
	adrp	x8, _jiffies@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	bl	_round_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_mod_timer
	b	LBB0_2
LBB0_10:
	mov	w22, #0
	b	LBB0_1
LBB0_11:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_i40e_service_timer,4,2         ; @i40e_service_timer
	.comm	_HZ,8,3                         ; @HZ
	.comm	_i40e_service_task,4,2          ; @i40e_service_task
	.comm	___I40E_SERVICE_SCHED,4,2       ; @__I40E_SERVICE_SCHED
	.comm	_I40E_MIN_VSI_ALLOC,8,3         ; @I40E_MIN_VSI_ALLOC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40E_VSI_MAIN,4,2              ; @I40E_VSI_MAIN
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_i40e_init_recovery_mode
.subsections_via_symbols
