	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enpci_interrupt
_enpci_interrupt:                       ## @enpci_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, %r13
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	_NETJET_IRQSTAT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_inb
	movq	_TJ_AMD_IRQ@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testb	%al, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ReadByteAmd7930
	movzbl	%al, %esi
	movq	%r13, %rdi
	callq	_Amd7930_interrupt
	movl	$1, %ebx
LBB0_2:
	movq	_NETJET_IRQSTAT0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%r13), %rdi
	callq	_inb
	movzbl	%al, %edi
	orl	%edi, %ebx
	je	LBB0_3
## %bb.4:
	testb	%al, %al
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rsi
	addq	16(%r13), %rsi
	callq	_outb
LBB0_6:
	movq	_NETJET_DMA_WRITE_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_inl
	movq	%rax, %r14
	movq	_NETJET_DMA_WRITE_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_inl
	cmpq	%rax, %r14
	setl	%r15b
	shlb	$2, %r15b
	movq	_NETJET_DMA_READ_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_inl
	movq	%rax, %r14
	movq	_NETJET_DMA_READ_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r13), %rdi
	callq	_inl
	cmpq	%rax, %r14
	setl	%bl
	orb	%r15b, %bl
	addb	$5, %bl
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	cmpb	8(%r13), %bl
	je	LBB0_13
## %bb.7:
	movq	_FLG_LOCK_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%r13), %r14
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movb	%bl, 9(%r13)
	xorb	8(%r13), %bl
	movq	_NETJET_IRQM0_READ@GOTPCREL(%rip), %rcx
	movzbl	%bl, %eax
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_read_tiger
	movb	8(%r13), %al
	xorb	9(%r13), %al
	movzbl	%al, %eax
LBB0_10:
	movq	_NETJET_IRQM0_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_write_tiger
LBB0_12:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	jmp	LBB0_13
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_13:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %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	_TJ_AMD_IRQ,1,0                 ## @TJ_AMD_IRQ
	.comm	_NETJET_IRQSTAT0,8,3            ## @NETJET_IRQSTAT0
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.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	_enpci_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enpci_interrupt
_enpci_interrupt:                       ; @enpci_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	x8, [x19, #16]
Lloh0:
	adrp	x9, _NETJET_IRQSTAT1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETJET_IRQSTAT1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh3:
	adrp	x8, _TJ_AMD_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TJ_AMD_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_ReadByteAmd7930
	mov	x1, x0
	mov	x0, x19
	bl	_Amd7930_interrupt
	mov	w21, #1
LBB0_3:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x20, _NETJET_IRQSTAT0@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NETJET_IRQSTAT0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inb
	orr	w8, w21, w0
	cbz	w8, LBB0_14
; %bb.4:
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outb
LBB0_6:
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _NETJET_DMA_WRITE_ADR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETJET_DMA_WRITE_ADR@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _NETJET_DMA_WRITE_IRQ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NETJET_DMA_WRITE_IRQ@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	cmp	x20, x0
	mov	w8, #4
	mov	w9, #8
	csel	w21, w9, w8, lt
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _NETJET_DMA_READ_ADR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NETJET_DMA_READ_ADR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh16:
	adrp	x9, _NETJET_DMA_READ_IRQ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NETJET_DMA_READ_IRQ@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	cmp	x20, x0
	mov	w8, #1
	cinc	w8, w8, lt
	orr	w22, w8, w21
	ldrb	w8, [x19, #8]
	cmp	w22, w8
	b.eq	LBB0_13
; %bb.7:
Lloh19:
	adrp	x21, _FLG_LOCK_ATOMIC@GOTPAGE
Lloh20:
	ldr	x21, [x21, _FLG_LOCK_ATOMIC@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_and_set_bit
	cbnz	x0, LBB0_13
; %bb.8:
Lloh21:
	adrp	x8, _NETJET_IRQM0_READ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETJET_IRQM0_READ@GOTPAGEOFF]
	strb	w22, [x19, #9]
Lloh23:
	ldr	w9, [x8]
	ldrb	w8, [x19, #8]
	eor	w8, w8, w22
	and	w8, w8, #0xff
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_read_tiger
	ldrb	w8, [x19, #9]
	ldrb	w9, [x19, #8]
	eor	w8, w9, w8
LBB0_10:
Lloh24:
	adrp	x9, _NETJET_IRQM0_WRITE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETJET_IRQM0_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_write_tiger
LBB0_12:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_and_clear_bit
LBB0_13:
Lloh27:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh29:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh30:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_15:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NETJET_IRQSTAT1,8,3            ; @NETJET_IRQSTAT1
	.comm	_TJ_AMD_IRQ,1,0                 ; @TJ_AMD_IRQ
	.comm	_NETJET_IRQSTAT0,8,3            ; @NETJET_IRQSTAT0
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.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	_enpci_interrupt
.subsections_via_symbols
