	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_handle_msi_irq              ## -- Begin function dw_handle_msi_irq
	.p2align	4, 0x90
_dw_handle_msi_irq:                     ## @dw_handle_msi_irq
	.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	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movq	_MAX_MSI_IRQS_PER_CTRL@GOTPCREL(%rip), %r14
	cltd
	idivl	(%r14)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	leaq	-52(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_MSI_REG_CTRL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r15d, %rsi
	imulq	%rax, %rsi
	movq	_PCIE_MSI_INTR0_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	movq	%r12, %rcx
	callq	_dw_pcie_rd_own_conf
	cmpl	$0, -52(%rbp)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_find_next_bit
	movl	(%r14), %esi
	cmpl	%esi, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r13), %edi
	imull	%r15d, %esi
	addl	%ebx, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	incl	%ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	movl	(%r14), %esi
	cmpl	%esi, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MAX_MSI_IRQS_PER_CTRL,4,2      ## @MAX_MSI_IRQS_PER_CTRL
	.comm	_PCIE_MSI_INTR0_STATUS,8,3      ## @PCIE_MSI_INTR0_STATUS
	.comm	_MSI_REG_CTRL_BLOCK_SIZE,4,2    ## @MSI_REG_CTRL_BLOCK_SIZE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_handle_msi_irq              ; -- Begin function dw_handle_msi_irq
	.p2align	2
_dw_handle_msi_irq:                     ; @dw_handle_msi_irq
	.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
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w8, [x0]
Lloh3:
	adrp	x22, _MAX_MSI_IRQS_PER_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_MSI_IRQS_PER_CTRL@GOTPAGEOFF]
	ldr	w9, [x22]
	sdiv	w23, w8, w9
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	w24, #0
Lloh5:
	adrp	x25, _PCIE_MSI_INTR0_STATUS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PCIE_MSI_INTR0_STATUS@GOTPAGEOFF]
Lloh7:
	adrp	x26, _MSI_REG_CTRL_BLOCK_SIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MSI_REG_CTRL_BLOCK_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x27, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x27, [x27, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	cmp	w24, w23
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x25]
	ldrsw	x9, [x26]
	sxtw	x10, w24
	madd	x1, x9, x10, x8
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_dw_pcie_rd_own_conf
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [x27]
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #0
	bl	_find_next_bit
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20, #4]
	madd	w1, w8, w24, w21
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	add	w2, w21, #1
	ldr	w1, [x22]
	add	x0, sp, #12
	bl	_find_next_bit
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MAX_MSI_IRQS_PER_CTRL,4,2      ; @MAX_MSI_IRQS_PER_CTRL
	.comm	_PCIE_MSI_INTR0_STATUS,8,3      ; @PCIE_MSI_INTR0_STATUS
	.comm	_MSI_REG_CTRL_BLOCK_SIZE,4,2    ; @MSI_REG_CTRL_BLOCK_SIZE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
