	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function do_output16
LCPI0_0:
	.long	0x7fc00000                      ## float NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_output16:                           ## @do_output16
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdx
	movslq	%ecx, %rax
	movl	(%rdx,%rax,4), %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movl	%r8d, %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	8(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cltq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%r14, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	andl	$-2, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, %eax
	imull	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r12
	imulq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	divss	%xmm1, %xmm0
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	callq	_lrintf
	movl	%eax, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_av_clip_uintp2_c
	movl	%eax, (%r12,%r13,4)
	incq	%r13
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	%r13, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	cmpl	$1, %r15d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
	xorps	%xmm1, %xmm1
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	24(%rcx), %rsi
	xorps	%xmm0, %xmm0
	xorl	%edx, %edx
	xorps	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-24(%rsi), %rdi
	movq	-16(%rsi), %rbx
	addss	(%rdi,%rax,4), %xmm0
	addss	(%rbx,%rax,4), %xmm1
	movq	-8(%rsi), %rdi
	movq	(%rsi), %rbx
	addss	(%rdi,%rax,4), %xmm0
	addss	(%rbx,%rax,4), %xmm1
	addq	$2, %rdx
	addq	$32, %rsi
	cmpq	%rdx, %r14
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, -104(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rsi
	movq	8(%rcx,%rdx), %rcx
	addss	(%rsi,%rax,4), %xmm0
	addss	(%rcx,%rax,4), %xmm1
	jmp	LBB0_11
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_output16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_output16
_do_output16:                           ; @do_output16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x0]
	ldr	w8, [x8, w3, sxtw #2]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x4
	mov	x22, x0
	mov	x25, #0
	sxtw	x8, w3
	ldr	w23, [x0, #16]
	ldr	x9, [x0, #8]
	ldr	w26, [x9, x8, lsl #2]
	sxtw	x27, w26
	mov	w28, w4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w25, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x21, x9, w8, sxtw #2
	mul	x24, x25, x27
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #2143289344
	fmov	s0, w8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_lrintf
	mov	x1, x23
	bl	_av_clip_uintp2_c
	str	w0, [x21, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, x26
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x22, #24]
	add	x8, x20, x24
	add	x9, x9, #8
	movi	d0, #0000000000000000
	mov	x10, x28
	movi	d1, #0000000000000000
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldur	x11, [x9, #-8]
	lsl	x12, x8, #2
	ldr	s2, [x11, x12]
	ldr	x11, [x9], #16
	ldr	s3, [x11, x12]
	fadd	s0, s0, s2
	fadd	s1, s1, s3
	subs	x10, x10, #1
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	fdiv	s0, s0, s1
	b	LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_output16
.subsections_via_symbols
