	.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_s4x4_uint_d24_unorm
LCPI0_0:
	.long	4294967055                      ## 0xffffff0f
	.long	4294967055                      ## 0xffffff0f
	.long	4294967055                      ## 0xffffff0f
	.long	4294967055                      ## 0xffffff0f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_convert_s4x4_uint_d24_unorm:           ## @convert_s4x4_uint_d24_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	$80, %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, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movl	16(%rbp), %r12d
	movl	%eax, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %r15d
	movl	%r12d, %r11d
	movl	%r11d, %eax
	andl	$-8, %eax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movl	%r11d, %eax
	andl	$3, %eax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	48(%rcx), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %rsi
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	addq	$12, %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967055,4294967055,4294967055,4294967055]
	leaq	12(%rcx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movl	$-241, %esi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-160(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	movl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbp)
	je	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	imull	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	leaq	(%r9,%rax,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rcx,%rdi,4), %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rcx,%rbx,4), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rbx,4), %rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	leaq	(%r9,%rdi,4), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rdi,4), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r10
	addl	%edx, %r9d
	addl	%r8d, %r13d
	cmpq	%r15, %r10
	je	LBB0_22
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r9d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$8, %r12d
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r10d, %eax
	imull	%edx, %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movl	%r10d, %ecx
	imull	%r8d, %ecx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%rcx,4), %rcx
	subq	%rax, %rcx
	movl	$0, %r14d
	cmpq	$32, %rcx
	jb	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, -216(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rbx
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movq	-168(%rbp), %rax                ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-48(%rbx,%rcx,4), %xmm1
	movups	-32(%rbx,%rcx,4), %xmm2
	andps	%xmm0, %xmm1
	andps	%xmm0, %xmm2
	movups	%xmm1, -48(%rdi,%rcx,4)
	movups	%xmm2, -32(%rdi,%rcx,4)
	movups	-16(%rbx,%rcx,4), %xmm1
	movups	(%rbx,%rcx,4), %xmm2
	andps	%xmm0, %xmm1
	andps	%xmm0, %xmm2
	movups	%xmm1, -16(%rdi,%rcx,4)
	movups	%xmm2, (%rdi,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, -208(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r10d, %eax
	imull	%edx, %eax
	movl	%r10d, %edi
	imull	%r8d, %edi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rdi,4), %rdi
	movups	(%rax,%rcx,4), %xmm1
	movups	16(%rax,%rcx,4), %xmm2
	andps	%xmm0, %xmm1
	andps	%xmm0, %xmm2
	movups	%xmm1, (%rdi,%rcx,4)
	movups	%xmm2, 16(%rdi,%rcx,4)
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r14
	cmpq	%r11, %rax
	je	LBB0_21
	jmp	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r14d, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %r15d
	movq	%r14, %rcx
	notq	%rcx
	addq	%r11, %rcx
	movq	-248(%rbp), %r12                ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rax,%rdi,4), %rax
	movq	-232(%rbp), %rdi                ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rdi,%rbx,4), %rdi
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdi,%r14,4), %r12d
	andl	%esi, %r12d
	movl	%r12d, (%rax,%r14,4)
	incq	%r14
	decq	%rbx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$3, %rcx
	movl	%r15d, %r12d
	movl	24(%rbp), %r15d
	jb	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rcx,%rdi,4), %rcx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-12(%rcx,%r14,4), %edi
	andl	%esi, %edi
	movl	%edi, -12(%rax,%r14,4)
	movl	-8(%rcx,%r14,4), %edi
	andl	%esi, %edi
	movl	%edi, -8(%rax,%r14,4)
	movl	-4(%rcx,%r14,4), %edi
	andl	%esi, %edi
	movl	%edi, -4(%rax,%r14,4)
	movl	(%rcx,%r14,4), %edi
	andl	%esi, %edi
	movl	%edi, (%rax,%r14,4)
	addq	$4, %r14
	cmpq	%r14, %r11
	jne	LBB0_20
	jmp	LBB0_21
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	testb	$1, -208(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_23:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_s4x4_uint_d24_unorm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_s4x4_uint_d24_unorm
_convert_s4x4_uint_d24_unorm:           ; @convert_s4x4_uint_d24_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
	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	q0, q1, [x27, #-32]
	ldp	q2, q3, [x27], #64
	bic.4s	v0, #240
	bic.4s	v1, #240
	bic.4s	v2, #240
	bic.4s	v3, #240
	stp	q0, q1, [x28, #-32]
	stp	q2, q3, [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
	and	w13, w13, #0xffffff0f
	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_s4x4_uint_d24_unorm
.subsections_via_symbols
