	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_msi_handler
_iproc_msi_handler:                     ## @iproc_msi_handler
	.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
	movq	%rdi, %rbx
	callq	_irq_desc_get_chip
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_irq_desc_get_handler_data
	movq	8(%rax), %r13
	movl	(%rax), %r12d
	movq	_IPROC_MSI_EQ_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_iproc_msi_read_reg
	movl	%eax, %ebx
	movq	_IPROC_MSI_EQ_MASK@GOTPCREL(%rip), %r14
	andl	(%r14), %ebx
	movq	_IPROC_MSI_EQ_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_iproc_msi_read_reg
	andl	(%r14), %eax
	xorl	%r15d, %r15d
	movq	_EQ_LEN@GOTPCREL(%rip), %r14
	subl	%ebx, %eax
	jge	LBB0_3
	.p2align	4, 0x90
LBB0_2:
	movl	(%r14), %r15d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	addl	%eax, %r15d
	je	LBB0_6
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_decode_msi_hwirq
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	(%r14)
	movl	%edx, %ebx
	decl	%r15d
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_IPROC_MSI_EQ_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_iproc_msi_write_reg
	movq	_IPROC_MSI_EQ_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_iproc_msi_read_reg
	movq	_IPROC_MSI_EQ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%r15d, %r15d
	subl	%ebx, %eax
	jl	LBB0_2
	jmp	LBB0_3
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPROC_MSI_EQ_HEAD,4,2          ## @IPROC_MSI_EQ_HEAD
	.comm	_IPROC_MSI_EQ_MASK,4,2          ## @IPROC_MSI_EQ_MASK
	.comm	_IPROC_MSI_EQ_TAIL,4,2          ## @IPROC_MSI_EQ_TAIL
	.comm	_EQ_LEN,4,2                     ## @EQ_LEN
	.no_dead_strip	_iproc_msi_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_msi_handler
_iproc_msi_handler:                     ; @iproc_msi_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_irq_desc_get_chip
	mov	x20, x0
	mov	x1, x19
	bl	_chained_irq_enter
	mov	x0, x19
	bl	_irq_desc_get_handler_data
	ldr	x21, [x0, #8]
	ldr	w22, [x0]
Lloh0:
	adrp	x24, _IPROC_MSI_EQ_HEAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPROC_MSI_EQ_HEAD@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x22
	bl	_iproc_msi_read_reg
Lloh2:
	adrp	x25, _IPROC_MSI_EQ_MASK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _IPROC_MSI_EQ_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w23, w8, w0
Lloh4:
	adrp	x26, _IPROC_MSI_EQ_TAIL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _IPROC_MSI_EQ_TAIL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x22
	bl	_iproc_msi_read_reg
	ldr	w8, [x25]
	and	w8, w8, w0
Lloh6:
	adrp	x27, _EQ_LEN@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EQ_LEN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	ldr	w9, [x27]
	subs	w8, w8, w23
	csel	w9, w9, wzr, lt
	adds	w28, w9, w8
	b.eq	LBB0_4
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w28, w28, #1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_decode_msi_hwirq
	mov	x1, x0
	ldr	w0, [x21]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	add	w8, w23, #1
	ldr	w9, [x27]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
	cbnz	w28, LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_iproc_msi_write_reg
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x22
	bl	_iproc_msi_read_reg
	ldr	w8, [x25]
	and	w8, w8, w0
	b	LBB0_1
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_chained_irq_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPROC_MSI_EQ_HEAD,4,2          ; @IPROC_MSI_EQ_HEAD
	.comm	_IPROC_MSI_EQ_MASK,4,2          ; @IPROC_MSI_EQ_MASK
	.comm	_IPROC_MSI_EQ_TAIL,4,2          ; @IPROC_MSI_EQ_TAIL
	.comm	_EQ_LEN,4,2                     ; @EQ_LEN
	.no_dead_strip	_iproc_msi_handler
.subsections_via_symbols
