	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_decode_video_packet_header ## -- Begin function ff_mpeg4_decode_video_packet_header
	.p2align	4, 0x90
_ff_mpeg4_decode_video_packet_header:   ## @ff_mpeg4_decode_video_packet_header
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	decl	%edi
	callq	_av_log2
	movl	%eax, %r15d
	leaq	72(%r14), %r12
	movq	%r12, %rdi
	callq	_get_bits_count
	movl	72(%r14), %ecx
	addl	$-20, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_12
## %bb.1:
	leaq	32(%r14), %r13
	incl	%r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	jne	LBB0_2
## %bb.4:
	movl	$32, %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_ff_mpeg4_get_video_packet_prefix_length
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.7:
	movq	(%r14), %rax
	movq	_RECT_SHAPE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_bits
	movl	(%r13), %r8d
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	cmpl	%r8d, %eax
	jge	LBB0_11
## %bb.13:
	cltd
	idivl	40(%r14)
	movl	%edx, 36(%r14)
	movl	%eax, 44(%r14)
	movq	(%r14), %rax
	movq	_BIN_ONLY_SHAPE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.14:
	movl	48(%r14), %esi
	movq	%r12, %rdi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, 56(%r14)
	movl	%eax, 52(%r14)
LBB0_16:
	movq	(%r14), %rax
	movq	_RECT_SHAPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_get_bits1
	movl	%eax, %ebx
LBB0_18:
	testl	%ebx, %ebx
	je	LBB0_31
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_19
## %bb.20:
	movl	76(%r14), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rsi
	callq	_check_marker
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_skip_bits
	movl	76(%r14), %edi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rsi
	callq	_check_marker
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	je	LBB0_31
## %bb.21:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_skip_bits
	movq	64(%r14), %rax
	movq	_AV_PICTURE_TYPE_S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.22:
	movq	16(%r14), %rcx
	movq	_GMC_SPRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_25
## %bb.23:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mpeg4_decode_sprite_trajectory
	testq	%rax, %rax
	js	LBB0_12
## %bb.24:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	64(%r14), %rax
LBB0_25:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.26:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_28:
	movq	64(%r14), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.29:
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%eax, %eax
	jne	LBB0_31
## %bb.30:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_31:
	xorl	%r15d, %r15d
	cmpq	$0, 24(%r14)
	je	LBB0_33
## %bb.32:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_decode_new_pred
	jmp	LBB0_33
