	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wasapi_flush_buffer
_wasapi_flush_buffer:                   ## @wasapi_flush_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	(%rdi), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
LBB0_3:
	movl	8(%rbx), %edi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rsi
	callq	__IAudioRenderClient_GetBuffer
	movl	%eax, %edi
	callq	_FAILED
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movl	12(%rbx), %edi
	movq	-32(%rbp), %rsi
	movq	%r14, %rdx
	callq	_fifo_read
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	__IAudioRenderClient_ReleaseBuffer
	movl	%eax, %edi
	callq	_FAILED
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wasapi_flush_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wasapi_flush_buffer
_wasapi_flush_buffer:                   ; @wasapi_flush_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0]
	ldr	w0, [x0, #8]
	udiv	x20, x1, x8
	add	x2, sp, #8
	mov	x1, x20
	bl	__IAudioRenderClient_GetBuffer
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #12]
	ldr	x1, [sp, #8]
	mov	x2, x21
	bl	_fifo_read
	ldr	w0, [x19, #8]
	mov	x1, x20
	mov	w2, #0
	bl	__IAudioRenderClient_ReleaseBuffer
	bl	_FAILED
	cmp	x0, #0
	cset	w0, eq
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wasapi_flush_buffer
.subsections_via_symbols
