	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_stop
_context_stop:                          ## @context_stop
	.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, %r14
	movl	(%rdi), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_CLEAR
	movq	_CONTEXT_RUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_write
	movl	4(%r14), %edi
	callq	_flush_writes
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	movq	_CONTEXT_ACTIVE@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.1:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.2:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.3:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.4:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.5:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.6:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.7:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.8:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.9:
	movl	$1, %edi
	callq	_mdelay
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CONTROL_SET
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_mdelay
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fw_error                       ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTEXT_RUN,4,2                ## @CONTEXT_RUN
	.comm	_CONTEXT_ACTIVE,4,2             ## @CONTEXT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: DMA context still active (0x%08x)\n"

	.no_dead_strip	_context_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_stop
_context_stop:                          ; @context_stop
	.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
	ldp	w0, w20, [x0]
	bl	_CONTROL_CLEAR
	mov	x1, x0
Lloh0:
	adrp	x8, _CONTEXT_RUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTEXT_RUN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_reg_write
	ldr	w0, [x19, #4]
	bl	_flush_writes
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
Lloh3:
	adrp	x21, _CONTEXT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CONTEXT_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #1
	bl	_mdelay
	ldp	w0, w20, [x19]
	bl	_CONTROL_SET
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	x19, x0
	mov	w0, #1
	bl	_mdelay
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, 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	_fw_error
LBB0_11:
	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 AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTEXT_RUN,4,2                ; @CONTEXT_RUN
	.comm	_CONTEXT_ACTIVE,4,2             ; @CONTEXT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: DMA context still active (0x%08x)\n"

	.no_dead_strip	_context_stop
.subsections_via_symbols
