	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndout_sdl_wait                ## -- Begin function sndout_sdl_wait
	.p2align	4, 0x90
_sndout_sdl_wait:                       ## @sndout_sdl_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_buf_r@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_buf_w@GOTPCREL(%rip), %r15
	subl	(%r15), %eax
	addl	$-2, %eax
	movq	_BUF_MASK@GOTPCREL(%rip), %r12
	andl	(%r12), %eax
	movq	_BUF_LEN@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_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edi
	callq	_SDL_Delay
	movl	(%r14), %eax
	subl	(%r15), %eax
	addl	$-2, %eax
	andl	(%r12), %eax
	jmp	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf_r,4,2                      ## @buf_r
	.comm	_buf_w,4,2                      ## @buf_w
	.comm	_BUF_MASK,4,2                   ## @BUF_MASK
	.comm	_BUF_LEN,4,2                    ## @BUF_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sndout_sdl_wait                ; -- Begin function sndout_sdl_wait
	.p2align	2
_sndout_sdl_wait:                       ; @sndout_sdl_wait
	.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
Lloh0:
	adrp	x19, _buf_r@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buf_r@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _buf_w@GOTPAGE
Lloh3:
	ldr	x20, [x20, _buf_w@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w8, w8, w9
	sub	w8, w8, #2
Lloh4:
	adrp	x21, _BUF_MASK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _BUF_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w8, w8, w9
Lloh6:
	adrp	x22, _BUF_LEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BUF_LEN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #4
	bl	_SDL_Delay
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w8, w8, w9
	sub	w8, w8, #2
	ldr	w9, [x21]
	and	w8, w8, w9
	b	LBB0_1
LBB0_3:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_buf_r,4,2                      ; @buf_r
	.comm	_buf_w,4,2                      ; @buf_w
	.comm	_BUF_MASK,4,2                   ; @BUF_MASK
	.comm	_BUF_LEN,4,2                    ; @BUF_LEN
.subsections_via_symbols