LBB0_6:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_12
LBB0_11:
	movl	76(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_33:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"marker does not match f_code\n"

	.comm	_RECT_SHAPE,8,3                 ## @RECT_SHAPE
L_.str.1:                               ## @.str.1
	.asciz	"illegal mb_num in video packet (%d %d) \n"

	.comm	_BIN_ONLY_SHAPE,8,3             ## @BIN_ONLY_SHAPE
L_.str.2:                               ## @.str.2
	.asciz	"before time_increment in video packed header"

L_.str.3:                               ## @.str.3
	.asciz	"before vop_coding_type in video packed header"

	.comm	_AV_PICTURE_TYPE_S,8,3          ## @AV_PICTURE_TYPE_S
	.comm	_GMC_SPRITE,8,3                 ## @GMC_SPRITE
L_.str.4:                               ## @.str.4
	.asciz	"untested\n"

	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
L_.str.5:                               ## @.str.5
	.asciz	"Error, video packet header damaged (f_code=0)\n"

	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
L_.str.6:                               ## @.str.6
	.asciz	"Error, video packet header damaged (b_code=0)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_decode_video_packet_header ; -- Begin function ff_mpeg4_decode_video_packet_header
	.p2align	2
_ff_mpeg4_decode_video_packet_header:   ; @ff_mpeg4_decode_video_packet_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21, #32]!
	sub	w0, w8, #1
	bl	_av_log2
	mov	x22, x0
	add	x20, x21, #40
	mov	x0, x20
	bl	_get_bits_count
	ldr	w8, [x21, #40]
	sub	w8, w8, #20
	cmp	w0, w8
	b.gt	LBB0_34
; %bb.1:
	mov	w23, #0
	add	w22, w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	cmp	w23, #32
	b.ne	LBB0_2
LBB0_4:
	mov	x0, x21
	bl	_ff_mpeg4_get_video_packet_prefix_length
	cmp	w23, w0
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19]
Lloh0:
	adrp	x24, _RECT_SHAPE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RECT_SHAPE@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	w23, #0
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #76]
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_33
LBB0_8:
	mov	x0, x20
	bl	_get_bits1
	mov	x23, x0
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w9, [x21]
	cbz	w0, LBB0_32
; %bb.10:
	cmp	w0, w9
	b.ge	LBB0_32
; %bb.11:
	ldr	w8, [x19, #40]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	str	w8, [x19, #36]
	str	w9, [x19, #44]
	ldr	x8, [x19]
Lloh7:
	adrp	x21, _BIN_ONLY_SHAPE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _BIN_ONLY_SHAPE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.12:
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_get_bits
	cbz	w0, LBB0_14
; %bb.13:
	stp	w0, w0, [x19, #52]
LBB0_14:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_get_bits1
	mov	x23, x0
LBB0_16:
	cbz	w23, LBB0_29
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbnz	w0, LBB0_17
; %bb.18:
	ldr	w0, [x19, #76]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_check_marker
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_skip_bits
	ldr	w0, [x19, #76]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_check_marker
	mov	x0, x20
	mov	w1, #2
	bl	_skip_bits
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_29
; %bb.19:
	mov	x0, x20
	mov	w1, #3
	bl	_skip_bits
	ldr	x8, [x19, #64]
Lloh13:
	adrp	x9, _AV_PICTURE_TYPE_S@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_PICTURE_TYPE_S@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.20:
	ldr	x9, [x19, #16]
Lloh16:
	adrp	x10, _GMC_SPRITE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _GMC_SPRITE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_mpeg4_decode_sprite_trajectory
	tbnz	x0, #63, LBB0_34
; %bb.22:
	ldr	w0, [x19, #76]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #64]
LBB0_23:
Lloh24:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.24:
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	cbnz	w0, LBB0_26
; %bb.25:
	ldr	w0, [x19, #76]
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
LBB0_26:
	ldr	x8, [x19, #64]
Lloh32:
	adrp	x9, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	cbnz	w0, LBB0_29
; %bb.28:
	ldr	w0, [x19, #76]
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.6@PAGE
Lloh39:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
LBB0_29:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_31
; %bb.30:
	mov	x0, x19
	mov	x1, x20
	bl	_decode_new_pred
LBB0_31:
	mov	w0, #0
	b	LBB0_35
LBB0_32:
	ldr	w8, [x19, #76]
Lloh40:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x10]
	stp	x0, x9, [sp]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
LBB0_33:
	bl	_av_log
LBB0_34:
Lloh45:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
LBB0_35:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.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	"marker does not match f_code\n"

	.comm	_RECT_SHAPE,8,3                 ; @RECT_SHAPE
l_.str.1:                               ; @.str.1
	.asciz	"illegal mb_num in video packet (%d %d) \n"

	.comm	_BIN_ONLY_SHAPE,8,3             ; @BIN_ONLY_SHAPE
l_.str.2:                               ; @.str.2
	.asciz	"before time_increment in video packed header"

l_.str.3:                               ; @.str.3
	.asciz	"before vop_coding_type in video packed header"

	.comm	_AV_PICTURE_TYPE_S,8,3          ; @AV_PICTURE_TYPE_S
	.comm	_GMC_SPRITE,8,3                 ; @GMC_SPRITE
l_.str.4:                               ; @.str.4
	.asciz	"untested\n"

	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
l_.str.5:                               ; @.str.5
	.asciz	"Error, video packet header damaged (f_code=0)\n"

	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
l_.str.6:                               ; @.str.6
	.asciz	"Error, video packet header damaged (b_code=0)\n"

.subsections_via_symbols
