	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pic_hdr
_decode_pic_hdr:                        ## @decode_pic_hdr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	cmpl	$31, %eax
	jne	LBB0_1
## %bb.2:
	movl	4(%r12), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, 4(%r12)
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_FRAMETYPE_INTRA@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_12
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, 8(%r12)
	movl	4(%r12), %eax
	movq	_FRAMETYPE_INTRA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_decode_gop_header
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$0, 12(%r12)
	movl	4(%r12), %eax
LBB0_8:
	movq	_FRAMETYPE_INTER_SCAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.9:
	cmpl	$0, 36(%r12)
	je	LBB0_10
LBB0_13:
	movq	_FRAMETYPE_NULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_23
## %bb.14:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, 16(%r12)
	xorl	%ebx, %ebx
	movl	$0, %ecx
	testb	$1, %al
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_get_bits_long
	movl	%eax, %ecx
	movl	16(%r12), %eax
LBB0_16:
	movl	%ecx, 32(%r12)
	testb	$16, %al
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movl	16(%r12), %eax
LBB0_18:
	movl	%ebx, 20(%r12)
	testb	$32, %al
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_skip_hdr_extension
	movl	16(%r12), %eax
LBB0_20:
	andl	$64, %eax
	movq	_IVI_MB_HUFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addq	$28, %r12
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_ff_ivi_dec_huff_desc
	testl	%eax, %eax
	js	LBB0_21
## %bb.22:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_skip_bits
LBB0_23:
	movq	%r15, %rdi
	callq	_align_get_bits
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_6:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, 12(%r12)
	jmp	LBB0_24
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_FRAMETYPE_INTER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid picture start code!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid frame type: %d \n"

	.comm	_FRAMETYPE_INTRA,4,2            ## @FRAMETYPE_INTRA
L_.str.2:                               ## @.str.2
	.asciz	"Invalid GOP header, skipping frames.\n"

	.comm	_FRAMETYPE_INTER_SCAL,4,2       ## @FRAMETYPE_INTER_SCAL
L_.str.3:                               ## @.str.3
	.asciz	"Scalable inter frame in non scalable stream\n"

	.comm	_FRAMETYPE_INTER,4,2            ## @FRAMETYPE_INTER
	.comm	_FRAMETYPE_NULL,4,2             ## @FRAMETYPE_NULL
	.comm	_IVI_MB_HUFF,4,2                ## @IVI_MB_HUFF
	.no_dead_strip	_decode_pic_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pic_hdr
_decode_pic_hdr:                        ; @decode_pic_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #24
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
	cmp	w0, #31
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	str	w8, [x19]
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #4]
	cmp	w0, #5
	b.lt	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh5:
	adrp	x8, _FRAMETYPE_INTRA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FRAMETYPE_INTRA@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_5:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	w0, [x19, #8]
	ldr	w8, [x19, #4]
Lloh15:
	adrp	x9, _FRAMETYPE_INTRA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FRAMETYPE_INTRA@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_decode_gop_header
	tbnz	w0, #31, LBB0_16
; %bb.9:
	str	wzr, [x19, #12]
	ldr	w8, [x19, #4]
LBB0_10:
Lloh18:
	adrp	x9, _FRAMETYPE_INTER_SCAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FRAMETYPE_INTER_SCAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	ldr	w9, [x19, #36]
	cbz	w9, LBB0_24
LBB0_12:
Lloh21:
	adrp	x9, _FRAMETYPE_NULL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FRAMETYPE_NULL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_23
; %bb.13:
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	w0, [x19, #16]
	tbnz	w0, #0, LBB0_17
; %bb.14:
	mov	w8, #0
	str	w8, [x19, #32]
	tbz	w0, #4, LBB0_18
LBB0_15:
	mov	x0, x21
	mov	w1, #16
	bl	_get_bits
	mov	x8, x0
	ldr	w0, [x19, #16]
	b	LBB0_19
LBB0_16:
	mov	x22, x0
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_6
LBB0_17:
	mov	x0, x21
	mov	w1, #24
	bl	_get_bits_long
	mov	x8, x0
	ldr	w0, [x19, #16]
	str	w8, [x19, #32]
	tbnz	w0, #4, LBB0_15
LBB0_18:
	mov	w8, #0
LBB0_19:
	str	w8, [x19, #20]
	tbz	w0, #5, LBB0_21
; %bb.20:
	mov	x0, x21
	bl	_skip_hdr_extension
	ldr	w0, [x19, #16]
LBB0_21:
	and	w1, w0, #0x40
Lloh29:
	adrp	x8, _IVI_MB_HUFF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IVI_MB_HUFF@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, x19, #28
	mov	x0, x21
	mov	x4, x20
	bl	_ff_ivi_dec_huff_desc
	tbnz	w0, #31, LBB0_25
; %bb.22:
	mov	x0, x21
	mov	w1, #3
	bl	_skip_bits
LBB0_23:
	mov	x0, x21
	bl	_align_get_bits
	mov	w22, #0
	b	LBB0_6
LBB0_24:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh37:
	adrp	x8, _FRAMETYPE_INTER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FRAMETYPE_INTER@GOTPAGEOFF]
	b	LBB0_3
LBB0_25:
	mov	x22, x0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid picture start code!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid frame type: %d \n"

	.comm	_FRAMETYPE_INTRA,4,2            ; @FRAMETYPE_INTRA
l_.str.2:                               ; @.str.2
	.asciz	"Invalid GOP header, skipping frames.\n"

	.comm	_FRAMETYPE_INTER_SCAL,4,2       ; @FRAMETYPE_INTER_SCAL
l_.str.3:                               ; @.str.3
	.asciz	"Scalable inter frame in non scalable stream\n"

	.comm	_FRAMETYPE_INTER,4,2            ; @FRAMETYPE_INTER
	.comm	_FRAMETYPE_NULL,4,2             ; @FRAMETYPE_NULL
	.comm	_IVI_MB_HUFF,4,2                ; @IVI_MB_HUFF
	.no_dead_strip	_decode_pic_hdr
.subsections_via_symbols
