	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_slice_header_init
_h264_slice_header_init:                ## @h264_slice_header_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	112(%rbx), %r15
	movl	32(%r15), %esi
	callq	_ff_set_sar
	movq	32(%rbx), %rax
	movl	24(%rax), %edi
	leaq	108(%rbx), %rsi
	leaq	104(%rbx), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	cmpl	$44, (%rbx)
	setb	%cl
	shll	%cl, %eax
	movq	32(%rbx), %rsi
	leaq	20(%rsi), %rdi
	movl	(%rsi), %edx
	addq	$16, %rsi
	imull	4(%r15), %edx
	movl	%eax, %ecx
	movl	$1073741824, %r8d               ## imm = 0x40000000
	callq	_av_reduce
LBB0_2:
	movq	%rbx, %rdi
	callq	_ff_h264_free_tables
	movq	$0, 96(%rbx)
	movl	$1, 4(%rbx)
	movq	%rbx, %rdi
	callq	_init_scan_tables
	movq	%rbx, %rdi
	callq	_ff_h264_alloc_tables
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	8(%r15), %ecx
	leal	-15(%rcx), %eax
	cmpl	$-7, %eax
	jb	LBB0_7
## %bb.5:
	cmpl	$13, %ecx
	je	LBB0_7
## %bb.6:
	cmpl	$11, %ecx
	jne	LBB0_8
