	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_redundant_pps_init
_h264_redundant_pps_init:               ## @h264_redundant_pps_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	leaq	16(%r12), %r14
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_ff_cbs_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.1:
	leaq	4(%r12), %rax
	movl	(%rbx), %esi
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_ff_cbs_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.2:
	leaq	24(%r12), %rsi
	movl	$26, (%r12)
	movq	8(%r13), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_3
## %bb.4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movq	%rsi, %rbx
	callq	_ff_cbs_read_extradata
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_5
## %bb.6:
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%rbx, %rdx
	jle	LBB0_13
## %bb.7:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	movq	_H264_NAL_PPS@GOTPCREL(%rip), %rdi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rcx
	movq	-8(%rcx,%rbx), %rsi
	cmpq	(%rdi), %rsi
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, %r15
	movl	(%rcx,%rbx), %esi
	movq	%r12, %rdi
	callq	_h264_redundant_pps_fixup_pps
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	%r15, %rdi
	jmp	LBB0_12
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_17
LBB0_13:
	movl	4(%r12), %edi
	movl	8(%r12), %eax
	movl	%eax, 12(%r12)
	movl	(%r13), %esi
	callq	_ff_cbs_write_extradata
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_17
## %bb.14:
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str(%rip), %rdx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_av_log
	jmp	LBB0_16
LBB0_10:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_17:
	movl	(%rbx), %edi
	callq	_ff_cbs_fragment_reset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_18:
	addq	$24, %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_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read extradata.\n"

	.comm	_H264_NAL_PPS,8,3               ## @H264_NAL_PPS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to write extradata.\n"

	.no_dead_strip	_h264_redundant_pps_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_redundant_pps_init
_h264_redundant_pps_init:               ; @h264_redundant_pps_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x22, [x0, #16]
	add	x24, x22, #16
Lloh0:
	adrp	x21, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_CODEC_ID_H264@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x24
	mov	x2, x20
	bl	_ff_cbs_init
	tbnz	w0, #31, LBB0_10
; %bb.1:
	add	x19, x22, #4
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ff_cbs_init
	tbnz	w0, #31, LBB0_10
; %bb.2:
	add	x21, x22, #24
	mov	w8, #26
	str	w8, [x22]
	ldr	x2, [x20, #8]
	ldr	x8, [x2]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_ff_cbs_read_extradata
	tbnz	w0, #31, LBB0_13
; %bb.4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x26, _H264_NAL_PPS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _H264_NAL_PPS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	add	x24, x24, #16
	cmp	x25, w8, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #32]
	ldr	x10, [x9, x24]
	ldr	x11, [x26]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x9, x24
	ldr	w1, [x8, #8]
	mov	x0, x22
	bl	_h264_redundant_pps_fixup_pps
	tbnz	w0, #31, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21]
	b	LBB0_6
LBB0_10:
	mov	x23, x0
	b	LBB0_18
LBB0_11:
	ldp	w0, w8, [x22, #4]
	str	w8, [x22, #12]
	ldr	w1, [x20]
	mov	x2, x21
	bl	_ff_cbs_write_extradata
	tbnz	w0, #31, LBB0_14
LBB0_12:
	mov	w23, #0
	b	LBB0_17
LBB0_13:
	mov	x23, x0
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x23, x0
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_av_log
	b	LBB0_17
LBB0_16:
	mov	x23, x0
LBB0_17:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ff_cbs_fragment_reset
LBB0_18:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,4,2           ; @AV_CODEC_ID_H264
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read extradata.\n"

	.comm	_H264_NAL_PPS,8,3               ; @H264_NAL_PPS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to write extradata.\n"

	.no_dead_strip	_h264_redundant_pps_init
.subsections_via_symbols
