	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_restore_interrupt_scheme
_i40e_restore_interrupt_scheme:         ## @i40e_restore_interrupt_scheme
	.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	_I40E_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movq	_I40E_FLAG_MSI_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rdi, %r14
	orl	%ecx, (%rdi)
	callq	_i40e_init_interrupt_scheme
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	4(%r14), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jg	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	callq	_i40e_setup_misc_vector
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_i40e_vsi_alloc_q_vectors
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_i40e_vsi_map_rings_to_vectors
	movl	4(%r14), %eax
	jmp	LBB0_5
LBB0_7:
	movq	_I40E_FLAG_IWARP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.8:
	movq	%r14, %rdi
	callq	_i40e_client_update_msix_info
	jmp	LBB0_15
LBB0_9:
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_15
LBB0_11:
	movl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	-8(%rax,%rbx,8), %rdi
	decq	%rbx
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_i40e_vsi_free_q_vectors
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ## @I40E_FLAG_MSIX_ENABLED
	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ## @I40E_FLAG_MSI_ENABLED
	.comm	_I40E_FLAG_IWARP_ENABLED,4,2    ## @I40E_FLAG_IWARP_ENABLED
	.no_dead_strip	_i40e_restore_interrupt_scheme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_restore_interrupt_scheme
_i40e_restore_interrupt_scheme:         ; @i40e_restore_interrupt_scheme
	.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, _I40E_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I40E_FLAG_MSI_ENABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I40E_FLAG_MSI_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
	bl	_i40e_init_interrupt_scheme
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	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
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	bl	_i40e_vsi_map_rings_to_vectors
	ldr	w8, [x19, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_i40e_vsi_alloc_q_vectors
	cbz	w0, LBB0_4
; %bb.8:
	mov	x20, x0
	b	LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	bl	_i40e_setup_misc_vector
	mov	x20, x0
	cbz	w0, LBB0_16
LBB0_11:
	cbz	w21, LBB0_1
; %bb.12:
	mov	w8, w21
	lsl	x8, x8, #3
	sub	x21, x8, #8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x21, x21, #8
	cmn	x21, #8
	b.eq	LBB0_1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_i40e_vsi_free_q_vectors
	b	LBB0_13
LBB0_16:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _I40E_FLAG_IWARP_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_FLAG_IWARP_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_i40e_client_update_msix_info
LBB0_18:
	mov	w20, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ; @I40E_FLAG_MSIX_ENABLED
	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ; @I40E_FLAG_MSI_ENABLED
	.comm	_I40E_FLAG_IWARP_ENABLED,4,2    ; @I40E_FLAG_IWARP_ENABLED
	.no_dead_strip	_i40e_restore_interrupt_scheme
.subsections_via_symbols