LBB0_7:
	movq	32(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_3:
	movl	%eax, %r14d
	movq	32(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_19:
	xorl	%eax, %eax
	callq	_av_log
LBB0_20:
	movq	%rbx, %rdi
	callq	_ff_h264_free_tables
	xorl	%eax, %eax
LBB0_21:
	movl	%eax, 28(%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	32(%rbx), %rax
	movl	%ecx, 4(%rax)
	movl	%ecx, 8(%rbx)
	movl	12(%r15), %edx
	movl	%edx, 88(%rbx)
	xorl	%eax, %eax
	cmpl	$9, %ecx
	setae	%al
	movl	%eax, 12(%rbx)
	movl	%edx, 84(%rbx)
	movl	%ecx, 16(%rbx)
	leaq	80(%rbx), %rdi
	movl	%ecx, %esi
	callq	_ff_h264dsp_init
	leaq	76(%rbx), %rdi
	movl	16(%r15), %esi
	callq	_ff_h264chroma_init
	leaq	72(%rbx), %rdi
	movl	8(%r15), %esi
	callq	_ff_h264qpel_init
	leaq	68(%rbx), %rdi
	movq	32(%rbx), %rax
	movl	12(%rax), %esi
	movl	8(%r15), %edx
	movl	12(%r15), %ecx
	callq	_ff_h264_pred_init
	leaq	64(%rbx), %rdi
	movl	8(%r15), %esi
	callq	_ff_videodsp_init
	movq	_HAVE_THREADS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.9:
	movq	32(%rbx), %rax
	movq	_FF_THREAD_SLICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_12
## %bb.10:
	movl	$1, %eax
	cmpl	$0, 20(%rbx)
	jle	LBB0_11
## %bb.16:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rbx), %rax
	leaq	(%rax,%r12), %rsi
	movq	%rbx, 16(%rax,%r12)
	movslq	24(%rbx), %rcx
	movslq	%r13d, %rdx
	imulq	%rcx, %rdx
	movq	48(%rbx), %rcx
	addq	%rdx, %rcx
	movq	%rcx, 8(%rax,%r12)
	movq	40(%rbx), %rcx
	movq	(%rcx), %rdi
	addq	%rdx, %rdi
	movq	(%rax,%r12), %rax
	movq	%rdi, (%rax)
	addq	8(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movq	%rbx, %rdi
	callq	_ff_h264_slice_context_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r15
	movslq	20(%rbx), %rax
	addl	$16, %r13d
	addq	$24, %r12
	xorl	%r14d, %r14d
	cmpq	%rax, %r15
	jl	LBB0_17
## %bb.15:
	movl	$1, %eax
	jmp	LBB0_21
LBB0_12:
	movq	56(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ff_h264_slice_context_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	xorl	%r14d, %r14d
	movl	$1, %eax
	jmp	LBB0_21
LBB0_18:
	movl	%eax, %r14d
	movq	32(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_19
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported bit depth %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_HAVE_THREADS,4,2               ## @HAVE_THREADS
	.comm	_FF_THREAD_SLICE,4,2            ## @FF_THREAD_SLICE
L_.str.2:                               ## @.str.2
	.asciz	"context_init() failed.\n"

	.no_dead_strip	_h264_slice_header_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_slice_header_init
_h264_slice_header_init:                ; @h264_slice_header_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #112]
	ldr	x0, [x0, #32]
	ldr	w1, [x21, #32]
	bl	_ff_set_sar
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #24]
	add	x1, x19, #108
	add	x2, x19, #104
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #44
	cset	w8, lo
	ldp	w9, w10, [x21]
	lsl	w3, w9, w8
	ldr	x0, [x19, #32]
	add	x1, x0, #16
	ldr	w8, [x0], #20
	mul	w2, w8, w10
	mov	w4, #1073741824
	bl	_av_reduce
LBB0_2:
	mov	x0, x19
	bl	_ff_h264_free_tables
	str	xzr, [x19, #96]
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_init_scan_tables
	mov	x0, x19
	bl	_ff_h264_alloc_tables
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w1, [x21, #8]
	sub	w8, w1, #15
	cmn	w8, #7
	ccmp	w1, #13, #4, hs
	ccmp	w1, #11, #4, ne
	b.ne	LBB0_9
; %bb.4:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x1, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x8
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_5:
	mov	x20, x0
	ldr	x0, [x19, #32]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	bl	_av_log
LBB0_7:
	mov	x0, x19
	bl	_ff_h264_free_tables
	mov	w8, #0
LBB0_8:
	str	w8, [x19, #28]
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x8, [x19, #32]
	str	w1, [x8, #4]
	ldr	w2, [x21, #12]
	cmp	w1, #8
	cset	w8, hi
	stp	w1, w8, [x19, #8]
	stp	w2, w2, [x19, #84]
	str	w1, [x19, #16]
	add	x0, x19, #80
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ff_h264dsp_init
	add	x0, x19, #76
	ldr	w1, [x21, #16]
	bl	_ff_h264chroma_init
	add	x0, x19, #72
	ldr	w1, [x21, #8]
	bl	_ff_h264qpel_init
	add	x0, x19, #68
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #12]
	ldp	w2, w3, [x21, #8]
	bl	_ff_h264_pred_init
	add	x0, x19, #64
	ldr	w1, [x21, #8]
	bl	_ff_videodsp_init
Lloh13:
	adrp	x8, _HAVE_THREADS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HAVE_THREADS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.10:
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #8]
Lloh16:
	adrp	x9, _FF_THREAD_SLICE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FF_THREAD_SLICE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x21, #0
	mov	w22, #0
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x1, x8, x21
	ldrsw	x8, [x19, #24]
	sxtw	x9, w22
	mul	x8, x9, x8
	ldp	x10, x9, [x19, #40]
	add	x9, x9, x8
	stp	x9, x19, [x1, #8]
	ldr	x9, [x10]
	add	x9, x9, x8
	ldr	x11, [x1]
	str	x9, [x11]
	ldr	x9, [x10, #8]
	add	x8, x9, x8
	str	x8, [x11, #8]
	mov	x0, x19
	bl	_ff_h264_slice_context_init
	tbnz	w0, #31, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w20, #0
	add	x23, x23, #1
	ldrsw	x9, [x19, #20]
	add	w22, w22, #16
	add	x21, x21, #24
	mov	w8, #1
	cmp	x23, x9
	b.lt	LBB0_13
	b	LBB0_8
LBB0_15:
	ldr	x1, [x19, #56]
	mov	x0, x19
	bl	_ff_h264_slice_context_init
	tbnz	w0, #31, LBB0_17
LBB0_16:
	mov	w20, #0
	mov	w8, #1
	b	LBB0_8
LBB0_17:
	mov	x20, x0
	ldr	x0, [x19, #32]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported bit depth %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_HAVE_THREADS,4,2               ; @HAVE_THREADS
	.comm	_FF_THREAD_SLICE,4,2            ; @FF_THREAD_SLICE
l_.str.2:                               ; @.str.2
	.asciz	"context_init() failed.\n"

	.no_dead_strip	_h264_slice_header_init
.subsections_via_symbols
