	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_optable
_fill_optable:                          ## @fill_optable
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movl	(%r15), %eax
	movl	%eax, -1072(%rbp)
	cmpl	$2, %r14d
	jl	LBB0_8
## %bb.1:
	leal	-1(%r14), %esi
	leaq	-1(%rsi), %rdx
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movl	%eax, %edx
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %esi
	xorl	%edi, %edi
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	4(%r15,%rdi,4), %edx
	movl	%edx, -1068(%rbp,%rdi,4)
	addl	8(%r15,%rdi,4), %edx
	movl	%edx, -1064(%rbp,%rdi,4)
	addl	12(%r15,%rdi,4), %edx
	movl	%edx, -1060(%rbp,%rdi,4)
	leaq	4(%rdi), %rbx
	addl	16(%r15,%rdi,4), %edx
	movl	%edx, -1056(%rbp,%rdi,4)
	movq	%rbx, %rdi
	cmpq	%rbx, %rsi
	jne	LBB0_4
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	leaq	-1068(,%rbx,4), %rsi
	addq	%rbp, %rsi
	leaq	(%r15,%rbx,4), %rdi
	addq	$4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rbx,4), %edx
	movl	%edx, (%rsi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_7
LBB0_8:
	xorl	%ecx, %ecx
	movl	$0, %edx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -1068(%rbp,%rdx,4)
	leaq	1(%rdx), %rdx
	je	LBB0_10
LBB0_11:
	movl	$2, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	addl	$641, %ecx                      ## imm = 0x281
	andl	$1023, %ecx                     ## imm = 0x3FF
	incl	%eax
	cmpl	$1026, %eax                     ## imm = 0x402
	je	LBB0_18
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%ecx, %esi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%edx, (%r12,%rsi,4)
	cmpl	$255, %edx
	jg	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	%edx, %rdx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-1072(%rbp,%rdx,4), %eax
	jbe	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$256, %edx                      ## imm = 0x100
	jmp	LBB0_17
LBB0_18:
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.19:
	shll	$2, %r14d
	leaq	-1072(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_20:
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movslq	-8(%r12,%r14), %rax
	movl	-1072(%rbp,%rax,4), %ebx
	leal	1(%rbx), %ecx
	movl	%ecx, -1072(%rbp,%rax,4)
	movl	%ebx, %edi
	callq	_ff_clz
                                        ## kill: def $eax killed $eax def $rax
	leal	-32(%rax), %ecx
	cmpl	$-12, %ecx
	jbe	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	addl	$-21, %eax
	movl	%eax, -4(%r12,%r14)
	movl	%eax, %ecx
	shll	%cl, %ebx
	addl	$-1024, %ebx                    ## imm = 0xFC00
	movl	%ebx, (%r12,%r14)
	addq	$12, %r14
	cmpq	$12296, %r14                    ## imm = 0x3008
	jne	LBB0_21
## %bb.24:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_22:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_fill_optable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_optable
_fill_optable:                          ; @fill_optable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x8, sp, #8
	add	x22, x8, #4
	mov	x0, x22
	mov	w1, #1020
	bl	_bzero
	ldr	w8, [x20]
	str	w8, [sp, #8]
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.1:
	sub	w9, w21, #1
	add	x10, x20, #4
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	add	w11, w11, w12
	str	w11, [x22], #4
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
	mov	w12, #0
	b	LBB0_8
LBB0_5:
	mov	x12, #0
	add	x8, sp, #8
	add	x8, x8, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x12, lsl #2]
	add	x12, x12, #1
	cbz	w9, LBB0_6
; %bb.7:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_8:
	mov	w8, #0
	mov	w9, #2
	mov	w10, #12
	add	x11, sp, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w8, #641
	and	w8, w8, #0x3ff
	add	w9, w9, #1
	cmp	w9, #1026
	b.eq	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	umull	x13, w8, w10
	str	w12, [x19, x13]
	cmp	w12, #255
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x12, w12
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11, x12, lsl #2]
	cmp	w9, w13
	b.ls	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x12, x12, #1
	cmp	x12, #256
	b.ne	LBB0_13
	b	LBB0_10
LBB0_15:
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.16:
	lsl	w2, w21, #2
	add	x0, sp, #8
	mov	x1, x20
	bl	_memcpy
LBB0_17:
	mov	x21, #0
	add	x22, sp, #8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19, x21]
	lsl	x8, x8, #2
	ldr	w20, [x22, x8]
	add	w9, w20, #1
	str	w9, [x22, x8]
	mov	x0, x20
	bl	_ff_clz
	sub	w8, w0, #32
	cmn	w8, #12
	b.ls	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	w8, w0, #21
	add	x9, x19, x21
	lsl	w10, w20, w8
	sub	w10, w10, #1024
	stp	w8, w10, [x9, #4]
	add	x21, x21, #12
	cmp	x21, #3, lsl #12                ; =12288
	b.ne	LBB0_18
; %bb.20:
	mov	w0, #0
	b	LBB0_22
LBB0_21:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_22:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	add	sp, sp, #1040
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_fill_optable
.subsections_via_symbols
