	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netjet_u_interrupt
_netjet_u_interrupt:                    ## @netjet_u_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	%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
	movq	%rsi, %r14
	leaq	4(%rsi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_NETJET_IRQSTAT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_bytein
	movl	%eax, %r15d
	movq	_NETJET_ISACIRQ@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_ICC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_NETjet_ReadIC
	movl	%eax, %r12d
	movq	_L1_DEB_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_debugl1
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_icc_interrupt
	movq	_ICC_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_NETjet_WriteIC
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_NETjet_WriteIC
LBB0_5:
	movq	_NETJET_DMA_WRITE_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_inl
	movq	%rax, %r15
	movq	_NETJET_DMA_WRITE_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_inl
	xorl	%ebx, %ebx
	cmpq	%rax, %r15
	setl	%bl
	movq	_NETJET_DMA_READ_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_inl
	movq	%rax, %r15
	movq	_NETJET_DMA_READ_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r14), %rdi
	callq	_inl
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	setl	%cl
	leal	(%rcx,%rbx,4), %r13d
	addl	$5, %r13d
	cmpl	16(%r14), %r13d
	je	LBB0_12
## %bb.6:
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	8(%r14), %r15
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movl	%r13d, 20(%r14)
	movq	_NETJET_IRQM0_READ@GOTPCREL(%rip), %rax
	xorl	16(%r14), %r13d
	testl	%r13d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_read_tiger
	movl	16(%r14), %r13d
	xorl	20(%r14), %r13d
LBB0_9:
	movq	_NETJET_IRQM0_WRITE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_write_tiger
LBB0_11:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETJET_IRQSTAT1,8,3            ## @NETJET_IRQSTAT1
	.comm	_NETJET_ISACIRQ,4,2             ## @NETJET_ISACIRQ
	.comm	_ICC_ISTA,4,2                   ## @ICC_ISTA
	.comm	_L1_DEB_ISAC,4,2                ## @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tiger: i1 %x %x"

	.comm	_ICC_MASK,4,2                   ## @ICC_MASK
	.comm	_NETJET_DMA_WRITE_ADR,8,3       ## @NETJET_DMA_WRITE_ADR
	.comm	_NETJET_DMA_WRITE_IRQ,8,3       ## @NETJET_DMA_WRITE_IRQ
	.comm	_NETJET_DMA_READ_ADR,8,3        ## @NETJET_DMA_READ_ADR
	.comm	_NETJET_DMA_READ_IRQ,8,3        ## @NETJET_DMA_READ_IRQ
	.comm	_FLG_LOCK_ATOMIC,4,2            ## @FLG_LOCK_ATOMIC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_NETJET_IRQM0_READ,4,2          ## @NETJET_IRQM0_READ
	.comm	_NETJET_IRQM0_WRITE,4,2         ## @NETJET_IRQM0_WRITE
	.no_dead_strip	_netjet_u_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netjet_u_interrupt
_netjet_u_interrupt:                    ; @netjet_u_interrupt
	.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	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _NETJET_IRQSTAT1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETJET_IRQSTAT1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_bytein
Lloh3:
	adrp	x8, _NETJET_ISACIRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETJET_ISACIRQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x8, _ICC_ISTA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICC_ISTA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_NETjet_ReadIC
	mov	x22, x0
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _L1_DEB_ISAC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _L1_DEB_ISAC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_debugl1
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_icc_interrupt
Lloh14:
	adrp	x21, _ICC_MASK@GOTPAGE
Lloh15:
	ldr	x21, [x21, _ICC_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #255
	bl	_NETjet_WriteIC
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_NETjet_WriteIC
LBB0_5:
	ldr	x8, [x20, #24]
Lloh16:
	adrp	x9, _NETJET_DMA_WRITE_ADR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NETJET_DMA_WRITE_ADR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x21, x0
	ldr	x8, [x20, #24]
Lloh19:
	adrp	x9, _NETJET_DMA_WRITE_IRQ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NETJET_DMA_WRITE_IRQ@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	cmp	x21, x0
	mov	w8, #4
	mov	w9, #8
	csel	w22, w9, w8, lt
	ldr	x8, [x20, #24]
Lloh22:
	adrp	x9, _NETJET_DMA_READ_ADR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NETJET_DMA_READ_ADR@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x21, x0
	ldr	x8, [x20, #24]
Lloh25:
	adrp	x9, _NETJET_DMA_READ_IRQ@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NETJET_DMA_READ_IRQ@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	cmp	x21, x0
	mov	w8, #1
	cinc	w8, w8, lt
	orr	w23, w8, w22
	ldr	w8, [x20, #16]
	cmp	w23, w8
	b.eq	LBB0_12
; %bb.6:
Lloh28:
	adrp	x22, _FLG_LOCK_ATOMIC@GOTPAGE
Lloh29:
	ldr	x22, [x22, _FLG_LOCK_ATOMIC@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	x0, LBB0_12
; %bb.7:
	str	w23, [x20, #20]
Lloh30:
	adrp	x8, _NETJET_IRQM0_READ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NETJET_IRQM0_READ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x8]
	ldr	w8, [x20, #16]
	eor	w8, w8, w23
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_read_tiger
	ldp	w9, w8, [x20, #16]
	eor	w8, w9, w8
LBB0_9:
Lloh33:
	adrp	x9, _NETJET_IRQM0_WRITE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _NETJET_IRQM0_WRITE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_write_tiger
LBB0_11:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_and_clear_bit
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh36:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_NETJET_IRQSTAT1,8,3            ; @NETJET_IRQSTAT1
	.comm	_NETJET_ISACIRQ,4,2             ; @NETJET_ISACIRQ
	.comm	_ICC_ISTA,4,2                   ; @ICC_ISTA
	.comm	_L1_DEB_ISAC,4,2                ; @L1_DEB_ISAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tiger: i1 %x %x"

	.comm	_ICC_MASK,4,2                   ; @ICC_MASK
	.comm	_NETJET_DMA_WRITE_ADR,8,3       ; @NETJET_DMA_WRITE_ADR
	.comm	_NETJET_DMA_WRITE_IRQ,8,3       ; @NETJET_DMA_WRITE_IRQ
	.comm	_NETJET_DMA_READ_ADR,8,3        ; @NETJET_DMA_READ_ADR
	.comm	_NETJET_DMA_READ_IRQ,8,3        ; @NETJET_DMA_READ_IRQ
	.comm	_FLG_LOCK_ATOMIC,4,2            ; @FLG_LOCK_ATOMIC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_NETJET_IRQM0_READ,4,2          ; @NETJET_IRQM0_READ
	.comm	_NETJET_IRQM0_WRITE,4,2         ; @NETJET_IRQM0_WRITE
	.no_dead_strip	_netjet_u_interrupt
.subsections_via_symbols
