	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function convert_s1_uint_d15_unorm
LCPI0_0:
	.long	16776704                        ## 0xfffe00
	.long	16776704                        ## 0xfffe00
	.long	16776704                        ## 0xfffe00
	.long	16776704                        ## 0xfffe00
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_convert_s1_uint_d15_unorm:             ## @convert_s1_uint_d15_unorm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	16(%rbp), %r12d
	movl	%r12d, %eax
	andl	$-8, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%r12, %rax
	negq	%rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	16(%rcx), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	leaq	(,%r12,4), %r13
	andq	$-32, %r13
	addq	$4, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	addq	$4, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [16776704,16776704,16776704,16776704]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rdi, %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	-144(%rbp), %rdi                ## 8-byte Folded Reload
	je	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	movl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbp)
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $esi killed $esi killed $rsi def $rsi
	imull	-48(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r11d, %r11d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r10
	addl	%edx, %r9d
	addl	%r8d, %r11d
	movl	24(%rbp), %eax
	cmpq	%rax, %r10
	je	LBB0_17
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##       Child Loop BB0_15 Depth 3
	cmpl	$0, 16(%rbp)
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r9d, %eax
	movl	%r11d, %ecx
	cmpl	$8, 16(%rbp)
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r10d, %esi
	imull	%edx, %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%rsi,4), %rsi
	movl	%r10d, %edi
	imull	%r8d, %edi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rdi,4), %rdi
	subq	%rsi, %rdi
	movl	$0, %r14d
	cmpq	$32, %rdi
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqu	-16(%rdi,%rbx), %xmm2
	movdqu	(%rdi,%rbx), %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$8, %xmm4
	movdqa	%xmm3, %xmm5
	pslld	$8, %xmm5
	pand	%xmm0, %xmm4
	pand	%xmm0, %xmm5
	movdqa	%xmm2, %xmm6
	psrld	$7, %xmm6
	paddd	%xmm4, %xmm6
	movdqa	%xmm3, %xmm4
	psrld	$7, %xmm4
	paddd	%xmm5, %xmm4
	pslld	$8, %xmm6
	pslld	$8, %xmm4
	pand	%xmm1, %xmm2
	por	%xmm6, %xmm2
	pand	%xmm1, %xmm3
	por	%xmm4, %xmm3
	movdqu	%xmm2, -16(%rsi,%rbx)
	movdqu	%xmm3, (%rsi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movq	%rsi, %r14
	cmpq	%r12, %rsi
	je	LBB0_16
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %r15
	testb	$1, %r12b
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%r10d, %esi
	imull	%edx, %esi
	movl	%r10d, %edi
	imull	%r8d, %edi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rsi,4), %rsi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rdi,4), %r15
	movl	(%rsi,%r14,4), %ebx
	movl	%ebx, %edi
	shll	$8, %edi
	andl	$16776704, %edi                 ## imm = 0xFFFE00
	movl	%ebx, %esi
	shrl	$7, %esi
	addl	%edi, %esi
	shll	$8, %esi
	andl	$1, %ebx
	orl	%esi, %ebx
	movl	%ebx, (%r15,%r14,4)
	movq	%r14, %r15
	orq	$1, %r15
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	notq	%r14
	cmpq	-192(%rbp), %r14                ## 8-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rdi
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%rdi,%r15,4), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	andl	$16776704, %ecx                 ## imm = 0xFFFE00
	movl	%eax, %ebx
	shrl	$7, %ebx
	addl	%ecx, %ebx
	shll	$8, %ebx
	andl	$1, %eax
	orl	%ebx, %eax
	movl	%eax, -4(%rsi,%r15,4)
	movl	(%rdi,%r15,4), %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	andl	$16776704, %ecx                 ## imm = 0xFFFE00
	movl	%eax, %ebx
	shrl	$7, %ebx
	addl	%ecx, %ebx
	shll	$8, %ebx
	andl	$1, %eax
	orl	%ebx, %eax
	movl	%eax, (%rsi,%r15,4)
	addq	$2, %r15
	cmpq	%r15, %r12
	jne	LBB0_15
	jmp	LBB0_16
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_s1_uint_d15_unorm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_s1_uint_d15_unorm
_convert_s1_uint_d15_unorm:             ; @convert_s1_uint_d15_unorm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [sp, #112]
	cbz	w8, LBB0_14
; %bb.1:
	mov	w15, #0
	mov	w16, #0
	mov	x9, #0
	mov	w10, w7
	mov	w11, w6
	and	x12, x11, #0xfffffff0
	add	x14, x1, #32
	add	x13, x0, #32
	stp	x13, x14, [sp]                  ; 16-byte Folded Spill
	mov	w17, #16776704
	dup.4s	v0, w17
	movi.4s	v1, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	w16, w16, w5
	add	w15, w15, w3
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	mov	w15, w15
	mov	w16, w16
	cbz	w7, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	mov	w28, #0
	mov	x17, #0
	mul	w19, w9, w5
	add	x19, x1, w19, uxtw #2
	mul	w20, w9, w3
	add	x20, x0, w20, uxtw #2
	ldr	x13, [sp, #8]                   ; 8-byte Folded Reload
	add	x21, x13, x16, lsl #2
	ldr	x13, [sp]                       ; 8-byte Folded Reload
	add	x22, x13, x15, lsl #2
	add	x23, x0, x15, lsl #2
	add	x24, x1, x16, lsl #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x17, x17, #1
	add	w28, w26, w4
	add	w27, w25, w2
	cmp	x17, x10
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	mov	w25, w27
	mov	w26, w28
	cbz	w6, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x30, #0
	cmp	w6, #16
	b.lo	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mul	w13, w17, w2
	add	x13, x20, w13, uxtw #2
	mul	w14, w17, w4
	add	x14, x19, w14, uxtw #2
	sub	x13, x14, x13
	cmp	x13, #64
	b.lo	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x28, x21, w28, uxtw #2
	mov	x30, x12
	add	x27, x22, w27, uxtw #2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q2, q3, [x27, #-32]
	ldp	q4, q5, [x27], #64
	shl.4s	v6, v2, #8
	shl.4s	v7, v3, #8
	shl.4s	v16, v4, #8
	shl.4s	v17, v5, #8
	and.16b	v6, v6, v0
	and.16b	v7, v7, v0
	and.16b	v16, v16, v0
	and.16b	v17, v17, v0
	usra.4s	v6, v2, #7
	usra.4s	v7, v3, #7
	usra.4s	v16, v4, #7
	usra.4s	v17, v5, #7
	shl.4s	v6, v6, #8
	shl.4s	v7, v7, #8
	shl.4s	v16, v16, #8
	shl.4s	v17, v17, #8
	and.16b	v2, v2, v1
	and.16b	v3, v3, v1
	and.16b	v4, v4, v1
	and.16b	v5, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	orr.16b	v4, v16, v4
	stp	q2, q3, [x28, #-32]
	orr.16b	v2, v17, v5
	stp	q4, q2, [x28], #64
	subs	x30, x30, #16
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x30, x12
	cmp	x12, x11
	b.eq	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x13, x30, x25
	add	x27, x23, x13, lsl #2
	add	x13, x30, x26
	add	x28, x24, x13, lsl #2
	sub	x30, x11, x30
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w13, [x27], #4
	lsl	w14, w13, #8
	and	w14, w14, #0xfffe00
	add	w14, w14, w13, lsr #7
	and	w13, w13, #0x1
	bfi	w13, w14, #8, #24
	str	w13, [x28], #4
	subs	x30, x30, #1
	b.ne	LBB0_13
	b	LBB0_5
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_s1_uint_d15_unorm
.subsections_via_symbols
