	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SNDMacGetAudioSpace
_SNDMacGetAudioSpace:                   ## @SNDMacGetAudioSpace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_write_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_read_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%esi, %eax
	subl	%edx, %eax
	xorl	%ecx, %ecx
	cmpq	%rdx, %rsi
	jge	LBB0_2
## %bb.1:
	movq	_BUFFER_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	addl	%ecx, %eax
	sarl	$2, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_pos,8,3                  ## @write_pos
	.comm	_read_pos,8,3                   ## @read_pos
	.comm	_BUFFER_LEN,8,3                 ## @BUFFER_LEN
	.no_dead_strip	_SNDMacGetAudioSpace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SNDMacGetAudioSpace
_SNDMacGetAudioSpace:                   ; @SNDMacGetAudioSpace
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _write_pos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_pos@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _read_pos@GOTPAGE
Lloh4:
	ldr	x9, [x9, _read_pos@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _BUFFER_LEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BUFFER_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x9, x8
	csel	w10, w10, wzr, lt
	sub	w8, w9, w8
	add	w8, w8, w10
	asr	w0, w8, #2
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_write_pos,8,3                  ; @write_pos
	.comm	_read_pos,8,3                   ; @read_pos
	.comm	_BUFFER_LEN,8,3                 ; @BUFFER_LEN
	.no_dead_strip	_SNDMacGetAudioSpace
.subsections_via_symbols
