	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prompeg_init
_prompeg_init:                          ## @prompeg_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	cmpl	$12, %edx
	jl	LBB0_2
## %bb.1:
	movq	_UINT16_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$12, %eax
	cmpl	%edx, %eax
	jge	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 96(%r15)
	movl	4(%r15), %eax
	movl	8(%r15), %ecx
	imull	%eax, %ecx
	movl	%ecx, (%r15)
	movl	%edx, 12(%r15)
	leal	-12(%rdx), %ecx
	movl	%ecx, 16(%r15)
	leal	16(%rdx), %ecx
	movl	%ecx, 20(%r15)
	addl	$-4, %edx
	movl	%edx, 24(%r15)
	leal	(%rax,%rax), %edi
	incl	%edi
	movl	%edi, 28(%r15)
	movq	_AVFMT_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	movl	$0, %eax
	testl	%edx, (%r14)
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_av_get_random_seed
	movl	%eax, %ecx
	andl	$4095, %ecx                     ## imm = 0xFFF
	shrl	$16, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	28(%r15), %edi
LBB0_5:
	movl	%ecx, 32(%r15)
	movl	%eax, 36(%r15)
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpl	$0, 28(%r15)
	jle	LBB0_13
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_av_malloc
	movq	64(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	64(%r15), %rax
	cmpq	$0, (%rax,%rbx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%r15), %edi
	movl	$4, %esi
	callq	_av_malloc_array
	movq	%rax, %rcx
	movq	64(%r15), %rax
	movq	(%rax,%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax,%rbx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	28(%r15), %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r12
	jl	LBB0_8
LBB0_13:
	movq	(%rax), %rcx
	movq	%rcx, 88(%r15)
	leaq	8(%rax), %rcx
	movq	%rcx, 80(%r15)
	movslq	4(%r15), %rcx
	leaq	8(%rax,%rcx,8), %rax
	movq	%rax, 72(%r15)
	movl	20(%r15), %edi
	movl	$4, %esi
	callq	_av_malloc_array
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movl	20(%r15), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	$0, 48(%r15)
	movl	$1, 40(%r15)
	jmp	LBB0_15
LBB0_10:
	addq	%rbx, %rax
	movq	%rax, %rdi
	callq	_av_freep
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT16_MAX,4,2                 ## @UINT16_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid RTP packet size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVFMT_FLAG_BITEXACT,4,2        ## @AVFMT_FLAG_BITEXACT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate the FEC buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_prompeg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function prompeg_init
lCPI0_0:
	.long	4294967284                      ; 0xfffffff4
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_prompeg_init:                          ; @prompeg_init
	.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, x0
	ldr	x20, [x0, #8]
	stp	xzr, xzr, [x20, #56]
	cmp	w2, #12
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _UINT16_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT16_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #12
	cmp	w8, w2
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_3:
	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_4:
	str	xzr, [x20, #96]
	ldp	w8, w9, [x20, #4]
	mul	w9, w9, w8
	str	w9, [x20]
	str	w2, [x20, #12]
	dup.2s	v0, w2
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [x20, #16]
	sub	w9, w2, #4
	mov	w0, #1
	bfi	w0, w8, #1, #31
	stp	w9, w0, [x20, #24]
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _AVFMT_FLAG_BITEXACT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AVFMT_FLAG_BITEXACT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #0
	mov	w9, #0
	b	LBB0_7
LBB0_6:
	bl	_av_get_random_seed
	and	w8, w0, #0xfff
	ubfx	w9, w0, #16, #12
	ldr	w0, [x20, #28]
LBB0_7:
	stp	w8, w9, [x20, #32]
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x20, #64]
	cbz	x0, LBB0_16
; %bb.8:
	ldr	w8, [x20, #28]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x21, #0
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_av_malloc
	ldr	x8, [x20, #64]
	str	x0, [x8, x21]
	ldr	x8, [x20, #64]
	ldr	x8, [x8, x21]
	cbz	x8, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20, #24]
	mov	w1, #4
	bl	_av_malloc_array
	mov	x8, x0
	ldr	x0, [x20, #64]
	ldr	x9, [x0, x21]
	str	x8, [x9]
	ldr	x8, [x0, x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #28]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_13:
	ldr	x8, [x0], #8
	stp	x0, x8, [x20, #80]
	ldrsw	x8, [x20, #4]
	add	x8, x0, x8, lsl #3
	str	x8, [x20, #72]
	ldr	w0, [x20, #20]
	mov	w1, #4
	bl	_av_malloc_array
	str	x0, [x20, #56]
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w2, [x20, #20]
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	str	xzr, [x20, #48]
	mov	w8, #1
	str	w8, [x20, #40]
	b	LBB0_3
LBB0_15:
	add	x0, x0, x21
	bl	_av_freep
LBB0_16:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT16_MAX,4,2                 ; @UINT16_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid RTP packet size\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVFMT_FLAG_BITEXACT,4,2        ; @AVFMT_FLAG_BITEXACT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate the FEC buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_prompeg_init
.subsections_via_symbols
