	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdlConvert32uto16s
_sdlConvert32uto16s:                    ## @sdlConvert32uto16s
	.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
	testq	%rcx, %rcx
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r8
	xorl	%r9d, %r9d
	movq	_soundvolume@GOTPCREL(%rip), %r10
	movq	_soundmaxvolume@GOTPCREL(%rip), %r11
	movl	$-32768, %r14d                  ## imm = 0x8000
	movl	$32767, %ebx                    ## imm = 0x7FFF
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %eax
	imull	(%rdi,%r9,4), %eax
	cltd
	idivl	(%r11)
	movl	%eax, (%rdi,%r9,4)
	cmpl	$-32767, %eax                   ## imm = 0x8001
	cmovll	%r14d, %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	cmovgel	%ebx, %eax
	movl	%eax, (%r8,%r9,8)
	movl	(%r10), %eax
	imull	(%rsi,%r9,4), %eax
	cltd
	idivl	(%r11)
	movl	%eax, (%rsi,%r9,4)
	cmpl	$-32767, %eax                   ## imm = 0x8001
	cmovll	%r14d, %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	cmovgel	%ebx, %eax
	movl	%eax, 4(%r8,%r9,8)
	incq	%r9
	cmpq	%r9, %rcx
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_soundvolume,4,2                ## @soundvolume
	.comm	_soundmaxvolume,4,2             ## @soundmaxvolume
	.no_dead_strip	_sdlConvert32uto16s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdlConvert32uto16s
_sdlConvert32uto16s:                    ; @sdlConvert32uto16s
	.cfi_startproc
; %bb.0:
	cmp	x3, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _soundvolume@GOTPAGE
Lloh1:
	ldr	x8, [x8, _soundvolume@GOTPAGEOFF]
Lloh2:
	adrp	x9, _soundmaxvolume@GOTPAGE
Lloh3:
	ldr	x9, [x9, _soundmaxvolume@GOTPAGEOFF]
	mov	w10, #-32768
	mov	w11, #32767
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x0]
	ldr	w13, [x8]
	mul	w12, w13, w12
	ldr	w13, [x9]
	sdiv	w12, w12, w13
	str	w12, [x0], #4
	cmn	w12, #8, lsl #12                ; =32768
	csel	w12, w12, w10, gt
	cmp	w12, w11
	csel	w12, w12, w11, lt
	str	w12, [x2]
	ldr	w12, [x1]
	ldr	w13, [x8]
	mul	w12, w13, w12
	ldr	w13, [x9]
	sdiv	w12, w12, w13
	str	w12, [x1], #4
	cmn	w12, #8, lsl #12                ; =32768
	csel	w12, w12, w10, gt
	cmp	w12, w11
	csel	w12, w12, w11, lt
	str	w12, [x2, #4]
	add	x2, x2, #8
	subs	x3, x3, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_soundvolume,4,2                ; @soundvolume
	.comm	_soundmaxvolume,4,2             ; @soundmaxvolume
	.no_dead_strip	_sdlConvert32uto16s
.subsections_via_symbols
