	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_setup_msix
_mic_setup_msix:                        ## @mic_setup_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	%rsi, %r14
	movq	%rdi, %r15
	movq	_MIC_MIN_MSIX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pci_enable_msix_exact
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_8:
	movq	8(%r15), %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movl	$0, (%r15)
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rbx), %edi
	movl	%edi, (%r15)
	shll	$2, %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movl	%eax, 16(%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	movq	24(%r15), %rdi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_pci_disable_msix
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MIC_MIN_MSIX,4,2               ## @MIC_MIN_MSIX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error enabling MSIx. rc = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d MSIx irqs setup\n"

	.no_dead_strip	_mic_setup_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_setup_msix
_mic_setup_msix:                        ; @mic_setup_msix
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _MIC_MIN_MSIX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MIC_MIN_MSIX@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, x0
	ldr	w2, [x23]
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x1, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x2, [x23]
	cmp	x8, x2
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pci_enable_msix_exact
	cbz	w0, LBB0_10
; %bb.5:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	str	wzr, [x19]
LBB0_9:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w8, [x23]
	str	w8, [x19]
	lsl	w0, w8, #2
	ldr	w1, [x22]
	bl	_kzalloc
	str	w0, [x19, #16]
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x19, #24]
	ldr	w2, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_9
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x20
	bl	_pci_disable_msix
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MIC_MIN_MSIX,4,2               ; @MIC_MIN_MSIX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error enabling MSIx. rc = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d MSIx irqs setup\n"

	.no_dead_strip	_mic_setup_msix
.subsections_via_symbols
