	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wasapi_write_avail
_wasapi_write_avail:                    ## @wasapi_write_avail
	.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
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fifo_write_avail               ## TAILCALL
LBB0_1:
	movl	12(%rbx), %edi
	leaq	-12(%rbp), %rsi
	callq	__IAudioClient_GetCurrentPadding
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movslq	-12(%rbp), %rcx
	movslq	8(%rbx), %rdx
	imulq	%rcx, %rdx
	subq	%rdx, %rax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wasapi_write_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wasapi_write_avail
_wasapi_write_avail:                    ; @wasapi_write_avail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fifo_write_avail
LBB0_2:
	ldr	w0, [x19, #12]
	add	x1, sp, #12
	bl	__IAudioClient_GetCurrentPadding
	bl	_FAILED
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldrsw	x9, [sp, #12]
	ldrsw	x10, [x19, #8]
	msub	x0, x10, x9, x8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wasapi_write_avail
.subsections_via_symbols
