	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_slice_context_init     ## -- Begin function ff_h264_slice_context_init
	.p2align	4, 0x90
_ff_h264_slice_context_init:            ## @ff_h264_slice_context_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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movl	4(%rdi), %r13d
	movl	8(%rdi), %r8d
	movq	_PART_NOT_AVAILABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rsi), %rdx
	movq	8(%rdx), %rsi
	movq	_scan8@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movslq	52(%rdi), %rax
	movl	%ecx, 4(%rsi,%rax,4)
	movslq	28(%rdi), %rax
	movl	%ecx, 4(%rsi,%rax,4)
	movslq	20(%rdi), %rax
	movl	%ecx, 4(%rsi,%rax,4)
	movq	(%rdx), %rax
	movslq	52(%rdi), %rdx
	movl	%ecx, 4(%rax,%rdx,4)
	movslq	28(%rdi), %rdx
	movl	%ecx, 4(%rax,%rdx,4)
	movslq	20(%rdi), %rdx
	movl	%ecx, 4(%rax,%rdx,4)
	cmpq	%r14, 24(%rbx)
	je	LBB0_2
## %bb.1:
	addq	$16, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	jmp	LBB0_12
LBB0_2:
	movq	_CONFIG_ERROR_RESILIENCE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.3:
	leal	(%r8,%r8), %eax
	incl	%eax
	leal	(%r12,%r12), %ecx
	incl	%ecx
	imull	%eax, %ecx
	leal	1(%r12), %eax
	imull	%r13d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%rax,2), %r15d
	movl	16(%rbx), %edi
	movl	%edi, 84(%r14)
	movq	_h264_er_decode_mb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movq	%rbx, 72(%r14)
	movl	$1, 16(%r14)
	movl	12(%rbx), %eax
	movl	8(%rbx), %ecx
	movdqu	(%rbx), %xmm0
	pshufd	$75, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,0,1]
	movdqu	%xmm0, 20(%r14)
	leal	1(%rcx,%rcx), %ecx
	movl	%ecx, 36(%r14)
	movq	40(%r14), %rsi
	leal	4(,%rax,4), %edx
	movq	_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_FF_ALLOCZ_OR_GOTO
	movl	(%rbx), %edx
	movl	8(%rbx), %eax
	testl	%edx, %edx
	jle	LBB0_10
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ecx
	cmpl	%edx, %ecx
	jge	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rbx), %edi
	imull	%ecx, %edi
	addl	%esi, %edi
	imull	%ecx, %eax
	cltq
	addq	%rsi, %rax
	movl	%edi, (%rdx,%rax,4)
	movl	8(%rbx), %eax
	incq	%rsi
	cmpl	%eax, %esi
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	jmp	LBB0_9
LBB0_10:
	leal	-1(%rdx), %ecx
	imull	4(%rbx), %ecx
	addl	%eax, %ecx
	movq	40(%r14), %rsi
	imull	%edx, %eax
	cltq
	movl	%ecx, (%rsi,%rax,4)
	movl	16(%rbx), %edi
	movq	48(%r14), %rsi
	imull	%r13d, %r12d
	shll	$2, %r12d
	movq	_fail@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%r12d, %edx
	callq	_FF_ALLOCZ_OR_GOTO
	movl	(%rbx), %eax
	movl	16(%rbx), %edi
	imull	4(%rbx), %eax
	movl	64(%r14), %esi
	movl	%eax, %edx
	shll	$4, %edx
	addl	%eax, %edx
	movl	(%r13), %ecx
	callq	_FF_ALLOC_OR_GOTO
	movl	16(%rbx), %edi
	movq	(%r14), %rsi
	leal	(,%r15,4), %edx
	movl	(%r13), %ecx
	callq	_FF_ALLOCZ_OR_GOTO
	movslq	8(%rbx), %rax
	movq	(%r14), %rcx
	movq	56(%r14), %rdx
	leaq	(%rcx,%rax,8), %rax
	addq	$8, %rax
	movq	%rax, (%rdx)
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	shlq	$2, %rax
	addq	(%r14), %rax
	movslq	4(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$4, %rax
	movq	56(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	56(%r14), %rax
	movslq	-56(%rbp), %rcx                 ## 4-byte Folded Reload
	shlq	$2, %rcx
	addq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	decl	%r15d
	shlq	$2, %r15
	orq	$4, %r15
	leaq	L_.memset_pattern(%rip), %rsi
	movq	%r15, %rdx
	callq	_memset_pattern16
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PART_NOT_AVAILABLE,4,2         ## @PART_NOT_AVAILABLE
	.comm	_scan8,8,3                      ## @scan8
	.comm	_CONFIG_ERROR_RESILIENCE,8,3    ## @CONFIG_ERROR_RESILIENCE
	.comm	_h264_er_decode_mb,4,2          ## @h264_er_decode_mb
	.comm	_fail,4,2                       ## @fail
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_slice_context_init     ; -- Begin function ff_h264_slice_context_init
	.p2align	2
_ff_h264_slice_context_init:            ; @ff_h264_slice_context_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	x19, x1
	ldp	w24, w25, [x0]
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _PART_NOT_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PART_NOT_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _scan8@GOTPAGE
Lloh4:
	ldr	x10, [x10, _scan8@GOTPAGEOFF]
	ldr	x11, [x1, #8]
Lloh5:
	ldr	x10, [x10]
	ldrsw	x12, [x10, #52]
	ldp	x11, x13, [x11]
	add	x12, x13, x12, lsl #2
	str	w9, [x12, #4]
	ldrsw	x12, [x10, #28]
	add	x12, x13, x12, lsl #2
	str	w9, [x12, #4]
	ldrsw	x12, [x10, #20]
	add	x12, x13, x12, lsl #2
	str	w9, [x12, #4]
	ldrsw	x12, [x10, #52]
	add	x12, x11, x12, lsl #2
	str	w9, [x12, #4]
	ldrsw	x12, [x10, #28]
	add	x12, x11, x12, lsl #2
	str	w9, [x12, #4]
	ldrsw	x10, [x10, #20]
	add	x10, x11, x10, lsl #2
	str	w9, [x10, #4]
	ldr	x9, [x0, #24]
	cmp	x9, x1
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #16
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	b	LBB0_12
LBB0_2:
Lloh6:
	adrp	x9, _CONFIG_ERROR_RESILIENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CONFIG_ERROR_RESILIENCE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cbz	x9, LBB0_12
; %bb.3:
	mov	x20, x0
	mov	w9, #1
	mov	w10, #1
	bfi	w10, w8, #1, #31
	bfi	w9, w24, #1, #31
	mul	w23, w10, w9
	madd	w22, w25, w24, w25
	add	w21, w23, w22, lsl #1
	ldr	w0, [x0, #16]
Lloh9:
	adrp	x8, _h264_er_decode_mb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _h264_er_decode_mb@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #80]
	str	x20, [x19, #72]
	mov	w8, #1
	ldp	w10, w9, [x20, #8]
	stp	w8, w9, [x19, #16]
	str	w10, [x19, #24]
	ldr	d0, [x20]
	stur	d0, [x19, #28]
	bfi	w8, w10, #1, #31
	str	w8, [x19, #36]
	ldr	x1, [x19, #40]
	lsl	w8, w9, #2
	add	w2, w8, #4
Lloh12:
	adrp	x26, _fail@GOTPAGE
Lloh13:
	ldr	x26, [x26, _fail@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_FF_ALLOCZ_OR_GOTO
	ldr	w10, [x20]
	ldr	w8, [x20, #8]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w9, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w9, #1
	cmp	w9, w10
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, #0
	ldr	x11, [x19, #40]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x20, #4]
	madd	w12, w9, w12, w10
	mul	w8, w9, w8
	add	x8, x10, w8, sxtw
	str	w12, [x11, x8, lsl #2]
	ldr	w8, [x20, #8]
	add	x10, x10, #1
	cmp	w10, w8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x20]
	b	LBB0_5
LBB0_10:
	sub	w9, w10, #1
	ldr	w11, [x20, #4]
	madd	w9, w11, w9, w8
	mul	w8, w8, w10
	ldp	x10, x1, [x19, #40]
	str	w9, [x10, w8, sxtw #2]
	ldr	w0, [x20, #16]
	mul	w8, w24, w25
	lsl	w2, w8, #2
	ldr	w3, [x26]
	bl	_FF_ALLOCZ_OR_GOTO
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #64]
	ldp	w8, w9, [x20]
	mul	w8, w8, w9
	add	w2, w8, w8, lsl #4
	ldr	w3, [x26]
	bl	_FF_ALLOC_OR_GOTO
	ldr	w0, [x20, #16]
	ldr	x1, [x19]
	lsl	w2, w21, #2
	ldr	w3, [x26]
	bl	_FF_ALLOCZ_OR_GOTO
	ldr	x8, [x19]
	ldpsw	x10, x9, [x20, #4]
	add	x8, x8, x9, lsl #3
	add	x8, x8, #8
	ldr	x9, [x19, #56]
	str	x8, [x9]
	ldr	x8, [x19]
	add	x8, x8, w23, sxtw #2
	add	x8, x8, x10, lsl #2
	add	x8, x8, #4
	ldr	x9, [x19, #56]
	str	x8, [x9, #8]
	ldr	x8, [x19, #56]
	ldr	x9, [x8, #8]
	add	x9, x9, w22, sxtw #2
	str	x9, [x8, #16]
	subs	w8, w21, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	x0, [x19]
	lsl	x8, x8, #2
	orr	x2, x8, #0x4
Lloh14:
	adrp	x1, l_.memset_pattern@PAGE
Lloh15:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_12:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PART_NOT_AVAILABLE,4,2         ; @PART_NOT_AVAILABLE
	.comm	_scan8,8,3                      ; @scan8
	.comm	_CONFIG_ERROR_RESILIENCE,8,3    ; @CONFIG_ERROR_RESILIENCE
	.comm	_h264_er_decode_mb,4,2          ; @h264_er_decode_mb
	.comm	_fail,4,2                       ; @fail
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400

.subsections_via_symbols
