	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keystone_irq_handler
_keystone_irq_handler:                  ## @keystone_irq_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %edx
	movl	8(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_keystone_irq_readl
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_keystone_irq_writel
	movl	8(%r12), %edi
	movq	(%r12), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_BIT_OFS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	(%r12), %r15
	notq	%r15
	andq	%rbx, %r15
	movl	8(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_KEYSTONE_N_IRQ@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	leaq	12(%r12), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_raw_spin_lock_irqsave
	movl	%r13d, %edi
	callq	_generic_handle_irq
	movq	%rbx, %rdi
	callq	_raw_spin_unlock_irqrestore
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_KEYSTONE_N_IRQ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_BIT
	testq	%r15, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	movl	%r14d, %esi
	callq	_irq_find_mapping
	movl	%eax, %r13d
	movl	8(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_dev_warn
	jmp	LBB0_5
LBB0_7:
	movl	8(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start irq %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pending 0x%lx, mask 0x%x\n"

	.comm	_BIT_OFS,8,3                    ## @BIT_OFS
L_.str.2:                               ## @.str.2
	.asciz	"pending after mask 0x%lx\n"

	.comm	_KEYSTONE_N_IRQ,4,2             ## @KEYSTONE_N_IRQ
L_.str.3:                               ## @.str.3
	.asciz	"dispatch bit %d, virq %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"spurious irq detected hwirq %d, virq %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"end irq %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_keystone_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keystone_irq_handler
_keystone_irq_handler:                  ; @keystone_irq_handler
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_keystone_irq_readl
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_keystone_irq_writel
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh4:
	adrp	x8, _BIT_OFS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BIT_OFS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	lsr	x8, x21, x8
	ldr	x9, [x20]
	bic	x21, x8, x9
	ldr	w0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh9:
	adrp	x27, _KEYSTONE_N_IRQ@GOTPAGE
Lloh10:
	ldr	x27, [x27, _KEYSTONE_N_IRQ@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w22, #0
	add	x23, x20, #12
Lloh11:
	adrp	x24, l_.str.3@PAGE
Lloh12:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh13:
	adrp	x25, l_.str.4@PAGE
Lloh14:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_raw_spin_lock_irqsave
	mov	x0, x26
	bl	_generic_handle_irq
	mov	x0, x23
	bl	_raw_spin_unlock_irqrestore
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldr	w8, [x27]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT
	tst	x0, x21
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	mov	x1, x22
	bl	_irq_find_mapping
	mov	x26, x0
	ldr	w0, [x20, #8]
	str	x26, [sp]
	mov	x1, x24
	mov	x2, x22
	bl	_dev_dbg
	cbnz	w26, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x25
	mov	x2, x22
	mov	w3, #0
	bl	_dev_warn
	b	LBB0_2
LBB0_7:
	ldr	w0, [x20, #8]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start irq %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pending 0x%lx, mask 0x%x\n"

	.comm	_BIT_OFS,8,3                    ; @BIT_OFS
l_.str.2:                               ; @.str.2
	.asciz	"pending after mask 0x%lx\n"

	.comm	_KEYSTONE_N_IRQ,4,2             ; @KEYSTONE_N_IRQ
l_.str.3:                               ; @.str.3
	.asciz	"dispatch bit %d, virq %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"spurious irq detected hwirq %d, virq %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"end irq %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_keystone_irq_handler
.subsections_via_symbols
