	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_coord_array_append       ## -- Begin function video_coord_array_append
	.p2align	4, 0x90
_video_coord_array_append:              ## @video_coord_array_append
	.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, %r13
	movq	%rdi, %r12
	movl	16(%rsi), %esi
	movl	%edx, %edi
	callq	_MIN
	movl	%eax, %ebx
	movl	8(%r12), %eax
	leal	(%rax,%rbx), %edi
	cmpl	(%r12), %edi
	jb	LBB0_4
## %bb.1:
	callq	_next_pow2
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_video_coord_array_resize
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	8(%r12), %eax
LBB0_4:
	movl	%ebx, %r15d
	movl	%eax, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14), %rbx
	movq	40(%r12), %rdi
	addq	%rbx, %rdi
	movl	12(%r13), %esi
	leaq	(,%r15,8), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_memcpy
	shlq	$2, %r14
	addq	32(%r12), %r14
	movl	8(%r13), %esi
	shlq	$4, %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	24(%r12), %rdi
	addq	%rbx, %rdi
	movl	4(%r13), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	addq	16(%r12), %rbx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, 8(%r12)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_video_coord_array_append       ; -- Begin function video_coord_array_append
	.p2align	2
_video_coord_array_append:              ; @video_coord_array_append
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #16]
	mov	x0, x2
	bl	_MIN
	mov	x21, x0
	ldr	w23, [x19, #8]
	ldr	w8, [x19]
	add	w0, w23, w0
	cmp	w0, w8
	b.lo	LBB0_3
; %bb.1:
	bl	_next_pow2
	mov	x1, x0
	mov	x0, x19
	bl	_video_coord_array_resize
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w23, [x19, #8]
LBB0_3:
	mov	w24, w21
	mov	w8, w23
	ldr	x9, [x19, #40]
	lsl	x25, x8, #1
	add	x0, x25, x9
	ldr	w1, [x20, #12]
	lsl	x22, x24, #3
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x0, x8, w23, uxtw #2
	ldr	w1, [x20, #8]
	lsl	x2, x24, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x0, x8, x25
	ldr	w1, [x20, #4]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19, #16]
	add	x0, x8, x25
	ldr	w1, [x20]
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
	mov	w0, #1
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
