	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jade_int_main
_jade_int_main:                         ## @jade_int_main
	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_jadeISR_RFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%esi, %ecx
	notl	%eax
	xorl	%ebx, %ebx
	cmpl	$1, %ecx
	sbbl	%ebx, %ebx
	orl	%eax, %ebx
	andl	%esi, %ebx
	movq	_jadeISR_XDU@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	8(%r15), %r12
	movslq	%r14d, %rax
	leaq	(%rax,%rax,4), %r13
	leaq	(%r12,%r13,8), %rdi
	cmpl	$1, (%rdi)
	jne	LBB0_3
## %bb.2:
	callq	_jade_fill_fifo
	jmp	LBB0_7
LBB0_3:
	movq	32(%r12,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	16(%r12,%r13,8), %rsi
	callq	_skb_push
	movl	16(%r12,%r13,8), %eax
	addl	%eax, 24(%r12,%r13,8)
	movq	$0, 16(%r12,%r13,8)
LBB0_5:
	movl	8(%r12,%r13,8), %esi
	movq	_jade_HDLC_XCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_jadeXCMD_XRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_WriteJADECMDR
	movq	_L1_DEB_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.6:
	leal	65(%r14), %eax
	movsbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_debugl1
LBB0_7:
	movq	_jadeISR_RME@GOTPCREL(%rip), %rax
	movq	_jadeISR_RPF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_jadeISR_XPR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_11
## %bb.8:
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.9:
	leal	65(%r14), %eax
	movsbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_debugl1
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jade_interrupt                 ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jadeISR_RFO,4,2                ## @jadeISR_RFO
	.comm	_jadeISR_XDU,4,2                ## @jadeISR_XDU
	.comm	_jade_HDLC_XCMD,4,2             ## @jade_HDLC_XCMD
	.comm	_jadeXCMD_XRES,4,2              ## @jadeXCMD_XRES
	.comm	_L1_DEB_WARN,4,2                ## @L1_DEB_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JADE %c EXIR %x Lost TX"

	.comm	_jadeISR_RME,4,2                ## @jadeISR_RME
	.comm	_jadeISR_RPF,4,2                ## @jadeISR_RPF
	.comm	_jadeISR_XPR,4,2                ## @jadeISR_XPR
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
L_.str.1:                               ## @.str.1
	.asciz	"JADE %c interrupt %x"

	.no_dead_strip	_jade_int_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jade_int_main
_jade_int_main:                         ; @jade_int_main
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _jadeISR_RFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jadeISR_RFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	and	w21, w8, w1
Lloh3:
	adrp	x8, _jadeISR_XDU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jadeISR_XDU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_7
; %bb.1:
	ldr	x22, [x20, #8]
	mov	w8, #40
	smaddl	x0, w19, w8, x22
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	bl	_jade_fill_fifo
	b	LBB0_7
LBB0_3:
	sxtw	x23, w19
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #40
	madd	x24, x23, x8, x22
	ldr	x1, [x24, #16]
	bl	_skb_push
	ldr	w8, [x24, #16]
	ldr	w9, [x24, #24]
	add	w8, w9, w8
	str	w8, [x24, #24]
	str	xzr, [x24, #16]
LBB0_5:
	mov	w8, #40
	madd	x8, x23, x8, x22
	ldr	w1, [x8, #8]
Lloh6:
	adrp	x8, _jade_HDLC_XCMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jade_HDLC_XCMD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _jadeXCMD_XRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jadeXCMD_XRES@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_WriteJADECMDR
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _L1_DEB_WARN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _L1_DEB_WARN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	add	w8, w19, #65
	sxtb	w2, w8
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_debugl1
LBB0_7:
Lloh17:
	adrp	x8, _jadeISR_RME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jadeISR_RME@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _jadeISR_RPF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _jadeISR_RPF@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _jadeISR_XPR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _jadeISR_XPR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_11
; %bb.8:
	ldr	w8, [x20]
Lloh26:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	add	w8, w19, #65
	sxtb	w2, w8
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_debugl1
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	b	_jade_interrupt
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_jadeISR_RFO,4,2                ; @jadeISR_RFO
	.comm	_jadeISR_XDU,4,2                ; @jadeISR_XDU
	.comm	_jade_HDLC_XCMD,4,2             ; @jade_HDLC_XCMD
	.comm	_jadeXCMD_XRES,4,2              ; @jadeXCMD_XRES
	.comm	_L1_DEB_WARN,4,2                ; @L1_DEB_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JADE %c EXIR %x Lost TX"

	.comm	_jadeISR_RME,4,2                ; @jadeISR_RME
	.comm	_jadeISR_RPF,4,2                ; @jadeISR_RPF
	.comm	_jadeISR_XPR,4,2                ; @jadeISR_XPR
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
l_.str.1:                               ; @.str.1
	.asciz	"JADE %c interrupt %x"

	.no_dead_strip	_jade_int_main
.subsections_via_symbols
