	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_update_thread_context  ## -- Begin function ff_h264_update_thread_context
	.p2align	4, 0x90
_ff_h264_update_thread_context:         ## @ff_h264_update_thread_context
	.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
	cmpq	%rsi, %rdi
	je	LBB0_23
## %bb.1:
	movq	(%rdi), %r13
	movq	(%rsi), %r14
	movl	(%r13), %eax
	movb	$1, %r12b
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	8(%r13), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_10
## %bb.3:
	movq	16(%r13), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_10
## %bb.4:
	movq	24(%r13), %rax
	cmpq	24(%r14), %rax
	jne	LBB0_10
## %bb.5:
	movq	32(%r13), %rax
	cmpq	32(%r14), %rax
	jne	LBB0_10
## %bb.6:
	movq	272(%r13), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	(%rax), %rdx
	movq	272(%r14), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_10
## %bb.8:
	movq	8(%rax), %rdx
	cmpq	8(%rcx), %rdx
	jne	LBB0_10
## %bb.9:
	movq	16(%rax), %rax
	cmpq	16(%rcx), %rax
	je	LBB0_11
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	240(%r13), %rdi
	movq	240(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	304(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_17
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	304(%r13), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r15
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	304(%r13), %rdi
	addq	%rbx, %rdi
	callq	_av_buffer_unref
	movq	304(%r14), %rax
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	callq	_av_buffer_ref
	movq	304(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	304(%r13), %rdi
	cmpq	$0, (%rdi,%rbx)
	jne	LBB0_14
	jmp	LBB0_52
LBB0_17:
	movq	296(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_25
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	296(%r13), %rdi
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r15
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r15
	jge	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	296(%r13), %rdi
	addq	%rbx, %rdi
	callq	_av_buffer_unref
	movq	296(%r14), %rax
	movq	(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	callq	_av_buffer_ref
	movq	296(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	296(%r13), %rdi
	cmpq	$0, (%rdi,%rbx)
	jne	LBB0_20
	jmp	LBB0_52
LBB0_25:
	movl	%r12d, %ebx
	leaq	264(%r13), %r15
	leaq	280(%r13), %r12
	movq	%r12, %rdi
	callq	_av_buffer_unref
	movq	%r15, %rdi
	callq	_av_buffer_unref
	movq	$0, 288(%r13)
	movq	$0, 272(%r13)
	movq	280(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.26:
	callq	_av_buffer_ref
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_52
## %bb.27:
	movq	(%rax), %rax
	movq	%rax, 288(%r13)
LBB0_28:
	movq	264(%r14), %rdi
	testq	%rdi, %rdi
	movl	%ebx, %r12d
	je	LBB0_31
## %bb.29:
	callq	_av_buffer_ref
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_52
## %bb.30:
	movq	(%rax), %rax
	movq	%rax, 272(%r13)
LBB0_31:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	xorl	%ebx, %ebx
	testb	%al, %r12b
	jne	LBB0_38
## %bb.32:
	movups	8(%r14), %xmm0
	movups	%xmm0, 8(%r13)
	movups	24(%r14), %xmm0
	movups	%xmm0, 24(%r13)
	movups	248(%r14), %xmm0
	movups	%xmm0, 248(%r13)
	cmpl	$0, (%r13)
	jne	LBB0_34
## %bb.33:
	cmpl	$0, (%r14)
	je	LBB0_36
LBB0_34:
	movq	%r13, %rdi
	callq	_h264_slice_header_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_37
## %bb.35:
	movq	232(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_24
LBB0_36:
	xorl	%ebx, %ebx
LBB0_37:
	movq	240(%r13), %rdi
	movq	240(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
LBB0_38:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	232(%r14), %rax
	movq	232(%r13), %rcx
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movl	228(%r14), %eax
	movl	%eax, 228(%r13)
	movl	224(%r14), %eax
	movl	%eax, 224(%r13)
	movups	208(%r14), %xmm0
	movups	%xmm0, 208(%r13)
	movl	76(%r14), %eax
	movl	%eax, 76(%r13)
	movq	_H264_MAX_PICTURE_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_44
## %bb.39:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_41 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jge	LBB0_44
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	200(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_ff_h264_unref_picture
	movq	200(%r14), %rdx
	movq	(%rdx,%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_40
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	addq	%rbx, %rdx
	movq	200(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_ff_h264_ref_picture
	testl	%eax, %eax
	jns	LBB0_40
	jmp	LBB0_43
LBB0_44:
	movl	80(%r14), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_REBASE_PICTURE
	movl	%eax, 80(%r13)
	leaq	192(%r13), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_h264_unref_picture
	movq	192(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.45:
	leaq	192(%r14), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_h264_ref_picture
	testl	%eax, %eax
	js	LBB0_43
LBB0_46:
	movl	76(%r14), %eax
	movl	%eax, 76(%r13)
	movups	176(%r14), %xmm0
	movups	%xmm0, 176(%r13)
	leaq	44(%r13), %rdi
	leaq	44(%r14), %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	120(%r13), %rdi
	movq	120(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	112(%r13), %rdi
	movq	112(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	104(%r13), %rdi
	movq	104(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	168(%r13), %rdi
	movq	168(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	164(%r14), %eax
	movl	%eax, 164(%r13)
	movl	160(%r14), %eax
	movl	%eax, 160(%r13)
	movq	152(%r13), %rdi
	movq	152(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	144(%r14), %eax
	movl	%eax, 144(%r13)
	movups	128(%r14), %xmm0
	movups	%xmm0, 128(%r13)
	movq	120(%r13), %rdi
	movq	120(%r14), %rsi
	movl	$32, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_copy_picture_range
	movq	112(%r13), %rdi
	movq	112(%r14), %rsi
	movl	$32, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_copy_picture_range
	movq	104(%r13), %rdi
	movq	104(%r14), %rsi
	movq	_MAX_DELAYED_PIC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$2, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_copy_picture_range
	movl	96(%r14), %eax
	movl	%eax, 96(%r13)
	leaq	88(%r13), %r12
	movq	%r12, %rdi
	callq	_av_buffer_unref
	movq	88(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_48
## %bb.47:
	callq	_av_buffer_ref
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_52
LBB0_48:
	cmpl	$0, 80(%r13)
	je	LBB0_23
## %bb.49:
	cmpl	$0, 76(%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_51
## %bb.50:
	movq	%r13, %rdi
	callq	_ff_h264_execute_ref_pic_marking
	movl	%eax, %ebx
	movl	60(%r13), %eax
	movl	68(%r13), %ecx
	movl	%ecx, 72(%r13)
	movl	%eax, 64(%r13)
LBB0_51:
	movl	44(%r13), %eax
	movl	52(%r13), %ecx
	movl	%ecx, 56(%r13)
	movl	%eax, 48(%r13)
	movl	40(%r14), %eax
	movl	%eax, 40(%r13)
	jmp	LBB0_24
LBB0_52:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	movl	%eax, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h264_slice_header_init() failed"

	.comm	_H264_MAX_PICTURE_COUNT,4,2     ## @H264_MAX_PICTURE_COUNT
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ## @MAX_DELAYED_PIC_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_update_thread_context  ; -- Begin function ff_h264_update_thread_context
	.p2align	2
_ff_h264_update_thread_context:         ; @ff_h264_update_thread_context
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	x0, x1
	b.eq	LBB0_52
; %bb.1:
	ldr	x19, [x0]
	ldr	x20, [x1]
	ldr	w23, [x19]
	cbz	w23, LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x19, #272]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x10, [x8]
	ldr	x9, [x20, #272]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.8:
	ldr	x10, [x8, #8]
	ldr	x11, [x9, #8]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	mov	w24, #1
	b	LBB0_12
LBB0_11:
	mov	w24, #0
LBB0_12:
	ldr	x0, [x19, #240]
	ldr	x1, [x20, #240]
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x19, #304]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x19, #304]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	bl	_FF_ARRAY_ELEMS
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #304]
	add	x0, x8, x21
	bl	_av_buffer_unref
	ldr	x8, [x20, #304]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_av_buffer_ref
	ldr	x8, [x19, #304]
	str	x0, [x8, x21]
	ldr	x0, [x19, #304]
	ldr	x8, [x0, x21]
	cbnz	x8, LBB0_15
	b	LBB0_51
LBB0_18:
	ldr	x0, [x19, #296]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.19:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x0, [x19, #296]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x22, x22, #1
	bl	_FF_ARRAY_ELEMS
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.ge	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #296]
	add	x0, x8, x21
	bl	_av_buffer_unref
	ldr	x8, [x20, #296]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_av_buffer_ref
	ldr	x8, [x19, #296]
	str	x0, [x8, x21]
	ldr	x0, [x19, #296]
	ldr	x8, [x0, x21]
	cbnz	x8, LBB0_21
	b	LBB0_51
LBB0_24:
	add	x21, x19, #264
	add	x22, x19, #280
	mov	x0, x22
	bl	_av_buffer_unref
	mov	x0, x21
	bl	_av_buffer_unref
	str	xzr, [x19, #288]
	str	xzr, [x19, #272]
	ldr	x0, [x20, #280]
	cbz	x0, LBB0_27
; %bb.25:
	bl	_av_buffer_ref
	str	x0, [x22]
	cbz	x0, LBB0_51
; %bb.26:
	ldr	x8, [x0]
	str	x8, [x19, #288]
LBB0_27:
	ldr	x0, [x20, #264]
	cbz	x0, LBB0_30
; %bb.28:
	bl	_av_buffer_ref
	str	x0, [x21]
	cbz	x0, LBB0_51
; %bb.29:
	ldr	x8, [x0]
	str	x8, [x19, #272]
LBB0_30:
	cmp	w23, #0
	cset	w8, ne
	and	w8, w24, w8
	tbz	w8, #0, LBB0_32
; %bb.31:
	mov	w21, #0
	b	LBB0_38
LBB0_32:
	ldur	q0, [x20, #8]
	stur	q0, [x19, #8]
	ldur	q0, [x20, #24]
	stur	q0, [x19, #24]
	ldur	q0, [x20, #248]
	stur	q0, [x19, #248]
	ldr	w8, [x19]
	cbnz	w8, LBB0_34
; %bb.33:
	ldr	w8, [x20]
	cbz	w8, LBB0_36
LBB0_34:
	mov	x0, x19
	bl	_h264_slice_header_init
	mov	x21, x0
	tbz	w0, #31, LBB0_37
; %bb.35:
	ldr	x0, [x19, #232]
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
	bl	_av_log
	b	LBB0_53
LBB0_36:
	mov	w21, #0
LBB0_37:
	ldr	x0, [x19, #240]
	ldr	x1, [x20, #240]
	mov	w2, #8
	bl	_memcpy
LBB0_38:
	ldr	x8, [x20, #232]
	ldr	x9, [x19, #232]
	ldr	q0, [x8]
	str	q0, [x9]
	ldr	d0, [x20, #224]
	str	d0, [x19, #224]
	ldr	q0, [x20, #208]
	str	q0, [x19, #208]
	ldr	w8, [x20, #76]
	str	w8, [x19, #76]
Lloh5:
	adrp	x22, _H264_MAX_PICTURE_COUNT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _H264_MAX_PICTURE_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.39:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_43
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #200]
	add	x1, x8, x23
	mov	x0, x19
	bl	_ff_h264_unref_picture
	ldr	x8, [x20, #200]
	add	x2, x8, x23
	ldr	x8, [x2]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x8, [x19, #200]
	add	x1, x8, x23
	mov	x0, x19
	bl	_ff_h264_ref_picture
	tbz	w0, #31, LBB0_40
	b	LBB0_54
LBB0_43:
	ldr	w0, [x20, #80]
	mov	x1, x19
	mov	x2, x20
	bl	_REBASE_PICTURE
	str	w0, [x19, #80]
	add	x22, x19, #192
	mov	x0, x19
	mov	x1, x22
	bl	_ff_h264_unref_picture
	mov	x2, x20
	ldr	x8, [x2, #192]!
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_45
; %bb.44:
	mov	x0, x19
	mov	x1, x22
	bl	_ff_h264_ref_picture
	tbnz	w0, #31, LBB0_54
LBB0_45:
	ldr	w8, [x20, #76]
	str	w8, [x19, #76]
	ldr	q0, [x20, #176]
	str	q0, [x19, #176]
	add	x0, x19, #44
	add	x1, x20, #44
	mov	w2, #32
	bl	_memcpy
	ldr	x0, [x19, #120]
	ldr	x1, [x20, #120]
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x19, #112]
	ldr	x1, [x20, #112]
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x19, #104]
	ldr	x1, [x20, #104]
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x19, #168]
	ldr	x1, [x20, #168]
	mov	w2, #8
	bl	_memcpy
	ldr	d0, [x20, #160]
	str	d0, [x19, #160]
	ldr	x0, [x19, #152]
	ldr	x1, [x20, #152]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x20, #144]
	str	w8, [x19, #144]
	ldr	q0, [x20, #128]
	str	q0, [x19, #128]
	ldr	x0, [x19, #120]
	ldr	x1, [x20, #120]
	mov	w2, #32
	mov	x3, x19
	mov	x4, x20
	bl	_copy_picture_range
	ldr	x0, [x19, #112]
	ldr	x1, [x20, #112]
	mov	w2, #32
	mov	x3, x19
	mov	x4, x20
	bl	_copy_picture_range
	ldr	x0, [x19, #104]
	ldr	x1, [x20, #104]
Lloh7:
	adrp	x8, _MAX_DELAYED_PIC_COUNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_DELAYED_PIC_COUNT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	w2, w8, #2
	mov	x3, x19
	mov	x4, x20
	bl	_copy_picture_range
	ldr	w8, [x20, #96]
	str	w8, [x19, #96]
	add	x22, x19, #88
	mov	x0, x22
	bl	_av_buffer_unref
	ldr	x0, [x20, #88]
	cbz	x0, LBB0_47
; %bb.46:
	bl	_av_buffer_ref
	str	x0, [x22]
	cbz	x0, LBB0_51
LBB0_47:
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_52
; %bb.48:
	ldr	w8, [x19, #76]
	cbnz	w8, LBB0_50
; %bb.49:
	mov	x0, x19
	bl	_ff_h264_execute_ref_pic_marking
	mov	x21, x0
	ldr	w8, [x19, #68]
	str	w8, [x19, #72]
	ldr	w8, [x19, #60]
	str	w8, [x19, #64]
LBB0_50:
	ldr	w8, [x19, #52]
	str	w8, [x19, #56]
	ldr	w8, [x19, #44]
	str	w8, [x19, #48]
	ldr	w8, [x20, #40]
	str	w8, [x19, #40]
	b	LBB0_53
LBB0_51:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_52:
	mov	w21, #0
LBB0_53:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_54:
	mov	x21, x0
	b	LBB0_53
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h264_slice_header_init() failed"

	.comm	_H264_MAX_PICTURE_COUNT,4,2     ; @H264_MAX_PICTURE_COUNT
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ; @MAX_DELAYED_PIC_COUNT
.subsections_via_symbols
