	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_init_elbg               ## -- Begin function avpriv_init_elbg
	.p2align	4, 0x90
_avpriv_init_elbg:                      ## @avpriv_init_elbg
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rcx, %r15
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r12
	leal	(,%r8,8), %eax
	leal	(%rax,%rax,2), %eax
	cmpl	%edx, %eax
	jge	LBB0_7
## %bb.1:
	movl	%r9d, %r14d
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	leal	7(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	sarl	$3, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %esi
	movl	%r13d, %edi
	callq	_av_malloc_array
	movq	%rax, -120(%rbp)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	cmpl	$8, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_5
## %bb.3:
	movq	%rbx, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	cltq
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BIG_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ebx, %eax
	cltd
	idivl	%r12d
	imull	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movslq	%edx, %rax
	leaq	(%r14,%rax,4), %rsi
	movq	%r13, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	incq	%rbx
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	%rbx, -112(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_5:
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	movq	24(%rbp), %rax
	pushq	%rax
	movq	16(%rbp), %rax
	pushq	%rax
	callq	_avpriv_init_elbg
	addq	$16, %rsp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movq	%r13, %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_avpriv_do_elbg
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_av_free
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_7:
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.8:
	leal	(,%r13,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %r14
	movl	%r8d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BIG_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ebx, %eax
	cltd
	idivl	-72(%rbp)                       ## 4-byte Folded Reload
	imull	%r13d, %edx
	movslq	%edx, %rax
	leaq	(%r12,%rax,4), %rsi
	movq	%r15, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	incq	%rbx
	addq	%r14, %r15
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_13
LBB0_12:
	leaq	-120(%rbp), %rdi
	movq	%rax, %rbx
	callq	_av_freep
	movq	%rbx, %rax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BIG_PRIME,4,2                  ## @BIG_PRIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_init_elbg               ; -- Begin function avpriv_init_elbg
	.p2align	2
_avpriv_init_elbg:                      ; @avpriv_init_elbg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x28, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	add	w8, w4, w4, lsl #1
	lsl	w8, w8, #3
	cmp	w8, w2
	b.ge	LBB0_7
; %bb.1:
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w27, w8, #3
	lsl	w1, w27, #2
	mov	x0, x20
	bl	_av_malloc_array
	str	x0, [sp, #40]
	cbz	x0, LBB0_11
; %bb.2:
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	stp	x24, x23, [sp, #8]              ; 16-byte Folded Spill
	str	w28, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w21, #8
	b.lt	LBB0_5
; %bb.3:
	mov	x28, #0
	lsl	w24, w20, #2
	mov	x8, x20
	sbfiz	x25, x8, #2, #32
Lloh0:
	adrp	x23, _BIG_PRIME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BIG_PRIME@GOTPAGEOFF]
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	mul	w8, w8, w28
	sdiv	w9, w8, w21
	msub	w8, w9, w21, w8
	mul	w8, w8, w20
	add	x1, x22, w8, sxtw #2
	mov	x0, x26
	mov	x2, x24
	bl	_memcpy
	add	x28, x28, #1
	add	x26, x26, x25
	cmp	x27, x28
	b.ne	LBB0_4
LBB0_5:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	lsl	w21, w8, #1
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x20
	mov	x2, x27
	mov	x3, x19
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x4, x23
	mov	x5, x21
	ldp	x25, x24, [sp, #8]              ; 16-byte Folded Reload
	mov	x6, x25
	mov	x7, x24
	bl	_avpriv_init_elbg
	tbnz	w0, #31, LBB0_12
; %bb.6:
	mov	x0, x26
	mov	x1, x20
	mov	x2, x27
	mov	x3, x19
	mov	x4, x23
	mov	x5, x21
	mov	x6, x25
	mov	x7, x24
	bl	_avpriv_do_elbg
	mov	x19, x0
	mov	x0, x26
	bl	_av_free
	mov	x0, x19
	b	LBB0_13
LBB0_7:
	cmp	w28, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x25, #0
	lsl	w24, w20, #2
	sbfiz	x26, x20, #2, #32
Lloh2:
	adrp	x23, _BIG_PRIME@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BIG_PRIME@GOTPAGEOFF]
	mov	w27, w28
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	mul	w8, w8, w25
	sdiv	w9, w8, w21
	msub	w8, w9, w21, w8
	mul	w8, w8, w20
	add	x1, x22, w8, sxtw #2
	mov	x0, x19
	mov	x2, x24
	bl	_memcpy
	add	x25, x25, #1
	add	x19, x19, x26
	cmp	x27, x25
	b.ne	LBB0_9
LBB0_10:
	mov	w22, #0
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_13
LBB0_12:
	mov	x22, x0
	add	x0, sp, #40
	bl	_av_freep
	mov	x0, x22
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BIG_PRIME,4,2                  ; @BIG_PRIME
.subsections_via_symbols
