	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynq_fpga_isr
_zynq_fpga_isr:                         ## @zynq_fpga_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_INT_STS_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_zynq_fpga_read
	movq	_IXR_ERROR_FLAGS_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_zynq_fpga_set_irq
	movq	%rbx, %rdi
	callq	_complete
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_IXR_DMA_DONE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_zynq_fpga_write
	movq	%rbx, %rdi
	callq	_zynq_step_dma
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_STS_OFFSET,4,2             ## @INT_STS_OFFSET
	.comm	_IXR_ERROR_FLAGS_MASK,4,2       ## @IXR_ERROR_FLAGS_MASK
	.comm	_IXR_DMA_DONE_MASK,4,2          ## @IXR_DMA_DONE_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_zynq_fpga_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynq_fpga_isr
_zynq_fpga_isr:                         ; @zynq_fpga_isr
	.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	x19, x1
	add	x20, x1, #4
	mov	x0, x20
	bl	_spin_lock
Lloh0:
	adrp	x21, _INT_STS_OFFSET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_STS_OFFSET@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_zynq_fpga_read
Lloh2:
	adrp	x8, _IXR_ERROR_FLAGS_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXR_ERROR_FLAGS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	mov	w1, #0
	bl	_zynq_fpga_set_irq
	mov	x0, x19
	bl	_complete
LBB0_2:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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_3:
Lloh8:
	adrp	x8, _IXR_DMA_DONE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXR_DMA_DONE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	tst	w2, w0
	b.eq	LBB0_1
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_1
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_zynq_fpga_write
	mov	x0, x19
	bl	_zynq_step_dma
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_STS_OFFSET,4,2             ; @INT_STS_OFFSET
	.comm	_IXR_ERROR_FLAGS_MASK,4,2       ; @IXR_ERROR_FLAGS_MASK
	.comm	_IXR_DMA_DONE_MASK,4,2          ; @IXR_DMA_DONE_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_zynq_fpga_isr
.subsections_via_symbols
