	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eot_interrupt
_eot_interrupt:                         ## @eot_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, %r15
	movl	72(%rbx), %edi
	callq	_disable_dma
	movl	72(%rbx), %edi
	callq	_clear_dma_ff
	movq	%r15, %rdi
	callq	_release_dma_lock
	movq	_TXBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	64(%rbx), %r15
	movslq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%r15,%rcx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	addq	%rcx, %r15
	movl	60(%rbx), %esi
	movq	%r15, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	(%r15), %edi
	leaq	56(%rbx), %rsi
	callq	_clear_bit
	jmp	LBB0_12
LBB0_4:
	movq	_RXBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	LBB0_12
## %bb.6:
	movq	48(%rbx), %rdi
	movl	4(%rbx), %edx
	callq	_cosa_dma_able
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	movl	4(%rbx), %edx
	callq	_memcpy
LBB0_8:
	movq	48(%rbx), %rdi
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	48(%rbx), %rax
	movl	(%rax), %edi
	leaq	44(%rbx), %rsi
	callq	_clear_bit
	jmp	LBB0_12
LBB0_11:
	movl	40(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_notice
LBB0_12:
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_put_driver_status_nolock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXBIT,4,2                      ## @TXBIT
	.comm	_RXBIT,4,2                      ## @RXBIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cosa%d: unexpected EOT interrupt\n"

	.no_dead_strip	_eot_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eot_interrupt
_eot_interrupt:                         ; @eot_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	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
	bl	_claim_dma_lock
	mov	x21, x0
	ldr	w0, [x20, #72]
	bl	_disable_dma
	ldr	w0, [x20, #72]
	bl	_clear_dma_ff
	mov	x0, x21
	bl	_release_dma_lock
Lloh0:
	adrp	x8, _TXBIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXBIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #32
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #64]
	ldrsw	x9, [x20]
	add	x21, x8, x9, lsl #4
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	w1, [x20, #60]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w0, [x21]
	add	x1, x20, #56
	bl	_clear_bit
	b	LBB0_12
LBB0_4:
Lloh3:
	adrp	x8, _RXBIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXBIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.5:
	ldp	x1, x8, [x20, #8]
	cmp	x1, x8
	b.eq	LBB0_12
; %bb.6:
	ldr	x0, [x20, #48]
	ldr	w2, [x20, #4]
	bl	_cosa_dma_able
	cbnz	w0, LBB0_8
; %bb.7:
	ldp	x0, x1, [x20, #8]
	ldr	w2, [x20, #4]
	bl	_memcpy
LBB0_8:
	ldr	x0, [x20, #48]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.9:
	blr	x8
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x20, #48]
	ldr	w0, [x8]
	add	x1, x20, #44
	bl	_clear_bit
	b	LBB0_12
LBB0_11:
	ldr	w1, [x20, #40]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
LBB0_12:
	str	xzr, [x20, #32]
	mov	x0, x20
	bl	_put_driver_status_nolock
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TXBIT,4,2                      ; @TXBIT
	.comm	_RXBIT,4,2                      ; @RXBIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cosa%d: unexpected EOT interrupt\n"

	.no_dead_strip	_eot_interrupt
.subsections_via_symbols
