	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_acquire_msix_vectors
_ixgbe_acquire_msix_vectors:            ## @ixgbe_acquire_msix_vectors
	.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, %r14
	movq	_MIN_MSIX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%esi, %r15d
	jg	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r14), %edi
	movq	16(%r14), %rsi
	movl	%ebx, %edx
	callq	_pci_enable_msix
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmovlel	%r12d, %eax
	movl	%eax, %ebx
	cmpl	%r15d, %eax
	jge	LBB0_2
LBB0_4:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%r14), %ecx
	leaq	L_.str(%rip), %r8
	movq	%r14, %rdi
	callq	_netif_printk
	movq	_IXGBE_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	16(%r14), %rdi
	callq	_kfree
	movq	$0, 16(%r14)
	jmp	LBB0_6
LBB0_5:
	movq	_IXGBE_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	_NON_Q_VECTORS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, 4(%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_MSIX_COUNT,4,2             ## @MIN_MSIX_COUNT
	.comm	_hw,4,2                         ## @hw
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate MSI-X interrupts\n"

	.comm	_IXGBE_FLAG_MSIX_ENABLED,4,2    ## @IXGBE_FLAG_MSIX_ENABLED
	.comm	_NON_Q_VECTORS,8,3              ## @NON_Q_VECTORS
	.no_dead_strip	_ixgbe_acquire_msix_vectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_acquire_msix_vectors
_ixgbe_acquire_msix_vectors:            ; @ixgbe_acquire_msix_vectors
	.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, _MIN_MSIX_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_MSIX_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cmp	w21, w1
	b.gt	LBB0_4
; %bb.1:
	mov	x20, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #28]
	ldr	x1, [x19, #16]
	mov	x2, x20
	bl	_pci_enable_msix
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #0
	csel	w20, w0, wzr, gt
	cmp	w20, w21
	b.ge	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _hw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #24]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_printk
Lloh11:
	adrp	x8, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IXGBE_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh17:
	adrp	x8, _NON_Q_VECTORS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NON_Q_VECTORS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w0, w20, w8
	ldr	w1, [x19]
	bl	_min
	str	w0, [x19, #4]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_MSIX_COUNT,4,2             ; @MIN_MSIX_COUNT
	.comm	_hw,4,2                         ; @hw
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate MSI-X interrupts\n"

	.comm	_IXGBE_FLAG_MSIX_ENABLED,4,2    ; @IXGBE_FLAG_MSIX_ENABLED
	.comm	_NON_Q_VECTORS,8,3              ; @NON_Q_VECTORS
	.no_dead_strip	_ixgbe_acquire_msix_vectors
.subsections_via_symbols
