	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_irq
_diva_irq:                              ## @diva_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_DIVA_PCI_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_inb
	movq	_DIVA_IRQ_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	incl	8(%rbx)
	leaq	4(%rbx), %rdi
	movq	_irqloops@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mISDNipac_irq
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIVA_PCI_CTRL,8,3              ## @DIVA_PCI_CTRL
	.comm	_DIVA_IRQ_BIT,4,2               ## @DIVA_IRQ_BIT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_irqloops,4,2                   ## @irqloops
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_diva_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_irq
_diva_irq:                              ; @diva_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
	mov	x0, x1
	bl	_spin_lock
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _DIVA_PCI_CTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIVA_PCI_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh3:
	adrp	x8, _DIVA_IRQ_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIVA_IRQ_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #4
Lloh6:
	adrp	x8, _irqloops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irqloops@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mISDNipac_irq
Lloh9:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DIVA_PCI_CTRL,8,3              ; @DIVA_PCI_CTRL
	.comm	_DIVA_IRQ_BIT,4,2               ; @DIVA_IRQ_BIT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_irqloops,4,2                   ; @irqloops
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_diva_irq
.subsections_via_symbols
