	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_init_context
_h264_init_context:                     ## @h264_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdi, 112(%rsi)
	movl	$-1, (%rsi)
	movl	24(%rdi), %eax
	movl	%eax, 104(%rsi)
	movl	20(%rdi), %eax
	movl	%eax, 100(%rsi)
	movq	_PICT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rsi)
	movl	16(%rdi), %eax
	movl	%eax, 92(%rsi)
	movl	12(%rdi), %eax
	movl	%eax, 88(%rsi)
	movabsq	$-4294901760, %rax              ## imm = 0xFFFFFFFF00010000
	movq	%rax, 72(%rsi)
	movl	$-1, 4(%rsi)
	movq	$0, 80(%rsi)
	leaq	48(%rsi), %rdi
	movq	$-1, 48(%rsi)
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 64(%rsi)
	movq	_MAX_DELAYED_PIC_COUNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.1:
	movq	56(%r15), %rdx
	movq	%rcx, (%rdx)
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.2:
	leaq	-1(%rbx), %r8
	addq	$-2, %rbx
	movl	%r8d, %ecx
	andl	$3, %ecx
	movl	$1, %edx
	cmpq	$3, %rbx
	jb	LBB0_6
## %bb.3:
	andq	$-4, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	56(%r15), %rsi
	movq	%rbx, 8(%rsi,%rdx,8)
	movq	(%rax), %rsi
	movq	56(%r15), %rbx
	movq	%rsi, 16(%rbx,%rdx,8)
	movq	(%rax), %rsi
	movq	56(%r15), %rbx
	movq	%rsi, 24(%rbx,%rdx,8)
	movq	(%rax), %rsi
	movq	56(%r15), %rbx
	movq	%rsi, 32(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_4
## %bb.5:
	incq	%rdx
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rsi
	movq	56(%r15), %rbx
	movq	%rsi, (%rbx,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_7
LBB0_8:
	callq	_ff_h264_sei_uninit
	movq	_AVCHROMA_LOC_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_FF_THREAD_SLICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.10:
	movl	4(%r14), %edi
	jmp	LBB0_11
LBB0_9:
	movl	$1, %edi
LBB0_11:
	movl	%edi, 8(%r15)
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_31
## %bb.12:
	movq	_H264_MAX_PICTURE_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	40(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_32
## %bb.17:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_32
## %bb.18:
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_30
## %bb.19:
	movq	16(%r15), %rcx
	cmpl	$4, %eax
	jae	LBB0_21
## %bb.20:
	xorl	%edx, %edx
	jmp	LBB0_29
LBB0_31:
	movl	$0, 8(%r15)
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_21:
	movl	%eax, %edx
	andl	$-4, %edx
	movq	%r15, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$7, %r8d
	cmpq	$28, %rsi
	jae	LBB0_23
## %bb.22:
	xorl	%esi, %esi
	jmp	LBB0_25
LBB0_23:
	andq	$-8, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rsi,8)
	movdqu	%xmm0, 16(%rcx,%rsi,8)
	movdqu	%xmm0, 32(%rcx,%rsi,8)
	movdqu	%xmm0, 48(%rcx,%rsi,8)
	movdqu	%xmm0, 64(%rcx,%rsi,8)
	movdqu	%xmm0, 80(%rcx,%rsi,8)
	movdqu	%xmm0, 96(%rcx,%rsi,8)
	movdqu	%xmm0, 112(%rcx,%rsi,8)
	movdqu	%xmm0, 128(%rcx,%rsi,8)
	movdqu	%xmm0, 144(%rcx,%rsi,8)
	movdqu	%xmm0, 160(%rcx,%rsi,8)
	movdqu	%xmm0, 176(%rcx,%rsi,8)
	movdqu	%xmm0, 192(%rcx,%rsi,8)
	movdqu	%xmm0, 208(%rcx,%rsi,8)
	movdqu	%xmm0, 224(%rcx,%rsi,8)
	movdqu	%xmm0, 240(%rcx,%rsi,8)
	addq	$32, %rsi
	addq	$-8, %rdi
	jne	LBB0_24
LBB0_25:
	testq	%r8, %r8
	je	LBB0_28
## %bb.26:
	leaq	(%rcx,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_27
LBB0_28:
	cmpq	%rax, %rdx
	je	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_29
LBB0_30:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,4,2                 ## @PICT_FRAME
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ## @MAX_DELAYED_PIC_COUNT
	.comm	_AVCHROMA_LOC_LEFT,4,2          ## @AVCHROMA_LOC_LEFT
	.comm	_FF_THREAD_SLICE,4,2            ## @FF_THREAD_SLICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_H264_MAX_PICTURE_COUNT,4,2     ## @H264_MAX_PICTURE_COUNT
	.no_dead_strip	_h264_init_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_init_context
_h264_init_context:                     ; @h264_init_context
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	str	x0, [x1, #112]
	ldur	d0, [x0, #20]
	stur	d0, [x1, #100]
	ldur	d0, [x0, #12]
	str	d0, [x1, #88]
	mov	x9, #-65536
	movk	x9, #1, lsl #16
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x1]
Lloh0:
	adrp	x8, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PICT_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #96]
	str	xzr, [x1, #80]
	mov	x0, x1
	str	d0, [x0, #48]!
Lloh3:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
	ldr	x10, [x8]
	stp	x10, x9, [x1, #64]
Lloh5:
	adrp	x9, _MAX_DELAYED_PIC_COUNT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_DELAYED_PIC_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x11, [x19, #56]
	str	x10, [x11]
	cmp	w9, #1
	b.eq	LBB0_4
; %bb.2:
	mov	w10, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	ldr	x12, [x19, #56]
	str	x11, [x12, x10, lsl #3]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_4:
	bl	_ff_h264_sei_uninit
Lloh8:
	adrp	x8, _AVCHROMA_LOC_LEFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVCHROMA_LOC_LEFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _FF_THREAD_SLICE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FF_THREAD_SLICE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20, #4]
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	str	w0, [x19, #8]
	mov	w1, #8
	bl	_av_mallocz_array
	str	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.8:
Lloh14:
	adrp	x20, _H264_MAX_PICTURE_COUNT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _H264_MAX_PICTURE_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_av_frame_alloc
	ldr	x8, [x19, #40]
	str	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_12:
	bl	_av_frame_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_18
; %bb.13:
	bl	_av_frame_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_18
; %bb.14:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.15:
	ldr	x9, [x19, #16]
	cmp	w8, #8
	b.hs	LBB0_19
; %bb.16:
	mov	x10, #0
	b	LBB0_22
LBB0_17:
	str	wzr, [x19, #8]
LBB0_18:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_19:
	and	x10, x8, #0xfffffff8
	dup.2d	v0, x19
	add	x11, x9, #32
	mov	x12, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x8
	b.eq	LBB0_24
LBB0_22:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	str	x19, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_23
LBB0_24:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,4,2                 ; @PICT_FRAME
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_MAX_DELAYED_PIC_COUNT,4,2      ; @MAX_DELAYED_PIC_COUNT
	.comm	_AVCHROMA_LOC_LEFT,4,2          ; @AVCHROMA_LOC_LEFT
	.comm	_FF_THREAD_SLICE,4,2            ; @FF_THREAD_SLICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_H264_MAX_PICTURE_COUNT,4,2     ; @H264_MAX_PICTURE_COUNT
	.no_dead_strip	_h264_init_context
.subsections_via_symbols
