	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_decode_ext_header   ## -- Begin function ff_msmpeg4_decode_ext_header
	.p2align	4, 0x90
_ff_msmpeg4_decode_ext_header:          ## @ff_msmpeg4_decode_ext_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	shll	$3, %ebx
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_get_bits_count
	subl	%eax, %ebx
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$3, %eax
	setge	%cl
	leal	16(%rcx), %edx
	orl	$24, %ecx
	cmpl	%edx, %ebx
	jl	LBB0_5
## %bb.1:
	cmpl	%ecx, %ebx
	jge	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_get_bits
	shll	$10, %eax
	movl	%eax, 4(%r14)
	cmpl	$3, (%r14)
	jl	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_get_bits1
	movq	%rax, 16(%r14)
	jmp	LBB0_9
LBB0_5:
	cmpl	%ecx, %ebx
	jge	LBB0_8
## %bb.6:
	movq	$0, 16(%r14)
	cmpl	$2, %eax
	je	LBB0_9
## %bb.7:
	movl	8(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_4:
	movq	$0, 16(%r14)
	jmp	LBB0_9
LBB0_8:
	movl	8(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ext header missing, %d left\n"

L_.str.1:                               ## @.str.1
	.asciz	"I-frame too long, ignoring ext header\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_msmpeg4_decode_ext_header   ; -- Begin function ff_msmpeg4_decode_ext_header
	.p2align	2
_ff_msmpeg4_decode_ext_header:          ; @ff_msmpeg4_decode_ext_header
	.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	x19, x0
	lsl	w21, w1, #3
	add	x20, x0, #24
	mov	x0, x20
	bl	_get_bits_count
	ldr	w9, [x19]
	cmp	w9, #2
	mov	w8, #16
	cinc	w11, w8, gt
	orr	w10, w11, #0x8
	sub	w8, w21, w0
	cmp	w8, w11
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_4
; %bb.1:
	cmp	w8, w10
	b.ge	LBB0_6
; %bb.2:
	str	xzr, [x19, #16]
	cmp	w9, #2
	b.eq	LBB0_9
; %bb.3:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	w1, #5
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #11
	bl	_get_bits
	lsl	w8, w0, #10
	str	w8, [x19, #4]
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #16]
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	bl	_av_log
	b	LBB0_9
LBB0_8:
	str	xzr, [x19, #16]
LBB0_9:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ext header missing, %d left\n"

l_.str.1:                               ; @.str.1
	.asciz	"I-frame too long, ignoring ext header\n"

.subsections_via_symbols
