	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_crc_to_array
_add_crc_to_array:                      ## @add_crc_to_array
	.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
	movl	%edi, %r15d
	movq	_size_of_array@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_number_of_elements@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	%edx, %eax
	jle	LBB0_2
## %bb.1:
	movq	_crc_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_pts_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	leal	(%rax,%rax), %ecx
	testl	%eax, %eax
	movl	$20, %esi
	cmovnel	%ecx, %esi
	movl	%esi, (%rbx)
	movq	_crc_array@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	$4, %edx
	callq	_av_realloc_f
	movq	%rax, (%r13)
	movq	_pts_array@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_av_realloc_f
	movq	%rax, (%r14)
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r12), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_5:
	movslq	%edx, %rdx
	movl	%r15d, (%rcx,%rdx,4)
	movslq	(%r12), %rcx
	movl	%esi, (%rax,%rcx,4)
	incl	(%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_size_of_array,4,2              ## @size_of_array
	.comm	_number_of_elements,4,2         ## @number_of_elements
	.comm	_crc_array,8,3                  ## @crc_array
	.comm	_pts_array,8,3                  ## @pts_array
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate array to store crcs\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_crc_to_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_crc_to_array
_add_crc_to_array:                      ; @add_crc_to_array
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _size_of_array@GOTPAGE
Lloh1:
	ldr	x22, [x22, _size_of_array@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _number_of_elements@GOTPAGE
Lloh3:
	ldr	x21, [x21, _number_of_elements@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _crc_array@GOTPAGE
Lloh5:
	ldr	x8, [x8, _crc_array@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x10, _pts_array@GOTPAGE
Lloh8:
	ldr	x10, [x10, _pts_array@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x10]
	b	LBB0_5
LBB0_2:
	lsl	w9, w8, #1
	mov	w10, #20
	cmp	w8, #0
	csel	w1, w10, w9, eq
	str	w1, [x22]
Lloh10:
	adrp	x23, _crc_array@GOTPAGE
Lloh11:
	ldr	x23, [x23, _crc_array@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	w2, #4
	bl	_av_realloc_f
	str	x0, [x23]
Lloh12:
	adrp	x24, _pts_array@GOTPAGE
Lloh13:
	ldr	x24, [x24, _pts_array@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_av_realloc_f
	str	x0, [x24]
	ldr	x8, [x23]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
	ldr	w9, [x21]
LBB0_5:
	str	w20, [x8, w9, sxtw #2]
	ldrsw	x8, [x21]
	str	w19, [x0, x8, lsl #2]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	w0, #0
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_size_of_array,4,2              ; @size_of_array
	.comm	_number_of_elements,4,2         ; @number_of_elements
	.comm	_crc_array,8,3                  ; @crc_array
	.comm	_pts_array,8,3                  ; @pts_array
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate array to store crcs\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_crc_to_array
.subsections_via_symbols
