	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndout_alsa_wait               ## -- Begin function sndout_alsa_wait
	.p2align	4, 0x90
_sndout_alsa_wait:                      ## @sndout_alsa_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_handle@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_snd_pcm_avail
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_buffer_size@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4000, %edi                     ## imm = 0xFA0
	callq	_usleep
	movl	(%r14), %edi
	callq	_snd_pcm_avail
	testl	%eax, %eax
	jns	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handle,4,2                     ## @handle
	.comm	_buffer_size,4,2                ## @buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndout_alsa_wait               ; -- Begin function sndout_alsa_wait
	.p2align	2
_sndout_alsa_wait:                      ; @sndout_alsa_wait
	.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
Lloh0:
	adrp	x19, _handle@GOTPAGE
Lloh1:
	ldr	x19, [x19, _handle@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_snd_pcm_avail
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh2:
	adrp	x20, _buffer_size@GOTPAGE
Lloh3:
	ldr	x20, [x20, _buffer_size@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w0, w8, asr #1
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #4000
	bl	_usleep
	ldr	w0, [x19]
	bl	_snd_pcm_avail
	tbz	w0, #31, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_handle,4,2                     ; @handle
	.comm	_buffer_size,4,2                ; @buffer_size
.subsections_via_symbols
