	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScspConvert32uto16s            ## -- Begin function ScspConvert32uto16s
	.p2align	4, 0x90
_ScspConvert32uto16s:                   ## @ScspConvert32uto16s
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testq	%rcx, %rcx
	jle	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movl	$-32768, %r8d                   ## imm = 0x8000
	movl	$32767, %r9d                    ## imm = 0x7FFF
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$32767, 4(%rdx,%rbx,8)          ## imm = 0x7FFF
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx,4), %eax
	cmpl	$-32767, %eax                   ## imm = 0x8001
	cmovll	%r8d, %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	cmovgel	%r9d, %eax
	movl	%eax, (%rdx,%rbx,8)
	movl	(%rsi,%rbx,4), %r10d
	cmpl	$32768, %r10d                   ## imm = 0x8000
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%rbx), %r11
	cmpl	$-32769, %r10d                  ## imm = 0xFFFF7FFF
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-32768, 4(%rdx,%r11,4)         ## imm = 0x8000
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, 4(%rdx,%r11,4)
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	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	_ScspConvert32uto16s            ; -- Begin function ScspConvert32uto16s
	.p2align	2
_ScspConvert32uto16s:                   ; @ScspConvert32uto16s
	.cfi_startproc
; %bb.0:
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.1:
	add	x8, x2, #4
	mov	w9, #-32768
	mov	w10, #32767
	mov	w11, #-32769
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w10, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #4
	add	x1, x1, #4
	add	x8, x8, #8
	subs	x3, x3, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x0]
	cmn	w12, #8, lsl #12                ; =32768
	csel	w12, w12, w9, gt
	cmp	w12, w10
	csel	w12, w12, w10, lt
	stur	w12, [x8, #-4]
	ldr	w12, [x1]
	cmp	w12, #8, lsl #12                ; =32768
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, w11
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x8]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w12, [x8]
	b	LBB0_3
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
