	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_execute_decode_slices  ## -- Begin function ff_h264_execute_decode_slices
	.p2align	4, 0x90
_ff_h264_execute_decode_slices:         ## @ff_h264_execute_decode_slices
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %r15
	movl	(%rdi), %r13d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%rdi), %rax
	movl	%ecx, (%rax)
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	jne	LBB0_36
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_36
## %bb.2:
	movq	%rdi, %r14
	leal	-1(%r13), %ebx
	shlq	$5, %rbx
	movl	4(%rax,%rbx), %eax
	xorl	%edi, %edi
	cmpl	4(%r14), %eax
	setl	%dil
	callq	_av_assert0
	cmpl	$1, %r13d
	jne	LBB0_4
## %bb.3:
	movl	4(%r14), %eax
	imull	8(%r14), %eax
	movq	16(%r14), %rsi
	movl	%eax, (%rsi)
	movq	$0, 24(%r14)
	movq	%r15, %rdi
	callq	_decode_slice
	movl	%eax, %r12d
	movq	16(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_35
LBB0_4:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_av_assert0
	leaq	8(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	shlq	$5, %r12
	addq	$-32, %r12
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	addq	$32, %rbx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rdx
	je	LBB0_14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	8(%r14), %esi
	movl	4(%r14), %eax
	imull	%esi, %eax
	movq	16(%r14), %rdi
	movq	_CONFIG_ERROR_RESILIENCE@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, %rcx
	shlq	$5, %rcx
	movq	$0, 24(%rdi,%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	shlq	$5, %rdx
	movq	%rdi, %rcx
	movl	4(%rdi,%rdx), %r15d
	imull	%esi, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addl	8(%rdi,%rdx), %r15d
	xorl	%r13d, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	imull	4(%rcx,%r13), %esi
	addl	8(%rcx,%r13), %esi
	cmpl	%r15d, %esi
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_FFMIN
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	16(%r14), %rcx
	movl	8(%r14), %esi
	addq	$32, %r13
	cmpq	%r13, %rbx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_14:
	movq	16(%r14), %rdx
	movq	_decode_slice@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movl	$32, %r9d
	callq	*(%rdi)
	movq	16(%r14), %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%r15,%rax), %eax
	movl	%eax, 12(%r14)
	movq	_CONFIG_ERROR_RESILIENCE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.15:
	cmpl	$2, %r13d
	jl	LBB0_23
## %bb.16:
	movq	24(%r15), %rcx
	leaq	-1(%r13), %rsi
	movl	$1, %eax
	cmpq	$5, %rsi
	jb	LBB0_20
## %bb.17:
	movl	%esi, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %edi
	cmovneq	%rax, %rdi
	movq	%rsi, %rdx
	subq	%rdi, %rdx
	negq	%rdi
	leaq	(%rsi,%rdi), %rax
	incq	%rax
	movq	%rcx, %xmm1
	leaq	152(%r15), %rcx
	pxor	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rcx), %xmm2                ## xmm2 = mem[0],zero
	movq	-96(%rcx), %xmm3                ## xmm3 = mem[0],zero
	punpcklqdq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0]
	paddq	%xmm3, %xmm1
	movq	(%rcx), %xmm2                   ## xmm2 = mem[0],zero
	movq	-32(%rcx), %xmm3                ## xmm3 = mem[0],zero
	punpcklqdq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0]
	paddq	%xmm3, %xmm0
	subq	$-128, %rcx
	addq	$-4, %rdx
	jne	LBB0_18
## %bb.19:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rcx
LBB0_20:
	subq	%rax, %r13
	shlq	$5, %rax
	addq	%r15, %rax
	addq	$24, %rax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rax), %rcx
	addq	$32, %rax
	decq	%r13
	jne	LBB0_21
## %bb.22:
	movq	%rcx, 24(%r15)
LBB0_23:
	cmpq	$0, 24(%r14)
	je	LBB0_35
