	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fpga_irq_handle
_fpga_irq_handle:                       ## @fpga_irq_handle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_irq_desc_get_handler_data
	movq	%rax, %r14
	movq	_IRQ_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	bsfl	%ebx, %ecx
	movl	$-2, %r15d
	roll	%cl, %r15d
	movl	(%r14), %edi
	movl	%ecx, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
	andl	%r15d, %ebx
	jne	LBB0_2
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_bad_IRQ                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_STATUS,8,3                 ## @IRQ_STATUS
	.no_dead_strip	_fpga_irq_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fpga_irq_handle
_fpga_irq_handle:                       ; @fpga_irq_handle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_irq_desc_get_handler_data
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IRQ_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	rbit	w8, w20
	clz	w1, w8
	lsl	w8, w21, w1
	bic	w20, w20, w8
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
	cbnz	w20, LBB0_2
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_bad_IRQ
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_STATUS,8,3                 ; @IRQ_STATUS
	.no_dead_strip	_fpga_irq_handle
.subsections_via_symbols
