	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_init_thread              ## -- Begin function audio_init_thread
	.p2align	4, 0x90
_audio_init_thread:                     ## @audio_init_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r13
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$72, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	24(%rbp), %rax
	movl	16(%rbp), %ecx
	movq	%rax, 64(%rbx)
	movq	%r15, (%rbx)
	movl	%r14d, 8(%rbx)
	movq	%r13, 16(%rbx)
	movl	%r12d, 24(%rbx)
	movl	%ecx, 28(%rbx)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_scond_new
	movl	%eax, 52(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	callq	_slock_new
	movl	%eax, 48(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 32(%rbx)
	movq	_audio_thread_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_sthread_create
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	48(%rbx), %edi
	callq	_slock_lock
	cmpq	$0, 40(%rbx)
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	callq	_scond_wait
	cmpq	$0, 40(%rbx)
	je	LBB0_6
LBB0_8:
	movl	48(%rbx), %edi
	callq	_slock_unlock
	cmpq	$0, 40(%rbx)
	js	LBB0_10
## %bb.9:
	movq	_audio_thread@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	$1, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_audio_thread_free
	jmp	LBB0_11
LBB0_1:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_thread_loop,4,2          ## @audio_thread_loop
	.comm	_audio_thread,4,2               ## @audio_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_init_thread              ; -- Begin function audio_init_thread
	.p2align	2
_audio_init_thread:                     ; @audio_init_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x26, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #72
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	str	x25, [x0, #64]
	str	x27, [x0]
	str	w26, [x0, #8]
	str	x24, [x0, #16]
	stp	w23, w22, [x0, #24]
	bl	_scond_new
	str	w0, [x21, #52]
	cbz	w0, LBB0_8
; %bb.2:
	bl	_slock_new
	str	w0, [x21, #48]
	cbz	w0, LBB0_8
; %bb.3:
	movi.2s	v0, #1
	str	d0, [x21, #32]
Lloh0:
	adrp	x8, _audio_thread_loop@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_thread_loop@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_sthread_create
	str	w0, [x21, #56]
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x21, #48]
	bl	_slock_lock
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x21, #48]
	bl	_scond_wait
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_5
LBB0_6:
	ldr	w0, [x21, #48]
	bl	_slock_unlock
	ldr	x8, [x21, #40]
	tbnz	x8, #63, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _audio_thread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _audio_thread@GOTPAGEOFF]
	str	x8, [x20]
	str	x21, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	str	xzr, [x20]
	str	xzr, [x19]
	mov	x0, x21
	bl	_audio_thread_free
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_thread_loop,4,2          ; @audio_thread_loop
	.comm	_audio_thread,4,2               ; @audio_thread
.subsections_via_symbols
