	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_bufpos_to_mixpos        ## -- Begin function DSOUND_bufpos_to_mixpos
	.p2align	4, 0x90
_DSOUND_bufpos_to_mixpos:               ## @DSOUND_bufpos_to_mixpos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	shll	$5, %eax
	movq	(%rdi), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	cmpl	$32, %ecx
	sete	%cl
	shll	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSOUND_bufpos_to_mixpos        ; -- Begin function DSOUND_bufpos_to_mixpos
	.p2align	2
_DSOUND_bufpos_to_mixpos:               ; @DSOUND_bufpos_to_mixpos
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #5
	ldr	x9, [x0]
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	cmp	w9, #32
	cset	w9, eq
	lsl	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
