	.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_nv
_convert_r8g8_snorm_l8x8_unorm_nv:      ## @convert_r8g8_snorm_l8x8_unorm_nv
	.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, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	16(%rbp), %r10d
	movl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r14d
	movl	%r10d, %r13d
	andl	$-2, %r13d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rdi, %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	-96(%rbp), %rdi                 ## 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, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -72(%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	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	%eax, %esi
	imull	-48(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	addl	%r8d, %r9d
	addl	%edx, %edi
	cmpq	%r14, %r12
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	testl	%r10d, %r10d
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %r10d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %ecx
	imull	%r8d, %ecx
	addq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	movl	%r12d, %r15d
	imull	%edx, %r15d
	addq	-128(%rbp), %r15                ## 8-byte Folded Reload
	testb	$1, %r10b
	je	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r9d, %ecx
	addq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	movl	%edi, %r15d
	addq	-104(%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), %eax
	movl	%eax, %ebx
	shrl	$16, %ebx
	movb	%bl, 2(%rcx,%rsi,4)
	movb	%ah, 1(%rcx,%rsi,4)
	movb	%al, (%rcx,%rsi,4)
	movb	$-1, 3(%rcx,%rsi,4)
	movl	4(%r15,%rsi,4), %eax
	movl	%eax, %ebx
	shrl	$16, %ebx
	movb	%bl, 6(%rcx,%rsi,4)
	movb	%ah, 5(%rcx,%rsi,4)
	movb	%al, 4(%rcx,%rsi,4)
	movb	$-1, 7(%rcx,%rsi,4)
	addq	$-8, %r11
	addq	$2, %rsi
	cmpl	%esi, %r13d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	subq	%r11, %rcx
	subq	%r11, %r15
	testb	$1, %r10b
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15), %eax
	movl	%eax, %esi
	shrl	$16, %esi
	movb	%sil, 2(%rcx)
	movb	%ah, 1(%rcx)
	movb	%al, (%rcx)
	movb	$-1, 3(%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_nv
.subsections_via_symbols

	.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_r8g8_snorm_l8x8_unorm_nv
lCPI0_0:
	.byte	0                               ; 0x0
	.byte	4                               ; 0x4
	.byte	8                               ; 0x8
	.byte	12                              ; 0xc
	.byte	16                              ; 0x10
	.byte	20                              ; 0x14
	.byte	24                              ; 0x18
	.byte	28                              ; 0x1c
	.byte	32                              ; 0x20
	.byte	36                              ; 0x24
	.byte	40                              ; 0x28
	.byte	44                              ; 0x2c
	.byte	48                              ; 0x30
	.byte	52                              ; 0x34
	.byte	56                              ; 0x38
	.byte	60                              ; 0x3c
lCPI0_1:
	.byte	0                               ; 0x0
	.byte	4                               ; 0x4
	.byte	8                               ; 0x8
	.byte	12                              ; 0xc
	.byte	16                              ; 0x10
	.byte	20                              ; 0x14
	.byte	24                              ; 0x18
	.byte	28                              ; 0x1c
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.byte	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_convert_r8g8_snorm_l8x8_unorm_nv:      ; @convert_r8g8_snorm_l8x8_unorm_nv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 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
	stp	w7, w3, [sp, #52]               ; 8-byte Folded Spill
	str	w5, [sp, #60]                   ; 4-byte Folded Spill
	stp	x0, x1, [sp, #24]               ; 16-byte Folded Spill
	ldr	w8, [sp, #160]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	cbz	w8, LBB0_23
; %bb.1:
	mov	w8, #0
	mov	w11, #0
	mov	x9, #0
	sub	w10, w6, #1
	lsl	x12, x10, #2
	add	x12, x12, #4
	ldr	x13, [sp, #32]                  ; 8-byte Folded Reload
	add	x13, x13, x12
	str	x13, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x13, [sp, #24]                  ; 8-byte Folded Reload
	add	x12, x13, x12
	str	x12, [sp, #8]                   ; 8-byte Folded Spill
	add	x13, x10, #1
	and	x0, x13, #0x1fffffff0
	lsl	x12, x0, #2
	str	x12, [sp]                       ; 8-byte Folded Spill
	and	x16, x13, #0x1fffffff8
	lsl	x3, x16, #2
	neg	x19, x16
Lloh0:
	adrp	x12, lCPI0_1@PAGE
Lloh1:
	ldr	q0, [x12, lCPI0_1@PAGEOFF]
	movi.2d	v4, #0xffffffffffffffff
	movi.2d	v19, #0xffffffffffffffff
Lloh2:
	adrp	x12, lCPI0_0@PAGE
Lloh3:
	ldr	q5, [x12, lCPI0_0@PAGEOFF]
	mov	w20, #255
	ldr	w12, [sp, #52]                  ; 4-byte Folded Reload
	mov	w21, w12
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	add	w11, w22, w8
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w8, w23, w8
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	cmp	x9, x12
	b.eq	LBB0_23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	mov	w22, w11
	mov	w23, w8
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w11, #0
	mov	x24, #0
	ldp	w12, w14, [sp, #56]             ; 8-byte Folded Reload
	mul	w12, w9, w12
	mul	w14, w9, w14
	ldp	x17, x15, [sp, #24]             ; 16-byte Folded Reload
	add	x25, x17, x12
	add	x26, x15, x14
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	add	x27, x1, x14
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
	add	x28, x14, x12
	add	x30, x17, x22
	add	x15, x15, x23
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x24, x24, #1
	add	w11, w11, w2
	add	w8, w12, w4
	cmp	x24, x21
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;       Child Loop BB0_16 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	mov	w11, w11
	mov	w12, w8
	cbz	w6, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mul	w8, w24, w4
	add	x7, x26, x8
	mul	w8, w24, w2
	add	x8, x25, x8
	cmp	w10, #7
	b.lo	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mul	w14, w24, w4
	add	x1, x26, x14
	mul	w17, w24, w2
	add	x5, x28, x17
	cmp	x1, x5
	b.hs	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x14, x27, x14
	add	x17, x25, x17
	cmp	x17, x14
	b.hs	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w14, #0
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	sub	w14, w6, w14
	add	x17, x7, #3
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x8], #4
	lsr	w5, w1, #16
	sturb	w5, [x17, #-1]
	lsr	w5, w1, #8
	sturb	w5, [x17, #-2]
	sturb	w1, [x17, #-3]
	strb	w20, [x17], #4
	subs	w14, w14, #1
	b.ne	LBB0_12
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w10, #15
	b.hs	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, #0
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x7, x7, x3
	lsl	x17, x1, #2
	add	x14, x17, x11
	add	x14, x30, x14
	add	x17, x17, x12
	add	x17, x15, x17
	add	x1, x19, x1
	add	x8, x8, x16, lsl #2
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q6, q7, [x14], #32
	ushr.4s	v21, v7, #16
	ushr.4s	v20, v6, #16
	tbl.16b	v18, { v20, v21 }, v0
	ushr.4s	v21, v7, #8
	ushr.4s	v20, v6, #8
	tbl.16b	v17, { v20, v21 }, v0
	tbl.16b	v16, { v6, v7 }, v0
	st4.8b	{ v16, v17, v18, v19 }, [x17], #32
	adds	x1, x1, #8
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x14, x16
	cmp	x13, x16
	b.eq	LBB0_5
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x17, x30, x11
	add	x1, x15, x12
	mov	x14, x0
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q20, q21, [x17]
	ldp	q22, q23, [x17, #32]
	ushr.4s	v27, v23, #16
	ushr.4s	v26, v22, #16
	ushr.4s	v25, v21, #16
	ushr.4s	v24, v20, #16
	tbl.16b	v3, { v24, v25, v26, v27 }, v5
	ushr.4s	v27, v23, #8
	ushr.4s	v26, v22, #8
	ushr.4s	v25, v21, #8
	ushr.4s	v24, v20, #8
	tbl.16b	v2, { v24, v25, v26, v27 }, v5
	tbl.16b	v1, { v20, v21, v22, v23 }, v5
	st4.16b	{ v1, v2, v3, v4 }, [x1], #64
	add	x17, x17, #64
	subs	x14, x14, #16
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	x13, x0
	b.eq	LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, x0
	tbnz	w13, #3, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, x0, lsl #2
	ldr	x14, [sp]                       ; 8-byte Folded Reload
	add	x7, x7, x14
	mov	x14, x0
	b	LBB0_11
LBB0_23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_r8g8_snorm_l8x8_unorm_nv
.subsections_via_symbols
