	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_write_cb
_audio_write_cb:                        ## @audio_write_cb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%r9, %r9
	je	LBB0_6
## %bb.1:
	cmpl	$1, (%r9)
	jne	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%r9), %rax
	movl	(%rax), %r15d
	movq	8(%rax), %r12
	movl	4(%rdi), %edi
	callq	_slock_lock
	movl	8(%rbx), %edi
	callq	_fifo_read_avail
	cmpl	%r15d, %eax
	jae	LBB0_4
## %bb.3:
	movq	_kAudioUnitRenderAction_OutputIsSilence@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_fifo_read
LBB0_5:
	movl	4(%rbx), %edi
	callq	_slock_unlock
	movl	(%rbx), %edi
	callq	_scond_signal
LBB0_6:
	movq	_noErr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_noErr,4,2                      ## @noErr
	.comm	_kAudioUnitRenderAction_OutputIsSilence,4,2 ## @kAudioUnitRenderAction_OutputIsSilence
	.no_dead_strip	_audio_write_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_write_cb
_audio_write_cb:                        ; @audio_write_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x5, LBB0_6
; %bb.1:
	ldr	w8, [x5]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x5, #8]
	ldr	w21, [x8]
	ldr	x22, [x8, #8]
	ldr	w0, [x0, #4]
	bl	_slock_lock
	ldr	w0, [x19, #8]
	bl	_fifo_read_avail
	cmp	w0, w21
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _kAudioUnitRenderAction_OutputIsSilence@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kAudioUnitRenderAction_OutputIsSilence@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_fifo_read
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_slock_unlock
	ldr	w0, [x19]
	bl	_scond_signal
LBB0_6:
Lloh3:
	adrp	x8, _noErr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _noErr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_noErr,4,2                      ; @noErr
	.comm	_kAudioUnitRenderAction_OutputIsSilence,4,2 ; @kAudioUnitRenderAction_OutputIsSilence
	.no_dead_strip	_audio_write_cb
.subsections_via_symbols
