	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_with_noise
_fill_with_noise:                       ## @fill_with_noise
	.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	$56, %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)
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movslq	%edx, %rax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	8(,%rax,8), %r14
	xorps	%xmm0, %xmm0
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -76(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_av_bmg_get
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	(%r15), %rax
	addq	%r14, %rax
	movsd	%xmm0, -8(%rax,%r12,8)
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rax,%r12,8)
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_FFABS
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_FFABS
	movaps	%xmm0, %xmm1
	movss	-72(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_FFMAX
	movss	-76(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_FFMAX
	addq	$2, %r12
	cmpq	%r13, %r12
	jl	LBB0_2
## %bb.3:
	cvtss2sd	%xmm0, %xmm0
	movq	(%r15), %r8
	cmpl	$2, -68(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_5:
	movl	%r13d, %eax
	andl	$-2, %eax
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	leaq	-2(%rax), %rsi
	movq	%rsi, %rdx
	shrq	%rdx
	incq	%rdx
	testq	%rsi, %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_6
## %bb.7:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	leaq	(%r8,%rcx,8), %rbx
	addq	$16, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movupd	-16(%rbx,%rsi,8), %xmm2
	movupd	(%rbx,%rsi,8), %xmm3
	divpd	%xmm1, %xmm2
	movupd	%xmm2, -16(%rbx,%rsi,8)
	divpd	%xmm1, %xmm3
	movupd	%xmm3, (%rbx,%rsi,8)
	addq	$4, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
LBB0_10:
	addq	%rcx, %rsi
	movupd	(%r8,%rsi,8), %xmm2
	divpd	%xmm1, %xmm2
	movupd	%xmm2, (%r8,%rsi,8)
LBB0_11:
	cmpq	%r13, %rax
	je	LBB0_14
LBB0_12:
	leaq	(%r8,%rcx,8), %rcx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movsd	(%rcx,%rax,8), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rcx,%rax,8)
	incq	%rax
	cmpq	%rax, %r13
	jne	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_with_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_with_noise
_fill_with_noise:                       ; @fill_with_noise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	sxtw	x22, w2
	sbfiz	x25, x2, #3, #32
	movi	d8, #0000000000000000
	mov	w23, w3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_av_bmg_get
	ldr	d0, [sp, #8]
	ldr	x8, [x20]
	add	x8, x8, x25
	add	x8, x8, x24, lsl #3
	str	d0, [x8]
	ldr	d0, [sp, #16]
	str	d0, [x8, #8]
	ldr	d0, [sp, #8]
	bl	_FFABS
	fmov	s9, s0
	ldr	d0, [sp, #16]
	bl	_FFABS
	fmov	s1, s0
	fmov	s0, s9
	bl	_FFMAX
	fmov	s1, s8
	bl	_FFMAX
	fmov	s8, s0
	add	x24, x24, #2
	cmp	x24, x23
	b.lt	LBB0_2
; %bb.3:
	fcvt	d0, s8
	ldr	x8, [x20]
	cmp	w19, #8
	b.hs	LBB0_5
; %bb.4:
	mov	x9, #0
	b	LBB0_8
LBB0_5:
	and	x9, x23, #0xfffffff8
	dup.2d	v1, v0[0]
	add	x10, x8, x22, lsl #3
	add	x10, x10, #32
	mov	x11, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x10, #-32]
	ldp	q4, q5, [x10]
	fdiv.2d	v2, v2, v1
	fdiv.2d	v3, v3, v1
	fdiv.2d	v4, v4, v1
	fdiv.2d	v5, v5, v1
	stp	q2, q3, [x10, #-32]
	stp	q4, q5, [x10], #64
	subs	x11, x11, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x9, x23
	b.eq	LBB0_10
LBB0_8:
	add	x10, x9, x22
	add	x8, x8, x10, lsl #3
	sub	x9, x23, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x8]
	fdiv	d1, d1, d0
	str	d1, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_with_noise
.subsections_via_symbols
