	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_msi_irq_setup
_iproc_msi_irq_setup:                   ## @iproc_msi_irq_setup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	cmpl	%esi, (%rdi)
	jle	LBB0_11
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movslq	%r14d, %r13
	leaq	(%rax,%r13,4), %rdx
	movl	(%rax,%r13,4), %edi
	movq	_iproc_msi_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_set_chained_handler_and_data
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_alloc_cpumask_var
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_cpumask_clear
	movl	-44(%rbp), %esi
	movl	%r15d, %edi
	callq	_cpumask_set_cpu
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %edi
	movl	-44(%rbp), %esi
	callq	_irq_set_affinity
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_free_cpumask_var
	testl	%r12d, %r12d
	je	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	xorl	%r12d, %r12d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	16(%rbx), %r14d
	cmpl	(%rbx), %r14d
	jl	LBB0_2
## %bb.10:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_iproc_msi_irq_free
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iproc_msi_handler,4,2          ## @iproc_msi_handler
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set affinity for IRQ%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to alloc CPU mask\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iproc_msi_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_msi_irq_setup
_iproc_msi_irq_setup:                   ; @iproc_msi_irq_setup
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _iproc_msi_handler@GOTPAGE
Lloh1:
	ldr	x24, [x24, _iproc_msi_handler@GOTPAGEOFF]
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	ldr	x26, [x0, #24]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _EINVAL@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EINVAL@GOTPAGEOFF]
	mov	x8, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	sxtw	x28, w8
	add	x2, x9, w8, sxtw #2
	ldr	w0, [x2]
	ldr	w1, [x24]
	bl	_irq_set_chained_handler_and_data
	ldr	w1, [x25]
	add	x0, sp, #12
	bl	_alloc_cpumask_var
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #12]
	bl	_cpumask_clear
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_cpumask_set_cpu
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x28, lsl #2]
	ldr	w1, [sp, #12]
	bl	_irq_set_affinity
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x28, lsl #2]
	str	x8, [sp]
	mov	x1, x22
	bl	_dev_err
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #12]
	bl	_free_cpumask_var
	cbz	w23, LBB0_7
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	mov	x1, x21
	bl	_dev_err
	ldr	w8, [x27]
	neg	w23, w8
	cbnz	w23, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #16]
	ldr	w9, [x20]
	add	w8, w28, w8
	cmp	w8, w9
	b.lt	LBB0_2
LBB0_8:
	mov	w23, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_iproc_msi_irq_free
LBB0_10:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_iproc_msi_handler,4,2          ; @iproc_msi_handler
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set affinity for IRQ%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to alloc CPU mask\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iproc_msi_irq_setup
.subsections_via_symbols
