	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_r8g8_snorm_l8x8_unorm
_convert_r8g8_snorm_l8x8_unorm:         ## @convert_r8g8_snorm_l8x8_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
	.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, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	%r8d, %ebx
	movl	16(%rbp), %edi
	movl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %r10d
	movl	%edi, %r14d
	andl	$-2, %r14d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	incq	%r8
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%r8, %rsi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	cmpq	-104(%rbp), %r8                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbp)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %esi
	imull	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rsi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movl	%eax, %esi
	imull	-48(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	addl	%ebx, %r9d
	addl	%edx, %r8d
	cmpq	%r10, %r12
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	testl	%edi, %edi
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %edi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %ecx
	imull	%ebx, %ecx
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movl	%r12d, %r15d
	imull	%edx, %r15d
	addq	-136(%rbp), %r15                ## 8-byte Folded Reload
	testb	$1, %dil
	je	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %edx
	movl	%r9d, %ecx
	addq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	movl	%r8d, %r15d
	addq	-112(%rbp), %r15                ## 8-byte Folded Reload
	xorl	%esi, %esi
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r15,%rsi,4), %r10d
	movl	%r10d, %r13d
	shrl	$16, %r13d
	movb	%r13b, (%rcx,%rsi,4)
	movl	%r10d, %ebx
	shrl	$8, %ebx
	addb	$-128, %bl
	movb	%bl, 1(%rcx,%rsi,4)
	addb	$-128, %r10b
	movb	%r10b, 2(%rcx,%rsi,4)
	movl	4(%r15,%rsi,4), %eax
	movl	%eax, %ebx
	shrl	$16, %ebx
	movb	%bl, 4(%rcx,%rsi,4)
	movl	%eax, %edi
	shrl	$8, %edi
	addb	$-128, %dil
	movb	%dil, 5(%rcx,%rsi,4)
	addb	$-128, %al
	movb	%al, 6(%rcx,%rsi,4)
	addq	$-8, %r11
	addq	$2, %rsi
	cmpl	%esi, %r14d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	subq	%r11, %rcx
	subq	%r11, %r15
	movl	%edx, %ebx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	16(%rbp), %edi
	movl	24(%rbp), %r10d
	testb	$1, %dil
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15), %eax
	movl	%eax, %esi
	shrl	$16, %esi
	movb	%sil, (%rcx)
	movl	%eax, %esi
	shrl	$8, %esi
	addb	$-128, %sil
	movb	%sil, 1(%rcx)
	addb	$-128, %al
	movb	%al, 2(%rcx)
	jmp	LBB0_12
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_r8g8_snorm_l8x8_unorm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_r8g8_snorm_l8x8_unorm
_convert_r8g8_snorm_l8x8_unorm:         ; @convert_r8g8_snorm_l8x8_unorm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x9, #0
	mov	w10, w7
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
	cbz	w7, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	mul	w12, w9, w3
	add	x12, x0, x12
	mul	w13, w9, w5
	add	x13, x1, x13
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x11, x11, #1
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
	cbz	w6, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mul	w14, w11, w4
	add	x14, x13, x14
	mul	w15, w11, w2
	add	x15, x12, x15
	mov	x16, x6
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w17, [x15], #4
	lsr	w19, w17, #16
	strb	w19, [x14]
	lsr	w19, w17, #8
	eor	w19, w19, #0x80
	strb	w19, [x14, #1]
	eor	w17, w17, #0x80
	strb	w17, [x14, #2]
	add	x14, x14, #4
	subs	w16, w16, #1
	b.ne	LBB0_8
	b	LBB0_5
LBB0_9:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_r8g8_snorm_l8x8_unorm
.subsections_via_symbols
