	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_init_interrupt_scheme
_i40e_init_interrupt_scheme:            ## @i40e_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_I40E_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_i40e_init_msix
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	_I40E_FLAG_IWARP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r15), %eax
	movq	_I40E_FLAG_RSS_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_DCB_CAPABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_DCB_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_SRIOV_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_FD_SB_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_FD_ATR_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I40E_FLAG_VMDQ_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_I40E_FLAG_FD_SB_INACTIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_i40e_determine_queue_usage
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	(%rbx), %eax
	testl	%eax, (%r15)
	jne	LBB0_10
## %bb.5:
	movq	_I40E_FLAG_MSI_ENABLED@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	16(%rbx), %rdi
	callq	_pci_enable_msi
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_8:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%r12), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
LBB0_9:
	movl	$1, %r14d
LBB0_10:
	movq	_I40E_FLAG_MSI_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r15), %ecx
	testl	%eax, %ecx
	jne	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	leal	4(,%r14,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	%r14d, (%rax)
	movq	$0, 8(%rax)
	movq	_I40E_PILE_VALID_BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decq	%rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_i40e_get_lump
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ## @I40E_FLAG_MSIX_ENABLED
	.comm	_I40E_FLAG_IWARP_ENABLED,4,2    ## @I40E_FLAG_IWARP_ENABLED
	.comm	_I40E_FLAG_RSS_ENABLED,4,2      ## @I40E_FLAG_RSS_ENABLED
	.comm	_I40E_FLAG_DCB_CAPABLE,4,2      ## @I40E_FLAG_DCB_CAPABLE
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ## @I40E_FLAG_DCB_ENABLED
	.comm	_I40E_FLAG_SRIOV_ENABLED,4,2    ## @I40E_FLAG_SRIOV_ENABLED
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ## @I40E_FLAG_FD_SB_ENABLED
	.comm	_I40E_FLAG_FD_ATR_ENABLED,4,2   ## @I40E_FLAG_FD_ATR_ENABLED
	.comm	_I40E_FLAG_VMDQ_ENABLED,4,2     ## @I40E_FLAG_VMDQ_ENABLED
	.comm	_I40E_FLAG_FD_SB_INACTIVE,4,2   ## @I40E_FLAG_FD_SB_INACTIVE
	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ## @I40E_FLAG_MSI_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSI-X not available, trying MSI\n"

L_.str.1:                               ## @.str.1
	.asciz	"MSI init failed - %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"MSI-X and MSI not available, falling back to Legacy IRQ\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40E_PILE_VALID_BIT,8,3        ## @I40E_PILE_VALID_BIT
	.no_dead_strip	_i40e_init_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_init_interrupt_scheme
_i40e_init_interrupt_scheme:            ; @i40e_init_interrupt_scheme
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _I40E_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I40E_FLAG_MSIX_ENABLED@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_i40e_init_msix
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _I40E_FLAG_IWARP_ENABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I40E_FLAG_IWARP_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _I40E_FLAG_RSS_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I40E_FLAG_RSS_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _I40E_FLAG_DCB_CAPABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I40E_FLAG_DCB_CAPABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _I40E_FLAG_DCB_ENABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I40E_FLAG_DCB_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _I40E_FLAG_SRIOV_ENABLED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I40E_FLAG_SRIOV_ENABLED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _I40E_FLAG_FD_SB_ENABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I40E_FLAG_FD_SB_ENABLED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _I40E_FLAG_FD_ATR_ENABLED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I40E_FLAG_FD_ATR_ENABLED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _I40E_FLAG_VMDQ_ENABLED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _I40E_FLAG_VMDQ_ENABLED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh26:
	adrp	x9, _I40E_FLAG_FD_SB_INACTIVE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _I40E_FLAG_FD_SB_INACTIVE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_i40e_determine_queue_usage
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x21]
Lloh29:
	adrp	x22, _I40E_FLAG_MSI_ENABLED@GOTPAGE
Lloh30:
	ldr	x22, [x22, _I40E_FLAG_MSI_ENABLED@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.5:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.6:
	ldr	x0, [x19, #16]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19, #16]
	bl	_pci_enable_msi
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	w8, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #16]
	str	x0, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	mov	w20, #1
LBB0_10:
	ldr	w9, [x21]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x0, [x19, #16]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_12:
	lsl	w8, w20, #2
	add	w0, w8, #4
Lloh37:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.13:
	mov	x1, x0
	str	w20, [x0]
	str	xzr, [x0, #8]
Lloh40:
	adrp	x8, _I40E_PILE_VALID_BIT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _I40E_PILE_VALID_BIT@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	sub	x3, x8, #1
	mov	x0, x19
	mov	w2, #1
	bl	_i40e_get_lump
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ; @I40E_FLAG_MSIX_ENABLED
	.comm	_I40E_FLAG_IWARP_ENABLED,4,2    ; @I40E_FLAG_IWARP_ENABLED
	.comm	_I40E_FLAG_RSS_ENABLED,4,2      ; @I40E_FLAG_RSS_ENABLED
	.comm	_I40E_FLAG_DCB_CAPABLE,4,2      ; @I40E_FLAG_DCB_CAPABLE
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ; @I40E_FLAG_DCB_ENABLED
	.comm	_I40E_FLAG_SRIOV_ENABLED,4,2    ; @I40E_FLAG_SRIOV_ENABLED
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ; @I40E_FLAG_FD_SB_ENABLED
	.comm	_I40E_FLAG_FD_ATR_ENABLED,4,2   ; @I40E_FLAG_FD_ATR_ENABLED
	.comm	_I40E_FLAG_VMDQ_ENABLED,4,2     ; @I40E_FLAG_VMDQ_ENABLED
	.comm	_I40E_FLAG_FD_SB_INACTIVE,4,2   ; @I40E_FLAG_FD_SB_INACTIVE
	.comm	_I40E_FLAG_MSI_ENABLED,4,2      ; @I40E_FLAG_MSI_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSI-X not available, trying MSI\n"

l_.str.1:                               ; @.str.1
	.asciz	"MSI init failed - %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"MSI-X and MSI not available, falling back to Legacy IRQ\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40E_PILE_VALID_BIT,8,3        ; @I40E_PILE_VALID_BIT
	.no_dead_strip	_i40e_init_interrupt_scheme
.subsections_via_symbols