## %bb.24:
	movq	$0, 24(%r14)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	shlq	$5, %rbx
	movl	4(%r15,%rbx), %edi
	incl	%edi
	movl	4(%r14), %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%r15,%rbx), %ecx
	movl	12(%r15,%rbx), %esi
	cmpl	4(%r14), %ecx
	leaq	8(%r15,%rbx), %rcx
	cmovgeq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %esi
	jge	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	leaq	(%r15,%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%r15, %rbx
	addq	$4, %rbx
	movl	(%rcx), %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r15d
	movl	%esi, %r12d
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, (%rbx)
	xorl	%edx, %edx
	cmpl	%esi, %r12d
	jg	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	12(%rbx), %edx
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=2
	movl	%r13d, %ecx
	cmpl	%r15d, %r12d
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_loop_filter
	movq	%r14, %rdi
	callq	_FIELD_OR_MBAFF_PICTURE
	addl	%eax, %r12d
	incl	%r12d
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=2
	movl	8(%rbx), %esi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_34
## %bb.37:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	16(%r14), %r15
	jmp	LBB0_25
LBB0_34:
	xorl	%r12d, %r12d
LBB0_35:
	movl	$0, (%r14)
LBB0_36:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_CONFIG_ERROR_RESILIENCE,8,3    ## @CONFIG_ERROR_RESILIENCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_execute_decode_slices  ; -- Begin function ff_h264_execute_decode_slices
	.p2align	2
_ff_h264_execute_decode_slices:         ; @ff_h264_execute_decode_slices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0, #32]
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x0, #16]
	str	w9, [x8]
	ldr	x9, [x21, #8]
	cmp	x9, #0
	ccmp	w23, #1, #8, eq
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_37
LBB0_2:
	mov	x19, x0
	subs	w20, w23, #1
	add	x8, x8, x20, lsl #5
	ldr	w8, [x8, #4]
	ldr	w9, [x0, #4]
	cmp	w8, w9
	cset	w0, lt
	bl	_av_assert0
	cmp	w23, #1
	b.ne	LBB0_4
; %bb.3:
	ldp	w9, w8, [x19, #4]
	mul	w8, w9, w8
	ldr	x1, [x19, #16]
	str	w8, [x1]
	str	xzr, [x19, #24]
	mov	x0, x21
	bl	_decode_slice
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #4]
	str	w8, [x19, #12]
	b	LBB0_36
LBB0_4:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w0, #1
	bl	_av_assert0
	mov	x25, #0
	mov	x26, #0
	add	x8, x19, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	x8, x23, #5
	sub	x27, x8, #32
Lloh3:
	adrp	x24, _CONFIG_ERROR_RESILIENCE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CONFIG_ERROR_RESILIENCE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	x8, x26, #5
	str	w0, [x28, x8]
	add	x26, x26, #1
	add	x25, x25, #32
	cmp	x26, x23
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldp	w9, w8, [x19, #4]
	ldr	x28, [x19, #16]
	ldr	x10, [x24]
	cbz	x10, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x28, x26, lsl #5
	str	xzr, [x10, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
	mul	w0, w9, w8
	add	x9, x28, x26, lsl #5
	ldp	w10, w9, [x9, #4]
	madd	w20, w10, w8, w9
	mov	x9, x28
	cmp	x25, x22
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, x22
	ldp	w10, w9, [x9, #4]
	madd	w1, w8, w10, w9
	cmp	w1, w20
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_FFMIN
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x27, x22
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x19, #16]
	ldr	w8, [x19, #8]
	add	x22, x22, #32
	cmp	x25, x22
	b.ne	LBB0_9
	b	LBB0_11
LBB0_13:
	ldr	x8, [x21]
	ldr	x2, [x19, #16]
Lloh5:
	adrp	x1, _decode_slice@GOTPAGE
Lloh6:
	ldr	x1, [x1, _decode_slice@GOTPAGEOFF]
	mov	x0, x21
	mov	x3, #0
	mov	x4, x23
	mov	w5, #32
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x9, x8, x9, lsl #5
	ldr	w9, [x9, #4]
	str	w9, [x19, #12]
	ldr	x9, [x24]
	cmp	x9, #0
	ccmp	w23, #2, #8, ne
	b.lt	LBB0_22
; %bb.14:
	ldr	x10, [x8, #24]
	sub	x9, x23, #1
	cmp	x9, #9
	b.hs	LBB0_16
; %bb.15:
	mov	w9, #1
	b	LBB0_19
LBB0_16:
	ands	x11, x9, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x9, x11
	add	x9, x11, #1
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x10
	add	x10, x8, #184
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #128
	sub	x13, x10, #64
	ld4.2d	{ v4, v5, v6, v7 }, [x12]
	ld4.2d	{ v16, v17, v18, v19 }, [x13]
	add	x12, x10, #256
	ld4.2d	{ v20, v21, v22, v23 }, [x10], #64
	ld4.2d	{ v24, v25, v26, v27 }, [x10]
	add.2d	v1, v1, v4
	add.2d	v0, v0, v16
	add.2d	v2, v2, v20
	add.2d	v3, v3, v24
	mov	x10, x12
	subs	x11, x11, #8
	b.ne	LBB0_17
; %bb.18:
	add.2d	v0, v0, v1
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x10, d0
LBB0_19:
	add	x11, x8, x9, lsl #5
	add	x11, x11, #24
	sub	x9, x23, x9
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #32
	add	x10, x10, x12
	subs	x9, x9, #1
	b.ne	LBB0_20
; %bb.21:
	str	x10, [x8, #24]
LBB0_22:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_35
; %bb.23:
	str	x23, [sp]                       ; 8-byte Folded Spill
	mov	x24, #0
	str	xzr, [x19, #24]
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	add	x21, x8, x24, lsl #5
	mov	x25, x21
	ldr	w8, [x25, #4]!
	add	w0, w8, #1
	ldr	w1, [x19, #4]
	bl	_FFMIN
	ldr	w8, [x25]
	ldr	w9, [x19, #4]
	add	x10, x21, #8
	cmp	w8, w9
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	csel	x9, x10, x8, lt
	mov	x26, x21
	ldr	w8, [x26, #12]!
	cmp	w8, w0
	b.ge	LBB0_33
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x22, x0
	ldr	w27, [x9]
	add	x28, x21, #16
	sub	w20, w0, #1
	mov	x23, x8
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w23, [x25]
	cmp	w23, w8
	b.le	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	w2, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=2
	ldr	w2, [x28]
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=2
	mov	x3, x27
	cmp	w23, w20
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w3, [x8]
LBB0_31:                                ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_loop_filter
	mov	x0, x19
	bl	_FIELD_OR_MBAFF_PICTURE
	add	w8, w23, w0
	add	w23, w8, #1
	cmp	w23, w22
	b.ge	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	w8, [x26]
	b	LBB0_26
LBB0_33:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x19, #16]
	b	LBB0_24
LBB0_35:
	mov	w0, #0
LBB0_36:
	str	wzr, [x19]
LBB0_37:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_CONFIG_ERROR_RESILIENCE,8,3    ; @CONFIG_ERROR_RESILIENCE
.subsections_via_symbols
