	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpmc_handle_irq
_gpmc_handle_irq:                       ## @gpmc_handle_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
	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
	movq	_GPMC_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpmc_read_reg
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.3:
	movq	_GPMC_NR_NAND_IRQS@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	callq	_generic_handle_irq
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movb	$8, %cl
	subb	%al, %cl
	cmpl	%eax, %ebx
	movzbl	%cl, %ecx
	movl	$0, %eax
	cmovnel	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r15d
	movl	%ebx, %edi
	callq	_BIT
	testl	%eax, %r15d
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_gpmc_irq_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_irq_find_mapping
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_9:
	movq	_GPMC_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_gpmc_write_reg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPMC_IRQSTATUS,4,2             ## @GPMC_IRQSTATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_GPMC_NR_NAND_IRQS,4,2          ## @GPMC_NR_NAND_IRQS
	.comm	_gpmc_irq_domain,4,2            ## @gpmc_irq_domain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious irq detected hwirq %d, virq %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpmc_handle_irq
_gpmc_handle_irq:                       ; @gpmc_handle_irq
	.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, x1
Lloh0:
	adrp	x24, _GPMC_IRQSTATUS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GPMC_IRQSTATUS@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_gpmc_read_reg
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w21, #0
Lloh2:
	adrp	x25, _GPMC_NR_NAND_IRQS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GPMC_NR_NAND_IRQS@GOTPAGEOFF]
	mov	w26, #8
Lloh4:
	adrp	x27, _gpmc_irq_domain@GOTPAGE
Lloh5:
	ldr	x27, [x27, _gpmc_irq_domain@GOTPAGEOFF]
	mov	x28, x20
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_generic_handle_irq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	sub	w9, w26, w8
	cmp	w21, w8
	csel	w8, w9, wzr, eq
	asr	w28, w28, w8
	mov	x0, x21
	bl	_BIT
	tst	w28, w0
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	bl	_irq_find_mapping
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_dev_warn
	b	LBB0_3
LBB0_8:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_gpmc_write_reg
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GPMC_IRQSTATUS,4,2             ; @GPMC_IRQSTATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_GPMC_NR_NAND_IRQS,4,2          ; @GPMC_NR_NAND_IRQS
	.comm	_gpmc_irq_domain,4,2            ; @gpmc_irq_domain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious irq detected hwirq %d, virq %d\n"

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