	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_msi_isr
_xgene_msi_isr:                         ## @xgene_msi_isr
	.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	$40, %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, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_irq_desc_get_handler_data
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	callq	_xgene_msi_int_read
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	bsfl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_xgene_msi_ir_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=3
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	andl	%eax, %r15d
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	bsfl	%r15d, %r13d
	movq	_IRQS_PER_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r14d, %edi
	addl	%r13d, %edi
	movq	_NR_HW_IRQS@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	addl	%ebx, %edi
	callq	_hwirq_to_canonical_hwirq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_irq_find_mapping
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	%r12d, %edi
	callq	_generic_handle_irq
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	$-2, %eax
	movl	%r14d, %ecx
	roll	%cl, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	andl	%eax, %ecx
	movl	%ecx, %eax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	jmp	LBB0_1
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQS_PER_IDX,4,2               ## @IRQS_PER_IDX
	.comm	_NR_HW_IRQS,4,2                 ## @NR_HW_IRQS
	.no_dead_strip	_xgene_msi_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_msi_isr
_xgene_msi_isr:                         ; @xgene_msi_isr
	.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
	mov	x19, x0
	bl	_irq_desc_get_chip
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x1, x19
	bl	_chained_irq_enter
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_irq_desc_get_handler_data
	ldr	x21, [x0, #8]
	ldr	w22, [x0]
	mov	x0, x21
	mov	x1, x22
	bl	_xgene_msi_int_read
	cbz	w0, LBB0_10
; %bb.1:
	mov	x23, x0
	mov	w27, #1
Lloh0:
	adrp	x28, _IRQS_PER_IDX@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IRQS_PER_IDX@GOTPAGEOFF]
Lloh2:
	adrp	x20, _NR_HW_IRQS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NR_HW_IRQS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w27, w24
	bics	w23, w23, w8
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w23, LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	rbit	w8, w23
	clz	w24, w8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_xgene_msi_ir_read
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w27, w19
	bics	w25, w25, w8
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	rbit	w8, w25
	clz	w19, w8
	ldr	w8, [x28]
	madd	w8, w8, w24, w19
	ldr	w9, [x20]
	madd	w0, w8, w9, w22
	bl	_hwirq_to_canonical_hwirq
	mov	x1, x0
	ldr	w0, [x21]
	bl	_irq_find_mapping
	mov	x26, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	w26, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x26
	bl	_generic_handle_irq
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_xgene_msi_int_read
	mov	x23, x0
	cbnz	w23, LBB0_4
LBB0_10:
	ldp	x0, x1, [sp]                    ; 16-byte Folded Reload
	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
	b	_chained_irq_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQS_PER_IDX,4,2               ; @IRQS_PER_IDX
	.comm	_NR_HW_IRQS,4,2                 ; @NR_HW_IRQS
	.no_dead_strip	_xgene_msi_isr
.subsections_via_symbols
