	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_i_frame
_decode_i_frame:                        ## @decode_i_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r13d
	movq	%rsi, %rdi
	callq	_AV_RL32
	cmpl	$67108865, %eax                 ## imm = 0x4000001
	jae	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leal	12(%r12), %r13d
	cmpl	%ebx, %r13d
	jbe	LBB0_5
## %bb.3:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_1
LBB0_5:
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,4), %rdi
	addq	$16, %rdi
	callq	_AV_RL32
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r13,%rax,4), %edx
	movl	%eax, %ecx
	shll	$2, %ecx
	cmpl	%ebx, %edx
	jne	LBB0_7
## %bb.6:
	cmpl	$67108865, %ecx                 ## imm = 0x4000001
	jae	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %rsi
	addq	$48, %rsi
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_read_huffman_tables
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rbx
	xorl	%edi, %edi
	subq	%r13, %rbx
	setae	%dil
	callq	_av_assert0
	leaq	44(%r14), %rdi
	addq	$16, %r15
	shll	$3, %r12d
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_init_get_bits
	shrq	$2, %rbx
	leaq	24(%r14), %rdi
	leaq	40(%r14), %rsi
	movl	%ebx, %edx
	callq	_av_fast_padded_malloc
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.11:
	movl	%ebx, %edx
	shrl	$2, %edx
	movq	%r13, %rsi
	callq	*32(%r14)
	leaq	20(%r14), %r15
	movq	24(%r14), %rsi
	shll	$3, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_init_get_bits
	movl	$0, (%r14)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.12:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_7:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_av_log
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	addl	$16, %r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_19
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_decode_i_mb
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_idct_put
	addl	$16, %ebx
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_15
	jmp	LBB0_18
LBB0_9:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movl	%eax, %r13d
	jmp	LBB0_21
LBB0_19:
	movl	16(%r14), %esi
	movq	_ACDC_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	xorl	%r13d, %r13d
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_21
## %bb.20:
	movq	8(%r14), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet size too small\n"

L_.str.1:                               ## @.str.1
	.asciz	"size mismatch %d %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error reading Huffman tables.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACDC_VLC_BITS,4,2              ## @ACDC_VLC_BITS
L_.str.3:                               ## @.str.3
	.asciz	"end mismatch\n"

	.no_dead_strip	_decode_i_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_i_frame
_decode_i_frame:                        ; @decode_i_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	w24, w25, [x8]
	mov	x0, x1
	bl	_AV_RL32
	mov	w8, #1
	movk	w8, #1024, lsl #16
	cmp	w0, w8
	b.hs	LBB0_16
; %bb.1:
	mov	x20, x0
	add	w26, w0, #12
	cmp	w26, w21
	b.ls	LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_3:
	add	x23, x22, w20, uxtw #2
	add	x0, x23, #16
	bl	_AV_RL32
	lsl	w2, w0, #2
	add	w8, w26, w2
	cmp	w8, w21
	mov	w8, #1
	movk	w8, #1024, lsl #16
	ccmp	w2, w8, #2, eq
	b.lo	LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	stp	x20, x21, [sp, #8]
	str	x2, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_5:
	add	x1, x23, #48
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_read_huffman_tables
	cbz	x0, LBB0_14
; %bb.6:
	mov	x23, x0
	add	x8, x22, w21, sxtw #2
	subs	x21, x8, x0
	cset	w0, hs
	bl	_av_assert0
	add	x0, x19, #44
	add	x1, x22, #16
	lsl	w2, w20, #3
	bl	_init_get_bits
	lsr	x21, x21, #2
	add	x0, x19, #24
	add	x1, x19, #40
	mov	x2, x21
	bl	_av_fast_padded_malloc
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.7:
	ldr	x8, [x19, #32]
	lsr	w2, w21, #2
	mov	x1, x23
	blr	x8
	add	x20, x19, #20
	ldr	x1, [x19, #24]
	lsl	w2, w21, #3
	mov	x0, x20
	bl	_init_get_bits
	str	wzr, [x19]
	cmp	w25, #1
	b.lt	LBB0_19
; %bb.8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #16
	cmp	w21, w25
	b.ge	LBB0_19
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w22, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_decode_i_mb
	tbnz	w0, #31, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_idct_put
	add	w22, w22, #16
	cmp	w22, w24
	b.lt	LBB0_12
	b	LBB0_9
LBB0_14:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_15:
	bl	_av_log
LBB0_16:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_19:
	ldr	w1, [x19, #16]
Lloh21:
	adrp	x8, _ACDC_VLC_BITS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ACDC_VLC_BITS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #3
	bl	_get_vlc2
	cmp	w0, #256
	b.eq	LBB0_21
; %bb.20:
	ldr	x0, [x19, #8]
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
LBB0_21:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet size too small\n"

l_.str.1:                               ; @.str.1
	.asciz	"size mismatch %d %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error reading Huffman tables.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACDC_VLC_BITS,4,2              ; @ACDC_VLC_BITS
l_.str.3:                               ; @.str.3
	.asciz	"end mismatch\n"

	.no_dead_strip	_decode_i_frame
.subsections_via_symbols
