	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_thread_loop
_audio_thread_loop:                     ## @audio_thread_loop
	.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
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	72(%rdi), %edi
	movl	68(%rbx), %esi
	movl	64(%rbx), %edx
	movl	60(%rbx), %ecx
	movl	56(%rbx), %r8d
	callq	*32(%rax)
	movq	%rax, 8(%rbx)
	movl	24(%rbx), %edi
	callq	_slock_lock
	movq	8(%rbx), %rdi
	xorl	%eax, %eax
	cmpq	$1, %rdi
	sbbl	%eax, %eax
	orl	$1, %eax
	movl	%eax, (%rbx)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	*%rax
	movl	%eax, 52(%rbx)
LBB0_4:
	movl	32(%rbx), %edi
	callq	_scond_signal
	movl	24(%rbx), %edi
	callq	_slock_unlock
	cmpl	$0, (%rbx)
	js	LBB0_17
## %bb.5:
	movl	24(%rbx), %edi
	callq	_slock_lock
	cmpq	$0, 40(%rbx)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_scond_wait
	cmpq	$0, 40(%rbx)
	jne	LBB0_6
LBB0_8:
	movl	24(%rbx), %edi
	callq	_slock_unlock
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movl	28(%rbx), %esi
	callq	*8(%rax)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	24(%rbx), %edi
	callq	_slock_unlock
	xorl	%eax, %eax
	callq	_audio_driver_callback
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	24(%rbx), %edi
	callq	_slock_lock
	cmpl	$0, 48(%rbx)
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 40(%rbx)
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	callq	*16(%rax)
	cmpq	$0, 40(%rbx)
	je	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, 4(%rbx)
	movl	32(%rbx), %edi
	callq	_scond_signal
	movl	24(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_scond_wait
	cmpq	$0, 40(%rbx)
	jne	LBB0_12
	jmp	LBB0_14
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_16:
	movl	32(%rbx), %edi
	callq	_scond_signal
	movl	$1, 4(%rbx)
	movl	24(%rbx), %edi
	callq	_slock_unlock
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_audio_thread_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_thread_loop
_audio_thread_loop:                     ; @audio_thread_loop
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #32]
	ldr	w0, [x0, #72]
	ldp	w2, w1, [x19, #64]
	ldp	w4, w3, [x19, #56]
	blr	x8
	str	x0, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	x0, [x19, #8]
	cmp	x0, #0
	mov	w8, #-1
	cneg	w8, w8, ne
	str	w8, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_4
; %bb.3:
	blr	x8
	str	w0, [x19, #52]
LBB0_4:
	ldr	w0, [x19, #32]
	bl	_scond_signal
	ldr	w0, [x19, #24]
	bl	_slock_unlock
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_14
; %bb.5:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #24]
	bl	_scond_wait
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_6
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_slock_unlock
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_15
; %bb.8:
	mov	w20, #1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldp	x0, x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #28]
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #24]
	bl	_slock_unlock
	bl	_audio_driver_callback
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x0, x8, [x19, #8]
	ldr	x8, [x8, #16]
	blr	x8
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w20, [x19, #4]
	ldr	w0, [x19, #32]
	bl	_scond_signal
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #24]
	bl	_scond_wait
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_13
	b	LBB0_9
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x19, #32]
	bl	_scond_signal
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x19, #24]
	bl	_slock_unlock
	ldp	x0, x8, [x19, #8]
	ldr	x1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_audio_thread_loop
.subsections_via_symbols
