	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_pcm_playback_close
_vx_pcm_playback_close:                 ## @vx_pcm_playback_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, %rbx
	callq	_snd_pcm_substream_chip
	movq	(%rbx), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	decq	(%rsi)
	jne	LBB0_4
## %bb.3:
	movq	(%rax), %rcx
	movq	8(%rsi), %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	%rax, %rdi
	callq	_vx_free_pipe
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vx_pcm_playback_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_pcm_playback_close
_vx_pcm_playback_close:                 ; @vx_pcm_playback_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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	ldr	x8, [x19]
	ldr	x1, [x8]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x1]
	subs	x8, x8, #1
	str	x8, [x1]
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	x9, [x1, #8]
	str	xzr, [x8, x9, lsl #3]
	bl	_vx_free_pipe
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vx_pcm_playback_close
.subsections_via_symbols
