	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_interrupt
_fsi_interrupt:                         ## @fsi_interrupt
	.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	_SOFT_RST@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_fsi_master_read
	movl	%eax, %ebx
	movl	%eax, %r15d
	andl	$-17, %r15d
	movq	_INT_ST@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_fsi_master_read
	movl	%eax, %r14d
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_fsi_master_write
	movl	(%r13), %edi
	orl	$16, %ebx
	movl	%ebx, %esi
	callq	_fsi_master_write
	movq	_INT_A_OUT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_master@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_fsi_data_push
LBB0_2:
	movq	_INT_B_OUT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_master@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_fsi_data_push
LBB0_4:
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_fsi_master_write
	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
	.comm	_SOFT_RST,4,2                   ## @SOFT_RST
	.comm	_INT_ST,4,2                     ## @INT_ST
	.comm	_INT_A_OUT,4,2                  ## @INT_A_OUT
	.comm	_master,8,3                     ## @master
	.comm	_INT_B_OUT,4,2                  ## @INT_B_OUT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fsi_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_interrupt
_fsi_interrupt:                         ; @fsi_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x23, _SOFT_RST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SOFT_RST@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_fsi_master_read
	mov	x20, x0
	and	w21, w0, #0xffffffef
Lloh2:
	adrp	x22, _INT_ST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INT_ST@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_fsi_master_read
	mov	x19, x0
	ldr	w0, [x23]
	mov	x1, x21
	bl	_fsi_master_write
	ldr	w0, [x23]
	orr	w1, w20, #0x10
	bl	_fsi_master_write
Lloh4:
	adrp	x8, _INT_A_OUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_A_OUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x20, _master@GOTPAGE
Lloh8:
	ldr	x20, [x20, _master@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	add	x0, x8, #4
	bl	_fsi_data_push
LBB0_2:
Lloh9:
	adrp	x8, _INT_B_OUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_B_OUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x20]
	bl	_fsi_data_push
LBB0_4:
	ldr	w0, [x22]
	mov	w1, #0
	bl	_fsi_master_write
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SOFT_RST,4,2                   ; @SOFT_RST
	.comm	_INT_ST,4,2                     ; @INT_ST
	.comm	_INT_A_OUT,4,2                  ; @INT_A_OUT
	.comm	_master,8,3                     ; @master
	.comm	_INT_B_OUT,4,2                  ; @INT_B_OUT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fsi_interrupt
.subsections_via_symbols
