	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_rgbi
_decode_rgbi:                           ## @decode_rgbi
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	(%rax), %r13
	movq	%rdx, %rdi
	callq	_get_bits1
	movq	%rbx, %rdx
	movl	(%rbx), %ecx
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	movl	$2, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	leal	-2(%rbx), %ecx
	movl	%eax, (%r13,%rcx,4)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	leal	-1(%rbx), %ecx
	movl	%eax, (%r13,%rcx,4)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%eax, (%r13,%rcx,4)
	incq	%r14
	movslq	(%rdx), %rax
	addl	$4, %ebx
	cmpq	%rax, %r14
	jl	LBB0_3
	jmp	LBB0_7
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.5:
	movl	$-128, %esi
	movl	$2, %ebx
	xorl	%ecx, %ecx
	movl	$-128, %r15d
	movl	$-128, %r14d
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	$2, %ecx
	callq	_get_vlc2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %r14d
	movzbl	%r14b, %r14d
	leal	-2(%rbx), %ecx
	movl	%r14d, (%r13,%rcx,4)
	addl	%esi, %r12d
	addl	%r12d, %r15d
	movzbl	%r15b, %r15d
	leal	-1(%rbx), %ecx
	movl	%r15d, (%r13,%rcx,4)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%eax, %r12d
	movzbl	%r12b, %esi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	%ebx, %eax
	movl	%esi, (%r13,%rax,4)
	incq	%rcx
	movslq	(%rdx), %rax
	addl	$4, %ebx
	cmpq	%rax, %rcx
	jl	LBB0_6
LBB0_7:
	cmpl	$2, 4(%rdx)
	jl	LBB0_17
## %bb.8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-100(%rbp), %ebx                ## 4-byte Reload
	incl	%ebx
	cmpl	4(%rdx), %ebx
	movq	%r8, %r12
	jge	LBB0_17
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r12, %rdi
	callq	_get_bits1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	testq	%rax, %rax
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%ecx, %ecx
	movq	%r12, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$2, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r8, %r15
	movq	%r8, %rdi
	movl	$8, %esi
	callq	_get_bits
	leal	-2(%rbx), %ecx
	movl	%eax, (%r12,%rcx,4)
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	leal	-1(%rbx), %ecx
	movl	%eax, (%r12,%rcx,4)
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%r15, %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%eax, (%r12,%rcx,4)
	incq	%r14
	movslq	(%rdx), %rax
	addl	$4, %ebx
	cmpq	%rax, %r14
	jl	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%ecx, %ecx
	movq	%r12, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	movl	$2, %esi
	movl	$2, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %ebx
	movl	$1, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %r13d
	shlq	$2, %rax
	negq	%rax
	movl	(%r12,%rax), %r15d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	(%r12), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r8, %r14
	movq	%r8, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	addl	%edi, %r15d
	movzbl	%r15b, %r15d
	leal	-2(%rsi), %ecx
	movl	%r15d, (%r12,%rcx,4)
	addl	%edi, %ebx
	addl	%ebx, %r13d
	movzbl	%r13b, %r13d
	leal	-1(%rsi), %ecx
	movl	%r13d, (%r12,%rcx,4)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%eax, %ebx
	movzbl	%bl, %ebx
	movl	%esi, %eax
	movl	%ebx, (%r12,%rax,4)
	incq	%rcx
	movslq	(%rdx), %rax
	addl	$4, %esi
	cmpq	%rax, %rcx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_rgbi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_rgbi
_decode_rgbi:                           ; @decode_rgbi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.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
	mov	x19, x2
	mov	x22, x0
	ldr	x24, [x0, #8]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x1]
	ldr	x25, [x8]
	mov	x0, x2
	bl	_get_bits1
	ldr	w8, [x22]
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	cmp	w8, #1
	cbz	x0, LBB0_4
; %bb.1:
	b.lt	LBB0_7
; %bb.2:
	mov	x20, #0
	mov	w21, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	sub	w8, w21, #2
	str	w0, [x25, w8, uxtw #2]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	sub	w8, w21, #1
	str	w0, [x25, w8, uxtw #2]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x25, w21, uxtw #2]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	w21, w21, #4
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_4:
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
	mov	w26, #-128
	mov	w21, #2
	mov	w27, #-128
	mov	w28, #-128
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x22, x0
	ldr	x8, [x24]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x23, x0
	ldr	x8, [x24]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	add	w8, w22, w28
	and	w28, w8, #0xff
	sub	w8, w21, #2
	str	w28, [x25, w8, uxtw #2]
	add	w8, w23, w22
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	add	w9, w8, w27
	and	w27, w9, #0xff
	sub	w9, w21, #1
	str	w27, [x25, w9, uxtw #2]
	add	w8, w8, w26
	add	w8, w8, w0
	and	w26, w8, #0xff
	str	w26, [x25, w21, uxtw #2]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	w21, w21, #4
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.le	LBB0_17
; %bb.8:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8]
	add	x25, x25, x8, lsl #2
	mov	w20, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8]
	add	x25, x25, x8, lsl #2
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	add	w20, w20, #1
	ldr	w8, [x22, #4]
	cmp	w20, w8
	b.ge	LBB0_17
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x19
	bl	_get_bits1
	ldr	w8, [x22]
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	cmp	w8, #1
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, #0
	mov	w21, #2
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	sub	w8, w21, #2
	str	w0, [x25, w8, uxtw #2]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	sub	w8, w21, #1
	str	w0, [x25, w8, uxtw #2]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	str	w0, [x25, w21, uxtw #2]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	w21, w21, #4
	cmp	x20, x8
	b.lt	LBB0_13
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	b.lt	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x28, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	mov	w26, #2
	sub	w9, w26, w8
	ldr	w20, [x25, w9, sxtw #2]
	mov	w9, #1
	sub	w9, w9, w8
	ldr	w27, [x25, w9, sxtw #2]
	neg	w8, w8
	ldr	w21, [x25, w8, sxtw #2]
LBB0_16:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x22, x0
	ldr	x8, [x24]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	mov	x23, x0
	ldr	x8, [x24]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	mov	w3, #2
	bl	_get_vlc2
	add	w8, w22, w21
	and	w21, w8, #0xff
	sub	w8, w26, #2
	str	w21, [x25, w8, uxtw #2]
	add	w8, w23, w22
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	add	w9, w8, w27
	and	w27, w9, #0xff
	sub	w9, w26, #1
	str	w27, [x25, w9, uxtw #2]
	add	w8, w8, w20
	add	w8, w8, w0
	and	w20, w8, #0xff
	str	w20, [x25, w26, uxtw #2]
	add	x28, x28, #1
	ldrsw	x8, [x22]
	add	w26, w26, #4
	cmp	x28, x8
	b.lt	LBB0_16
	b	LBB0_9
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_rgbi
.subsections_via_symbols
