	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_close
_pcxhr_close:                           ## @pcxhr_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	8(%rax), %r15
	movq	8(%rbx), %rax
	movq	(%rax), %r13
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	decq	(%r15)
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pcxhr_hardware_timer
LBB0_2:
	movq	_PCXHR_STREAM_STATUS_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	$0, (%r13)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcxhr_close chip%d subs%d\n"

	.comm	_PCXHR_STREAM_STATUS_FREE,4,2   ## @PCXHR_STREAM_STATUS_FREE
	.no_dead_strip	_pcxhr_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_close
_pcxhr_close:                           ; @pcxhr_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x21, #8]
	ldr	x23, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_pcxhr_hardware_timer
LBB0_2:
Lloh2:
	adrp	x8, _PCXHR_STREAM_STATUS_FREE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCXHR_STREAM_STATUS_FREE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	str	xzr, [x23]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcxhr_close chip%d subs%d\n"

	.comm	_PCXHR_STREAM_STATUS_FREE,4,2   ; @PCXHR_STREAM_STATUS_FREE
	.no_dead_strip	_pcxhr_close
.subsections_via_symbols
