	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cosa_kick
_cosa_kick:                             ## @cosa_kick
	.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, %r15
	movq	_RXBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_TXBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rbx, %rdx
	movl	16(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%r15)
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, %r14
	movl	4(%r15), %edi
	callq	_disable_dma
	movl	4(%r15), %edi
	callq	_clear_dma_ff
	movq	%r14, %rdi
	callq	_release_dma_lock
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cosa_putstatus
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_cosa_getdata8
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cosa_putdata8
	movl	$100, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_put_driver_status_nolock
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(probably) IRQ"

	.comm	_RXBIT,4,2                      ## @RXBIT
L_.str.1:                               ## @.str.1
	.asciz	"RX DMA"

	.comm	_TXBIT,4,2                      ## @TXBIT
L_.str.2:                               ## @.str.2
	.asciz	"TX DMA"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s timeout - restarting\n"

	.no_dead_strip	_cosa_kick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cosa_kick
_cosa_kick:                             ; @cosa_kick
	.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, x0
Lloh0:
	adrp	x8, _RXBIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXBIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x21, x9, x8, eq
Lloh7:
	adrp	x8, _TXBIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TXBIT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x2, x21, x8, eq
	ldr	w1, [x19, #16]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	xzr, [x19, #8]
	bl	_claim_dma_lock
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_disable_dma
	ldr	w0, [x19, #4]
	bl	_clear_dma_ff
	mov	x0, x20
	bl	_release_dma_lock
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	bl	_cosa_putstatus
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	bl	_cosa_getdata8
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #0
	bl	_cosa_putdata8
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(probably) IRQ"

	.comm	_RXBIT,4,2                      ; @RXBIT
l_.str.1:                               ; @.str.1
	.asciz	"RX DMA"

	.comm	_TXBIT,4,2                      ; @TXBIT
l_.str.2:                               ; @.str.2
	.asciz	"TX DMA"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s timeout - restarting\n"

	.no_dead_strip	_cosa_kick
.subsections_via_symbols
