	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcpci_irq
_fcpci_irq:                             ## @fcpci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rdi
	addq	$2, %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_AVM_STATUS0_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	notb	%cl
	testb	%cl, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_2:
	movzbl	%bl, %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DBG
	movq	_AVM_STATUS0_IRQ_ISAC@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_isac_irq
LBB0_4:
	movq	_AVM_STATUS0_IRQ_HDLC@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testb	%bl, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_hdlc_irq
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"sval %#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	_fcpci_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcpci_irq
_fcpci_irq:                             ; @fcpci_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #8]
	add	x0, x8, #2
	bl	_inb
Lloh0:
	adrp	x8, _AVM_STATUS0_IRQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w8, w8, w0
	tst	w8, #0xff
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_DBG
Lloh6:
	adrp	x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_isac_irq
LBB0_4:
Lloh8:
	adrp	x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_hdlc_irq
LBB0_6:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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	"sval %#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	_fcpci_irq
.subsections_via_symbols
