	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bkm_interrupt
_bkm_interrupt:                         ## @bkm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	24(%rbx), %r14
	movq	_intISDN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movl	%eax, (%r14)
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_jade_HDLC_ISR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	subq	$-128, %rdx
	callq	_readreg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_jade_int_main
LBB0_4:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$192, %edx
	addq	(%r12), %rdx
	callq	_readreg
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_jade_int_main
LBB0_6:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_readreg
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_isac_interrupt
LBB0_8:
	movl	(%r15), %eax
	orl	%eax, 4(%r14)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	jmp	LBB0_9
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intISDN,4,2                    ## @intISDN
	.comm	_jade_HDLC_ISR,8,3              ## @jade_HDLC_ISR
	.comm	_ISAC_ISTA,8,3                  ## @ISAC_ISTA
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_bkm_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bkm_interrupt
_bkm_interrupt:                         ; @bkm_interrupt
	.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
	mov	x0, x1
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #24]
	ldr	w9, [x20]
Lloh0:
	adrp	x21, _intISDN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _intISDN@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.1:
	str	w8, [x20]
	ldr	w8, [x21]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	ldp	w1, w0, [x19, #16]
Lloh2:
	adrp	x22, _jade_HDLC_ISR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jade_HDLC_ISR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x2, x8, #128
	bl	_readreg
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_jade_int_main
LBB0_3:
	ldp	w1, w0, [x19, #16]
	ldr	x8, [x22]
	add	x2, x8, #192
	bl	_readreg
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_jade_int_main
LBB0_5:
	ldp	w1, w0, [x19, #8]
Lloh4:
	adrp	x8, _ISAC_ISTA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISAC_ISTA@GOTPAGEOFF]
Lloh6:
	ldr	x2, [x8]
	bl	_readreg
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	bl	_isac_interrupt
LBB0_7:
	ldr	w8, [x21]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
Lloh7:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_intISDN,4,2                    ; @intISDN
	.comm	_jade_HDLC_ISR,8,3              ; @jade_HDLC_ISR
	.comm	_ISAC_ISTA,8,3                  ; @ISAC_ISTA
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_bkm_interrupt
.subsections_via_symbols
