	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function noise
_noise:                                 ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r13
	movl	(%r13), %r12d
	testl	%r12d, %r12d
	jg	LBB0_3
## %bb.1:
	movslq	4(%r13), %rax
	imulq	$-776881895, %rax, %rcx         ## imm = 0xD1B1B919
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$13, %ecx
	addl	%edx, %ecx
	imull	$10001, %ecx, %ecx              ## imm = 0x2711
	movl	%eax, %edx
	subl	%ecx, %edx
	js	LBB0_5
## %bb.2:
	negl	%ecx
	leal	(%rax,%rcx), %r12d
	incl	%r12d
LBB0_3:
	movq	%r14, %rsi
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:
	movl	8(%r13), %esi
	testl	%esi, %esi
	jle	LBB0_10
## %bb.8:
	movl	4(%r13), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_av_packet_make_writable
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_17
## %bb.12:
	movq	8(%r14), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%esi, %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx,4), %eax
	movl	4(%r13), %ecx
	addl	%eax, %ecx
	incl	%ecx
	movl	%ecx, 4(%r13)
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	testl	%edx, %edx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, (%rdi,%rbx,4)
	movl	(%r14), %esi
	jmp	LBB0_15
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	incl	%ecx
	movl	%ecx, 4(%r13)
	movq	%r14, %rdi
	callq	_av_packet_unref
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_6:
	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	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function noise
_noise:                                 ; @noise
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldr	w22, [x21]
	cmp	w22, #0
	b.gt	LBB0_3
; %bb.1:
	ldrsw	x8, [x21, #4]
	mov	x9, #-18151
	movk	x9, #53681, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #13
	add	w9, w10, w9, lsr #31
	mov	w10, #10001
	msub	w8, w9, w10, w8
	tbnz	w8, #31, LBB0_15
; %bb.2:
	add	w22, w8, #1
LBB0_3:
	mov	x1, x19
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w9, [x21, #4]
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	cbz	w8, LBB0_16
LBB0_6:
	mov	x0, x19
	bl	_av_packet_make_writable
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x9, #0
	ldr	x10, [x19, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	ldr	w12, [x21, #4]
	add	w11, w11, w12
	add	w11, w11, #1
	str	w11, [x21, #4]
	sdiv	w12, w11, w22
	msub	w12, w12, w22, w11
	cbnz	w12, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w11, [x10, x9, lsl #2]
	ldr	w8, [x19]
	b	LBB0_9
LBB0_12:
	mov	x20, x0
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	add	w8, w9, #1
	str	w8, [x21, #4]
	mov	x0, x19
	bl	_av_packet_unref
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_noise
.subsections_via_symbols
