	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_rgb24_frame
_decode_rgb24_frame:                    ## @decode_rgb24_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movabsq	$549755814016, %rax             ## imm = 0x8000000080
	movq	%rax, -60(%rbp)
	movl	$128, -52(%rbp)
	movq	8(%rdx), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	movl	$16, %esi
	callq	_skip_bits
	leaq	-72(%rbp), %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_read_code_table
	testl	%eax, %eax
	js	LBB0_1
## %bb.5:
	leaq	-68(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_read_code_table
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_read_code_table
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.10:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-60(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %r8
	callq	_read_rgb24_component_line
	leaq	4(%rbx), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_read_rgb24_component_line
	leaq	8(%rbx), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_read_rgb24_component_line
	movq	(%r14), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	incl	%r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	jl	LBB0_11
LBB0_12:
	leaq	-72(%rbp), %rdi
	callq	_ff_free_vlc
	leaq	-68(%rbp), %rdi
	callq	_ff_free_vlc
	leaq	-64(%rbp), %rdi
	callq	_ff_free_vlc
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_6:
	movl	$1, %r14d
	jmp	LBB0_2
LBB0_8:
	movl	$2, %r14d
LBB0_2:
	movl	%eax, %r12d
	leal	1(%r14), %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ff_free_vlc
	addq	$4, %r13
	decq	%rbx
	jne	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	callq	_av_log
	movl	%r12d, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read code table %d.\n"

	.no_dead_strip	_decode_rgb24_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_rgb24_frame
_decode_rgb24_frame:                    ; @decode_rgb24_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x27, [x0]
	movi.2s	v0, #128
	str	d0, [sp, #24]
	mov	w8, #128
	str	w8, [sp, #32]
	ldr	x8, [x2, #8]
	ldr	x22, [x8]
	mov	x0, x1
	mov	w1, #16
	bl	_skip_bits
	add	x23, sp, #12
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_read_code_table
	mov	x26, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	add	x23, x23, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_read_code_table
	tbnz	w0, #31, LBB0_8
; %bb.2:
	add	x8, sp, #12
	add	x24, x8, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_read_code_table
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [x27]
	cmp	w8, #0
	b.le	LBB0_6
; %bb.4:
	mov	w28, #0
	add	x8, sp, #24
	orr	x25, x8, #0x4
	add	x26, x8, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x4, x22
	bl	_read_rgb24_component_line
	add	x4, x22, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x23
	bl	_read_rgb24_component_line
	add	x4, x22, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	x3, x24
	bl	_read_rgb24_component_line
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	add	x22, x22, x8, lsl #2
	add	w28, w28, #1
	ldr	w8, [x27]
	cmp	w28, w8
	b.lt	LBB0_5
LBB0_6:
	add	x0, sp, #12
	bl	_ff_free_vlc
	mov	x0, x23
	bl	_ff_free_vlc
	mov	x0, x24
	bl	_ff_free_vlc
	mov	w25, #0
	b	LBB0_14
LBB0_7:
	mov	w21, #0
	mov	w20, #0
	mov	x25, x26
	b	LBB0_10
LBB0_8:
	mov	x25, x0
	mov	w21, #1
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	x25, x0
	mov	w21, #0
	mov	w20, #2
LBB0_10:
	add	x22, sp, #12
	add	x0, sp, #12
	bl	_ff_free_vlc
	tbnz	w26, #31, LBB0_13
; %bb.11:
	add	x0, x22, #4
	bl	_ff_free_vlc
	tbnz	w21, #0, LBB0_13
; %bb.12:
	add	x8, sp, #12
	add	x0, x8, #8
	bl	_ff_free_vlc
LBB0_13:
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_av_log
LBB0_14:
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read code table %d.\n"

	.no_dead_strip	_decode_rgb24_frame
.subsections_via_symbols
