	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsnd_stop_thread
_rsnd_stop_thread:                      ## @rsnd_stop_thread
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_RSD_DEBUG
	movl	4(%rbx), %edi
	callq	_slock_lock
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edi
	callq	_scond_signal
	movl	4(%rbx), %edi
	callq	_slock_unlock
	movl	(%rbx), %edi
	callq	_sthread_join
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	callq	_RSD_DEBUG
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[RSound] Shutting down thread.\n"

L_.str.1:                               ## @.str.1
	.asciz	"[RSound] Thread joined successfully.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Thread is already shut down.\n"

	.no_dead_strip	_rsnd_stop_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsnd_stop_thread
_rsnd_stop_thread:                      ; @rsnd_stop_thread
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RSD_DEBUG
	ldr	w0, [x19, #4]
	bl	_slock_lock
	str	xzr, [x19, #16]
	ldr	w0, [x19, #8]
	bl	_scond_signal
	ldr	w0, [x19, #4]
	bl	_slock_unlock
	ldr	w0, [x19]
	bl	_sthread_join
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_3:
	bl	_RSD_DEBUG
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[RSound] Shutting down thread.\n"

l_.str.1:                               ; @.str.1
	.asciz	"[RSound] Thread joined successfully.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Thread is already shut down.\n"

	.no_dead_strip	_rsnd_stop_thread
.subsections_via_symbols
