	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camelot_trigger
_camelot_trigger:                       ## @camelot_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	8(%rdi), %rcx
	movq	_cam_pcm_data@GOTPCREL(%rip), %rdx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rdx), %rdi
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.2:
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.3:
	callq	_dmabrg_play_dma_start
	jmp	LBB0_8
LBB0_4:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.5:
	callq	_dmabrg_play_dma_stop
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	callq	_dmabrg_rec_dma_start
	jmp	LBB0_8
LBB0_9:
	callq	_dmabrg_rec_dma_stop
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cam_pcm_data,8,3               ## @cam_pcm_data
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_camelot_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camelot_trigger
_camelot_trigger:                       ; @camelot_trigger
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _cam_pcm_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cam_pcm_data@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	x8, x10, [x0]
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldr	x10, [x10]
	add	x0, x9, x10, lsl #2
Lloh3:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_6
; %bb.2:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	bl	_dmabrg_play_dma_start
	b	LBB0_9
LBB0_4:
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	bl	_dmabrg_play_dma_stop
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_dmabrg_rec_dma_start
	b	LBB0_9
LBB0_8:
	bl	_dmabrg_rec_dma_stop
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cam_pcm_data,8,3               ; @cam_pcm_data
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_camelot_trigger
.subsections_via_symbols
