	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x3fa999999999999a              ## double 0.050000000000000003
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-68(%rbp), %rdi
	movl	$1, %esi
	callq	_av_lfg_init
	movq	_MAX_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	imull	%eax, %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_array@GOTPCREL(%rip), %r12
	movq	_reff@GOTPCREL(%rip), %r13
	movq	_arrayf@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-68(%rbp), %rdi
	movq	%rcx, %r15
	callq	_av_lfg_get
                                        ## kill: def $eax killed $eax def $rax
	leal	2047(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-2048, %ecx                    ## imm = 0xF800
	subl	%ecx, %eax
	movq	_ref@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%r15, %rcx
	incq	%rbx
	movl	(%r15), %eax
	imull	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movl	$100, %r15d
	leaq	-68(%rbp), %r12
	movq	_ref@GOTPCREL(%rip), %r14
	movq	%rcx, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r15d
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_av_lfg_get
	cltd
	idivl	(%rbx)
	movl	%edx, -64(%rbp)
	movq	%r12, %rdi
	callq	_av_lfg_get
	cltd
	idivl	(%rbx)
	movl	%edx, -60(%rbp)
	movq	%r12, %rdi
	callq	_av_lfg_get
	cltd
	idivl	(%rbx)
	movl	%edx, -56(%rbp)
	movq	%r12, %rdi
	callq	_av_lfg_get
	cltd
	idivl	(%rbx)
	movl	%edx, -52(%rbp)
	movl	-64(%rbp), %eax
	cmpl	-60(%rbp), %eax
	jge	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edx, -56(%rbp)
	jge	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_av_lfg_get
	cltd
	movq	_FF_DWT_MAX_DECLVLS@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %r13d
	movq	_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r14), %rsi
	movq	_FF_DWT53@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rdx
	movl	%r13d, %ecx
	xorl	%r9d, %r9d
	callq	_test_dwt
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	movq	_FF_DWT97_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leal	7(%r13,%r13,4), %edi
	leal	15(%r13,%r13,2), %esi
	callq	_FFMIN
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	-72(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_test_dwt
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_arrayf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_reff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_test_dwtf
	testl	%eax, %eax
	movq	_ref@GOTPCREL(%rip), %r14
	je	LBB0_9
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_W,4,2                      ## @MAX_W
	.comm	_ref,8,3                        ## @ref
	.comm	_array,8,3                      ## @array
	.comm	_reff,8,3                       ## @reff
	.comm	_arrayf,8,3                     ## @arrayf
	.comm	_FF_DWT_MAX_DECLVLS,4,2         ## @FF_DWT_MAX_DECLVLS
	.comm	_FF_DWT53,4,2                   ## @FF_DWT53
	.comm	_FF_DWT97_INT,4,2               ## @FF_DWT97_INT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #4
	mov	w1, #1
	bl	_av_lfg_init
Lloh3:
	adrp	x23, _MAX_W@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_W@GOTPAGEOFF]
	ldr	w8, [x23]
	mul	w8, w8, w8
Lloh5:
	adrp	x24, _array@GOTPAGE
Lloh6:
	ldr	x24, [x24, _array@GOTPAGEOFF]
Lloh7:
	adrp	x25, _ref@GOTPAGE
Lloh8:
	ldr	x25, [x25, _ref@GOTPAGEOFF]
Lloh9:
	adrp	x26, _arrayf@GOTPAGE
Lloh10:
	ldr	x26, [x26, _arrayf@GOTPAGEOFF]
Lloh11:
	adrp	x27, _reff@GOTPAGE
Lloh12:
	ldr	x27, [x27, _reff@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	bl	_av_lfg_get
	negs	w8, w0
	and	w8, w8, #0x7ff
	and	w9, w0, #0x7ff
	csneg	w8, w9, w8, mi
	ldr	x9, [x25]
	lsl	x10, x19, #2
	str	w8, [x9, x10]
	ldr	x9, [x24]
	str	w8, [x9, x10]
	ldr	x9, [x27]
	str	w8, [x9, x10]
	ldr	x9, [x26]
	str	w8, [x9, x10]
	add	x19, x19, #1
	ldr	w8, [x23]
	mul	w8, w8, w8
	cmp	x19, x8
	b.lo	LBB0_2
LBB0_3:
	mov	w28, #100
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	subs	w28, w28, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	bl	_av_lfg_get
	ldr	w8, [x23]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	str	w8, [sp, #8]
	add	x0, sp, #4
	bl	_av_lfg_get
	ldr	w8, [x23]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	str	w8, [sp, #12]
	add	x0, sp, #4
	bl	_av_lfg_get
	ldr	w8, [x23]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	str	w8, [sp, #16]
	add	x0, sp, #4
	bl	_av_lfg_get
	ldr	w8, [x23]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	str	w8, [sp, #20]
	ldp	w9, w10, [sp, #8]
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #16]
	cmp	w9, w8
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #4
	bl	_av_lfg_get
Lloh13:
	adrp	x8, _FF_DWT_MAX_DECLVLS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FF_DWT_MAX_DECLVLS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w19, w9, w8, w0
	ldr	x0, [x24]
	ldr	x1, [x25]
Lloh16:
	adrp	x8, _FF_DWT53@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FF_DWT53@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	x3, x19
	mov	w5, #0
	bl	_test_dwt
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x24]
	ldr	x21, [x25]
Lloh19:
	adrp	x8, _FF_DWT97_INT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FF_DWT97_INT@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	add	w8, w19, w19, lsl #2
	add	w0, w8, #7
	add	w8, w19, w19, lsl #1
	add	w1, w8, #15
	bl	_FFMIN
	mov	x5, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	mov	x4, x22
	bl	_test_dwt
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x26]
	ldr	x1, [x27]
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16297, lsl #48
	fmov	d0, x8
	add	x2, sp, #8
	mov	x3, x19
	bl	_test_dwtf
	cbz	w0, LBB0_4
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_W,4,2                      ; @MAX_W
	.comm	_ref,8,3                        ; @ref
	.comm	_array,8,3                      ; @array
	.comm	_reff,8,3                       ; @reff
	.comm	_arrayf,8,3                     ; @arrayf
	.comm	_FF_DWT_MAX_DECLVLS,4,2         ; @FF_DWT_MAX_DECLVLS
	.comm	_FF_DWT53,4,2                   ; @FF_DWT53
	.comm	_FF_DWT97_INT,4,2               ; @FF_DWT97_INT
.subsections_via_symbols
