	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_save_msix_info
_i40iw_save_msix_info:                  ## @i40iw_save_msix_info
	.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
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%eax, (%rdi)
	leal	(%rax,%rax,8), %ecx
	leal	(%rcx,%rcx,2), %ecx
	leal	(%rax,%rcx), %edi
	addl	$15, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movslq	(%r12), %r13
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, 16(%r12)
	movq	8(%rax,%rcx,4), %r14
	movq	%r13, (%rax,%rcx,4)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	cmpq	%r13, %rax
	jb	LBB0_4
## %bb.3:
	movl	$1, 4(%r12)
LBB0_4:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.5:
	movq	8(%r15), %rcx
	movq	8(%r12), %r10
	movq	_I40E_QUEUE_INVALID_IDX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movl	4(%rcx), %edi
	movl	%edi, 4(%r10)
	movl	(%rcx), %esi
	movl	%esi, 8(%r10)
	movl	$0, (%r10)
	movq	$0, 16(%r14)
	movl	4(%r12), %r9d
	xorl	%ebx, %ebx
	testl	%r9d, %r9d
	movl	$0, %esi
	cmoveq	%r8, %rsi
	movq	%rsi, 8(%r14)
	movl	$3, (%r14)
	movl	%edi, 4(%r14)
	cmpl	$1, %eax
	je	LBB0_12
## %bb.6:
	xorl	%edi, %edi
	testl	%r9d, %r9d
	setne	%dil
	addq	$12, %rcx
	decq	%rax
	movl	$20, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	movl	%edx, -4(%r10,%rsi)
	movl	-4(%rcx), %ebx
	movl	%ebx, (%r10,%rsi)
	movl	%edi, -8(%r10,%rsi)
	movq	%r8, (%r14,%rsi,2)
	movq	%rdi, -8(%r14,%rsi,2)
	movl	$3, -16(%r14,%rsi,2)
	movl	%edx, -12(%r14,%rsi,2)
	addq	$8, %rcx
	addq	$12, %rsi
	incq	%rdi
	decq	%rax
	jne	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_err
	movq	_I40IW_ERR_CONFIG@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_I40IW_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No MSI-X vectors\n"

	.comm	_I40IW_ERR_CONFIG,4,2           ## @I40IW_ERR_CONFIG
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ## @I40IW_ERR_NO_MEMORY
	.comm	_I40E_QUEUE_INVALID_IDX,8,3     ## @I40E_QUEUE_INVALID_IDX
	.no_dead_strip	_i40iw_save_msix_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_save_msix_info
_i40iw_save_msix_info:                  ; @i40iw_save_msix_info
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	w8, [x0]
	mov	w9, #28
	orr	w10, wzr, #0xf
	madd	w0, w8, w9, w10
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.2:
	ldrsw	x22, [x19]
	mov	w8, #12
	madd	x8, x22, x8, x0
	str	x8, [x19, #16]
	ldr	x21, [x8, #8]
	str	x22, [x8]
	bl	_num_online_cpus
	cmp	x0, x22
	b.lo	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_4:
	ldr	w13, [x19]
	cmp	w13, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w0, #0
	ldr	x12, [x20, #8]
	ldr	x14, [x19, #8]
Lloh3:
	adrp	x8, _I40E_QUEUE_INVALID_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_QUEUE_INVALID_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	w9, w11, [x12]
	str	w9, [x14, #8]
	ldr	w10, [x19, #4]
	cmp	w10, #0
	csel	x9, x8, xzr, eq
	stp	x9, xzr, [x21, #8]
	mov	w9, #3
	stp	w9, w11, [x21]
	stp	wzr, w11, [x14]
	cmp	w13, #1
	b.eq	LBB0_12
; %bb.6:
	cmp	w10, #0
	cset	w10, ne
	add	x11, x21, #40
	add	x12, x12, #12
	add	x14, x14, #20
	sub	x13, x13, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w16, w15, [x12, #-4]
	str	w16, [x14]
	stp	x10, x8, [x11, #-8]
	stp	w9, w15, [x11, #-16]
	add	x11, x11, #24
	stp	w10, w15, [x14, #-8]
	add	x12, x12, #8
	add	x10, x10, #1
	add	x14, x14, #12
	subs	x13, x13, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
Lloh8:
	adrp	x8, _I40IW_ERR_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_ERR_CONFIG@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _I40IW_ERR_NO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I40IW_ERR_NO_MEMORY@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No MSI-X vectors\n"

	.comm	_I40IW_ERR_CONFIG,4,2           ; @I40IW_ERR_CONFIG
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_I40IW_ERR_NO_MEMORY,4,2        ; @I40IW_ERR_NO_MEMORY
	.comm	_I40E_QUEUE_INVALID_IDX,8,3     ; @I40E_QUEUE_INVALID_IDX
	.no_dead_strip	_i40iw_save_msix_info
.subsections_via_symbols
