	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_GetDMAPos               ## -- Begin function SNDDMA_GetDMAPos
	.p2align	4, 0x90
_SNDDMA_GetDMAPos:                      ## @SNDDMA_GetDMAPos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_dsound_init@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_TIME_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	_pDSBuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	leaq	-8(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	*(%rax)
	movl	-8(%rbp), %edx
	movq	_sample16@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dsound_init,4,2                ## @dsound_init
	.comm	_TIME_SAMPLES,4,2               ## @TIME_SAMPLES
	.comm	_pDSBuf,8,3                     ## @pDSBuf
	.comm	_sample16,4,2                   ## @sample16
	.comm	_dma,4,2                        ## @dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_GetDMAPos               ; -- Begin function SNDDMA_GetDMAPos
	.p2align	2
_SNDDMA_GetDMAPos:                      ; @SNDDMA_GetDMAPos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _dsound_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dsound_init@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TIME_SAMPLES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIME_SAMPLES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh6:
	adrp	x8, _pDSBuf@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pDSBuf@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	blr	x8
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x9, _sample16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sample16@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _dma@GOTPAGE
Lloh13:
	ldr	x9, [x9, _dma@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w0, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dsound_init,4,2                ; @dsound_init
	.comm	_TIME_SAMPLES,4,2               ; @TIME_SAMPLES
	.comm	_pDSBuf,8,3                     ; @pDSBuf
	.comm	_sample16,4,2                   ; @sample16
	.comm	_dma,4,2                        ; @dma
.subsections_via_symbols
