	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_extradata_ps
_decode_extradata_ps:                   ## @decode_extradata_ps
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r8d
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %rsi
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-96(%rbp), %rdi
	movq	%rbx, %r13
	movq	%rbx, %rcx
	movl	$2, %r9d
	pushq	$0
	pushq	$1
	pushq	%rax
	callq	_ff_h2645_packet_split
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	cmpl	$0, -96(%rbp)
	jle	LBB0_13
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %r15d
	xorl	%r14d, %r14d
	movq	%r13, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	-96(%rbp), %rax
	addq	$20, %r15
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %r13
	movl	-8(%r13,%r15), %ecx
	cmpl	$129, %ecx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r15), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ff_h264_decode_seq_parameter_set
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	4(%r13,%r15), %edx
	movl	8(%r13,%r15), %esi
	incl	%esi
	decl	%edx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_get_bits8
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ff_h264_decode_seq_parameter_set
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%r13,%r15), %ecx
	addq	%r15, %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_ff_h264_decode_picture_parameter_set
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_12
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %r13
	movq	%r13, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_ff_h264_decode_seq_parameter_set
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	%r13, %rbx
	jns	LBB0_12
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
LBB0_13:
	leaq	-96(%rbp), %rdi
	callq	_ff_h2645_packet_uninit
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H264,4,2           ## @AV_CODEC_ID_H264
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPS decoding failure, trying again with the complete NAL\n"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring NAL type %d in extradata\n"

	.no_dead_strip	_decode_extradata_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_extradata_ps
_decode_extradata_ps:                   ; @decode_extradata_ps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x4
	mov	x4, x3
	mov	x20, x2
	mov	x2, x1
	mov	x1, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	str	wzr, [sp]
	add	x0, sp, #24
	mov	x3, x19
	mov	w5, #2
	mov	w7, #1
	bl	_ff_h2645_packet_split
	tbnz	w0, #31, LBB0_12
; %bb.1:
	mov	x23, x0
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x25, #0
	mov	x26, #0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x28, _AV_LOG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	str	x8, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	_av_log
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [sp, #24]
	add	x25, x25, #20
	cmp	x26, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #32]
	ldr	w8, [x9, x25]
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x9, x25
	mov	x27, x24
	ldr	w8, [x27, #8]!
	str	w8, [sp, #20]
	add	x0, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_ff_h264_decode_seq_parameter_set
	mov	x23, x0
	tbz	w0, #31, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh9:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_av_log
	ldp	w9, w8, [x24, #12]
	add	w1, w8, #1
	sub	w2, w9, #1
	add	x0, sp, #20
	bl	_init_get_bits8
	add	x0, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_ff_h264_decode_seq_parameter_set
	mov	x23, x0
	tbz	w0, #31, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	mov	x1, x19
	mov	x2, x20
	mov	w3, #1
	bl	_ff_h264_decode_seq_parameter_set
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, x25
	add	x0, x8, #8
	ldr	w3, [x8, #4]
	mov	x1, x19
	mov	x2, x20
	bl	_ff_h264_decode_picture_parameter_set
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_13
LBB0_12:
	mov	w23, #0
LBB0_13:
	add	x0, sp, #24
	bl	_ff_h2645_packet_uninit
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,4,2           ; @AV_CODEC_ID_H264
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPS decoding failure, trying again with the complete NAL\n"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring NAL type %d in extradata\n"

	.no_dead_strip	_decode_extradata_ps
.subsections_via_symbols
