	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_decode_extradata       ## -- Begin function ff_h264_decode_extradata
	.p2align	4, 0x90
_ff_h264_decode_extradata:              ## @ff_h264_decode_extradata
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jle	LBB0_22
## %bb.2:
	movq	%rdi, %r13
	movq	16(%rbp), %r12
	cmpl	$1, (%rdi)
	jne	LBB0_20
## %bb.3:
	movl	$1, (%rcx)
	cmpl	$6, %ebx
	ja	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_av_log
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_22
LBB0_20:
	movl	$0, (%rcx)
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_decode_extradata_ps
	testl	%eax, %eax
	jns	LBB0_19
## %bb.21:
	movl	%eax, %r12d
	jmp	LBB0_22
LBB0_5:
	movl	20(%r13), %eax
	leaq	24(%r13), %r14
	andl	$31, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	je	LBB0_12
## %bb.6:
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_AV_RB16
	addl	$2, %eax
	movslq	%eax, %rbx
	movq	%r14, %rcx
	subq	%r13, %rcx
	sarq	$2, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%rcx, %rdx
	cmpq	%rbx, %rdx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_decode_extradata_ps_mp4
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r14,%rbx,4), %r14
	incl	%r15d
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	movq	16(%rbp), %r12
	jne	LBB0_7
LBB0_12:
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_18
## %bb.13:
	addq	$4, %r14
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_AV_RB16
	addl	$2, %eax
	movslq	%eax, %r15
	movq	%r14, %rcx
	subq	%r13, %rcx
	sarq	$2, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%rcx, %rdx
	cmpq	%r15, %rdx
	jl	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_decode_extradata_ps_mp4
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r14,%r15,4), %r14
	incl	%ebx
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	movq	16(%rbp), %r12
	jne	LBB0_14
LBB0_18:
	movl	16(%r13), %eax
	andl	$3, %eax
	incl	%eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_19:
	movl	%ebx, %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	16(%rbp), %rdi
	movl	%r15d, %ecx
	callq	_av_log
	jmp	LBB0_22
LBB0_16:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	16(%rbp), %rdi
	movl	%ebx, %ecx
	callq	_av_log
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avcC %d too short\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Decoding sps %d from avcC failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Decoding pps %d from avcC failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_decode_extradata       ; -- Begin function ff_h264_decode_extradata
	.p2align	2
_ff_h264_decode_extradata:              ; @ff_h264_decode_extradata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w25, #-1
	cbz	x0, LBB0_20
; %bb.1:
	mov	x20, x1
	cmp	w1, #1
	b.lt	LBB0_20
; %bb.2:
	mov	x19, x6
	mov	x21, x2
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	str	w8, [x3]
	cmp	w20, #6
	b.hi	LBB0_8
; %bb.4:
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
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
LBB0_5:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	b	LBB0_20
LBB0_6:
	str	wzr, [x3]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	x4, x19
	bl	_decode_extradata_ps
	tbz	w0, #31, LBB0_19
; %bb.7:
	mov	x25, x0
	b	LBB0_20
LBB0_8:
	mov	x24, x5
	ldr	w8, [x23, #20]
	add	x26, x23, #24
	ands	w8, w8, #0x1f
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	str	x4, [sp]                        ; 8-byte Folded Spill
	b.eq	LBB0_13
; %bb.9:
	mov	w27, #0
	mov	w22, w20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_AV_RB16
	add	w8, w0, #2
	sxtw	x28, w8
	sub	x8, x26, x23
	sub	x8, x22, x8, asr #2
	cmp	x8, x28
	b.lt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x26
	mov	x1, x28
	mov	x2, x21
	mov	x3, x24
	mov	x4, x19
	bl	_decode_extradata_ps_mp4
	tbnz	w0, #31, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, x28, lsl #2
	add	w27, w27, #1
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, w27
	b.ne	LBB0_10
LBB0_13:
	ldr	w22, [x26]
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.14:
	mov	w27, #0
	add	x26, x26, #4
	sxtw	x8, w20
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_AV_RB16
	add	w8, w0, #2
	sxtw	x28, w8
	sub	x8, x26, x23
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sub	x8, x9, x8, asr #2
	cmp	x8, x28
	b.lt	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x26
	mov	x1, x28
	mov	x2, x21
	mov	x3, x24
	mov	x4, x19
	bl	_decode_extradata_ps_mp4
	tbnz	w0, #31, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, x28, lsl #2
	add	w27, w27, #1
	cmp	w22, w27
	b.ne	LBB0_15
LBB0_18:
	ldr	w8, [x23, #16]
	and	w8, w8, #0x3
	add	w8, w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
LBB0_19:
	mov	x25, x20
LBB0_20:
	mov	x0, x25
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x25, x0
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
	b	LBB0_23
LBB0_22:
	mov	x25, x0
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_23:
	mov	x0, x19
	mov	x3, x27
	bl	_av_log
	b	LBB0_20
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avcC %d too short\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Decoding sps %d from avcC failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Decoding pps %d from avcC failed\n"

.subsections_via_symbols
