	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vxge_alloc_msix
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vxge_alloc_msix:                       ## @vxge_alloc_msix
	.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	%rdi, %r15
	movl	4(%rdi), %eax
	leal	1(%rax,%rax), %edi
	movl	%edi, (%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	leaq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_VXGE_HW_VPATH_MSIX_ACTIVE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r15), %edi
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %r8d
	movq	8(%r15), %rsi
	xorl	%ecx, %ecx
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	imull	%ebx, %edx
	movl	%edx, -16(%rsi,%rdi,2)
	movl	%edx, -16(%rax,%rdi,2)
	movq	$0, -8(%rax,%rdi,2)
	incl	%edx
	movl	%edx, (%rsi,%rdi,2)
	movl	%edx, (%rax,%rdi,2)
	movq	$0, 8(%rax,%rdi,2)
	addq	$2, %rcx
	incl	%ebx
	addq	$16, %rdi
	cmpl	%ebx, %r8d
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VXGE_ALARM_MSIX_ID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movl	%edx, (%rsi,%rcx)
	movl	%edx, (%rax,%rcx)
	movq	$0, 8(%rax,%rcx)
	movl	(%r15), %ecx
	movl	24(%r15), %edi
	movl	$3, %edx
	callq	_pci_enable_msix_range
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r15), %edi
	callq	_pci_disable_msix
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VXGE_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_vxge_debug_init
	movq	_max_config_vpath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VXGE_USE_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdi
	callq	_kfree
	movq	16(%r15), %rdi
	callq	_kfree
	movl	%ebx, %eax
	decl	%eax
	shrl	$31, %eax
	leal	(%rbx,%rax), %r12d
	decl	%r12d
	movl	%r12d, %ebx
	sarl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vxge_close_vpaths
	movl	%ebx, 4(%r15)
	orl	$1, %r12d
	movl	%r12d, (%r15)
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_11:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VXGE_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_vxge_debug_init
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r15), %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_16:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VXGE_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_vxge_debug_init
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_kfree
LBB0_14:
	negl	%ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VXGE_ERR,4,2                   ## @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: memory allocation failed"

	.comm	_VXGE_DRIVER_NAME,4,2           ## @VXGE_DRIVER_NAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VXGE_HW_VPATH_MSIX_ACTIVE,4,2  ## @VXGE_HW_VPATH_MSIX_ACTIVE
	.comm	_VXGE_ALARM_MSIX_ID,8,3         ## @VXGE_ALARM_MSIX_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"%s: MSI-X enable failed for %d vectors, ret: %d"

	.comm	_max_config_vpath,8,3           ## @max_config_vpath
	.comm	_VXGE_USE_DEFAULT,8,3           ## @VXGE_USE_DEFAULT
	.no_dead_strip	_vxge_alloc_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_alloc_msix
_vxge_alloc_msix:                       ; @vxge_alloc_msix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0, #4]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	str	w0, [x19]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	mov	x22, x19
	str	x0, [x22, #8]!
	cbz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x24, _VXGE_HW_VPATH_MSIX_ACTIVE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VXGE_HW_VPATH_MSIX_ACTIVE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _VXGE_ALARM_MSIX_ID@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VXGE_ALARM_MSIX_ID@GOTPAGEOFF]
Lloh6:
	adrp	x26, _VXGE_ERR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VXGE_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x27, _VXGE_DRIVER_NAME@GOTPAGE
Lloh9:
	ldr	x27, [x27, _VXGE_DRIVER_NAME@GOTPAGEOFF]
Lloh10:
	adrp	x28, _VXGE_USE_DEFAULT@GOTPAGE
Lloh11:
	ldr	x28, [x28, _VXGE_USE_DEFAULT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w0, [x19]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #4]
	ldr	x1, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	mov	w10, #0
	add	x11, x0, #16
	add	x12, x1, #16
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x24]
	mul	w13, w13, w10
	stur	w13, [x12, #-16]
	stur	w13, [x11, #-16]
	stur	xzr, [x11, #-8]
	add	w13, w13, #1
	str	w13, [x12], #32
	str	w13, [x11]
	str	xzr, [x11, #8]
	add	x8, x8, #2
	add	w10, w10, #1
	add	x11, x11, #32
	cmp	w9, w10
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25]
	ubfiz	x8, x8, #4, #32
	str	w9, [x1, x8]
	add	x8, x0, x8
	str	w9, [x8]
	str	xzr, [x8, #8]
	ldr	w0, [x19, #24]
	ldr	w3, [x19]
	mov	w2, #3
	bl	_pci_enable_msix_range
	tbnz	w0, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #24]
	bl	_pci_disable_msix
	ldr	w0, [x26]
	ldr	w2, [x27]
	ldr	w8, [x19]
	stp	x8, x21, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vxge_debug_init
Lloh14:
	adrp	x8, _max_config_vpath@GOTPAGE
Lloh15:
	ldr	x8, [x8, _max_config_vpath@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	bl	_kfree
	ldr	x0, [x19, #16]
	bl	_kfree
	sub	w8, w21, #1
	cmp	w8, #0
	csel	w20, w21, w8, lt
	asr	w21, w20, #1
	stp	xzr, xzr, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_vxge_close_vpaths
	orr	w0, w20, #0x1
	stp	w0, w21, [x19]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_2
LBB0_11:
Lloh17:
	adrp	x8, _VXGE_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VXGE_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _VXGE_DRIVER_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VXGE_DRIVER_NAME@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vxge_debug_init
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_12:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	ldr	x0, [x19, #16]
	bl	_kfree
	b	LBB0_14
LBB0_13:
	ldr	w0, [x26]
	ldr	w2, [x27]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vxge_debug_init
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
LBB0_14:
	ldr	x0, [x22]
	bl	_kfree
LBB0_15:
	neg	w0, w20
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VXGE_ERR,4,2                   ; @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: memory allocation failed"

	.comm	_VXGE_DRIVER_NAME,4,2           ; @VXGE_DRIVER_NAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VXGE_HW_VPATH_MSIX_ACTIVE,4,2  ; @VXGE_HW_VPATH_MSIX_ACTIVE
	.comm	_VXGE_ALARM_MSIX_ID,8,3         ; @VXGE_ALARM_MSIX_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"%s: MSI-X enable failed for %d vectors, ret: %d"

	.comm	_max_config_vpath,8,3           ; @max_config_vpath
	.comm	_VXGE_USE_DEFAULT,8,3           ; @VXGE_USE_DEFAULT
	.no_dead_strip	_vxge_alloc_msix
.subsections_via_symbols
