	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camelot_pcm_close
_camelot_pcm_close:                     ## @camelot_pcm_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	_cam_pcm_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rsi
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rdx,%rcx,8), %edi
	leal	2(%rdi), %ebx
	cmpq	(%rsi), %rax
	leaq	8(%rdx,%rcx,8), %rax
	leaq	16(%rdx,%rcx,8), %rcx
	cmoveq	%rax, %rcx
	cmovel	%edi, %ebx
	movq	$0, (%rcx)
	leal	1(%rbx), %edi
	callq	_dmabrg_free_irq
	movl	%ebx, %edi
	callq	_dmabrg_free_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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
	.no_dead_strip	_camelot_pcm_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camelot_pcm_close
_camelot_pcm_close:                     ; @camelot_pcm_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cam_pcm_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cam_pcm_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x10, x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh3:
	adrp	x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	mov	w12, #24
	madd	x8, x9, x12, x8
	add	x9, x8, #8
	ldr	w12, [x8], #16
	add	w13, w12, #2
	cmp	x10, x11
	csel	x8, x9, x8, eq
	csel	w19, w12, w13, eq
	str	xzr, [x8]
	add	w0, w19, #1
	bl	_dmabrg_free_irq
	mov	x0, x19
	bl	_dmabrg_free_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cam_pcm_data,8,3               ; @cam_pcm_data
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_camelot_pcm_close
.subsections_via_symbols
