	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_setup_misc_vector_for_recovery_mode
_i40e_setup_misc_vector_for_recovery_mode: ## @i40e_setup_misc_vector_for_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_I40E_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_i40e_setup_misc_vector
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_I40E_FLAG_MSI_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movq	_i40e_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movl	%ebx, %edx
	callq	_dev_info
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_i40e_enable_misc_int_causes
	movq	%r14, %rdi
	callq	_i40e_irq_dynamic_enable_icr0
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ## @I40E_FLAG_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI-X misc vector request failed, error %d\n"

	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ## @I40E_FLAG_MSI_ENABLED
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_i40e_intr,4,2                  ## @i40e_intr
L_.str.1:                               ## @.str.1
	.asciz	"MSI/legacy misc vector request failed, error %d\n"

	.no_dead_strip	_i40e_setup_misc_vector_for_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_setup_misc_vector_for_recovery_mode
_i40e_setup_misc_vector_for_recovery_mode: ; @i40e_setup_misc_vector_for_recovery_mode
	.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	w8, [x0]
Lloh0:
	adrp	x9, _I40E_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_i40e_setup_misc_vector
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x9, _I40E_FLAG_MSI_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I40E_FLAG_MSI_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w2, w10, wzr, eq
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
Lloh11:
	adrp	x8, _i40e_intr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _i40e_intr@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x2, x20
	bl	_dev_info
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_i40e_enable_misc_int_causes
	mov	x0, x19
	bl	_i40e_irq_dynamic_enable_icr0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ; @I40E_FLAG_MSIX_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI-X misc vector request failed, error %d\n"

	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ; @I40E_FLAG_MSI_ENABLED
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_i40e_intr,4,2                  ; @i40e_intr
l_.str.1:                               ; @.str.1
	.asciz	"MSI/legacy misc vector request failed, error %d\n"

	.no_dead_strip	_i40e_setup_misc_vector_for_recovery_mode
.subsections_via_symbols
