	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_yuv_frame
_decode_yuv_frame:                      ## @decode_yuv_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movabsq	$549755814016, %rax             ## imm = 0x8000000080
	movq	%rax, -60(%rbp)
	movl	$128, -52(%rbp)
	movq	8(%rdx), %rax
	movq	(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r13
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_skip_bits
	movq	%r12, %r14
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_1:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	leaq	-68(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_read_code_table
	testl	%eax, %eax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.6:
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_read_code_table
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpl	$0, (%rcx)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_9
## %bb.10:
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-60(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_read_yuv_component_line
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %r15
	movq	%r15, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	$1, %r9d
	callq	_read_yuv_component_line
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-52(%rbp), %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movl	$1, %r9d
	callq	_read_yuv_component_line
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movslq	(%rax), %rcx
	leaq	(%rdx,%rcx,8), %rdx
	movslq	4(%rax), %rcx
	leaq	(%rsi,%rcx,8), %rsi
	movslq	8(%rax), %rax
	leaq	(%rbx,%rax,8), %rbx
	incl	%r12d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpl	(%rax), %r12d
	jl	LBB0_11
LBB0_9:
	leaq	-68(%rbp), %rdi
	callq	_ff_free_vlc
	leaq	-64(%rbp), %rdi
	callq	_ff_free_vlc
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_7:
	movl	$1, %r14d
LBB0_3:
	movl	%eax, %r12d
	leal	1(%r14), %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ff_free_vlc
	addq	$4, %r15
	decq	%rbx
	jne	LBB0_4
## %bb.5:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%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	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Blocked YUV"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Could not read code table %d.\n"

	.no_dead_strip	_decode_yuv_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_yuv_frame
_decode_yuv_frame:                      ; @decode_yuv_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	x28, [x0]
	movi.2s	v0, #128
	str	d0, [sp, #24]
	mov	w8, #128
	str	w8, [sp, #32]
	ldr	x8, [x2, #8]
	ldp	x22, x23, [x8]
	ldr	x24, [x8, #16]
	mov	x0, x1
	mov	w1, #8
	bl	_skip_bits
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_request_sample
Lloh5:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
	b	LBB0_13
LBB0_2:
	add	x25, sp, #16
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	bl	_read_code_table
	mov	x27, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	add	x25, x25, #4
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	bl	_read_code_table
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w8, [x28]
	cmp	w8, #0
	b.le	LBB0_7
; %bb.5:
	mov	x26, x28
	mov	w28, #0
	add	x8, sp, #24
	orr	x10, x8, #0x4
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	add	x27, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x4, x22
	mov	w5, #0
	bl	_read_yuv_component_line
	mov	x0, x19
	mov	x1, x21
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x25
	mov	x4, x23
	mov	w5, #1
	bl	_read_yuv_component_line
	mov	x0, x19
	mov	x1, x21
	mov	x2, x27
	mov	x3, x25
	mov	x4, x24
	mov	w5, #1
	bl	_read_yuv_component_line
	ldr	x8, [x20]
	ldpsw	x9, x10, [x8]
	add	x22, x22, x9, lsl #3
	add	x23, x23, x10, lsl #3
	ldrsw	x8, [x8, #8]
	add	x24, x24, x8, lsl #3
	add	w28, w28, #1
	ldr	w8, [x26]
	cmp	w28, w8
	b.lt	LBB0_6
LBB0_7:
	add	x0, sp, #16
	bl	_ff_free_vlc
	mov	x0, x25
	bl	_ff_free_vlc
	mov	w26, #0
	b	LBB0_13
LBB0_8:
	mov	w20, #0
	mov	x26, x27
	b	LBB0_10
LBB0_9:
	mov	x26, x0
	mov	w20, #1
LBB0_10:
	add	x21, sp, #16
	add	x0, sp, #16
	bl	_ff_free_vlc
	tbnz	w27, #31, LBB0_12
; %bb.11:
	add	x0, x21, #4
	bl	_ff_free_vlc
LBB0_12:
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_av_log
LBB0_13:
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x26
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Blocked YUV"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Could not read code table %d.\n"

	.no_dead_strip	_decode_yuv_frame
.subsections_via_symbols
