	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcpci2_irq
_fcpci2_irq:                            ## @fcpci2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_AVM_STATUS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_AVM_STATUS0_IRQ_MASK@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	je	LBB0_1
## %bb.2:
	movzbl	%bl, %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DBG
	movq	_AVM_STATUS0_IRQ_ISAC@GOTPCREL(%rip), %r15
	testb	%bl, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_isacsx_irq
LBB0_4:
	movq	_AVM_STATUS0_IRQ_HDLC@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_hdlc_irq
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	testb	%bl, (%r15)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_isacsx_irq
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_STATUS0,8,3                ## @AVM_STATUS0
	.comm	_AVM_STATUS0_IRQ_MASK,1,0       ## @AVM_STATUS0_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STATUS0 %#x"

	.comm	_AVM_STATUS0_IRQ_ISAC,1,0       ## @AVM_STATUS0_IRQ_ISAC
	.comm	_AVM_STATUS0_IRQ_HDLC,1,0       ## @AVM_STATUS0_IRQ_HDLC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fcpci2_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcpci2_irq
_fcpci2_irq:                            ; @fcpci2_irq
	.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
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _AVM_STATUS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVM_STATUS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh3:
	adrp	x8, _AVM_STATUS0_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_DBG
Lloh7:
	adrp	x21, _AVM_STATUS0_IRQ_ISAC@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AVM_STATUS0_IRQ_ISAC@GOTPAGEOFF]
	ldrb	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_isacsx_irq
LBB0_3:
Lloh9:
	adrp	x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_hdlc_irq
LBB0_5:
	ldrb	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_isacsx_irq
LBB0_7:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_STATUS0,8,3                ; @AVM_STATUS0
	.comm	_AVM_STATUS0_IRQ_MASK,1,0       ; @AVM_STATUS0_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STATUS0 %#x"

	.comm	_AVM_STATUS0_IRQ_ISAC,1,0       ; @AVM_STATUS0_IRQ_ISAC
	.comm	_AVM_STATUS0_IRQ_HDLC,1,0       ; @AVM_STATUS0_IRQ_HDLC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fcpci2_irq
.subsections_via_symbols
