	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_close
_pcm_close:                             ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	_bad_pcm@GOTPCREL(%rip), %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	callq	_pcm_hw_munmap_status
	movq	_PCM_MMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_pcm_stop
	movl	32(%rbx), %r14d
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_pcm_frames_to_bytes
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_munmap
LBB0_3:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_5
## %bb.4:
	callq	_close
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movl	$-1, 4(%rbx)
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bad_pcm,40,3                   ## @bad_pcm
	.comm	_PCM_MMAP,4,2                   ## @PCM_MMAP
	.no_dead_strip	_pcm_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_close
_pcm_close:                             ; @pcm_close
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _bad_pcm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bad_pcm@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.1:
	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	_pcm_hw_munmap_status
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _PCM_MMAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCM_MMAP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_pcm_stop
	ldr	w20, [x19, #32]
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_pcm_frames_to_bytes
	mov	x1, x0
	mov	x0, x20
	bl	_munmap
LBB0_3:
	ldr	w0, [x19, #4]
	tbnz	w0, #31, LBB0_5
; %bb.4:
	bl	_close
LBB0_5:
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19, #24]
	mov	w8, #-1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bad_pcm,40,3                   ; @bad_pcm
	.comm	_PCM_MMAP,4,2                   ; @PCM_MMAP
	.no_dead_strip	_pcm_close
.subsections_via_symbols
