	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lag_rac_init                ## -- Begin function ff_lag_rac_init
	.p2align	4, 0x90
_ff_lag_rac_init:                       ## @ff_lag_rac_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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_align_get_bits
	movq	%r14, %rdi
	callq	_get_bits_left
	movl	%eax, %r15d
	sarl	$3, %r15d
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rcx
	movq	%rcx, 8(%r12)
	movq	%rcx, (%r12)
	movslq	%r15d, %rdx
	leaq	(%rcx,%rdx,4), %rcx
	movq	%rcx, 16(%r12)
	movl	$128, 24(%r12)
	movl	(%rbx,%rax,4), %eax
	sarl	%eax
	movl	%eax, 28(%r12)
	movl	64(%r12), %edi
	movl	$10, %esi
	callq	_FFMAX
	movl	%eax, %ecx
	addl	$-10, %ecx
	movl	%ecx, 32(%r12)
	movq	$0, 56(%r12)
	movq	40(%r12), %r14
	movq	48(%r12), %r9
	addq	$4, %r14
	xorl	%r10d, %r10d
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	movabsq	$4294967296, %r11               ## imm = 0x100000000
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r10d, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movq	%rbx, %rcx
	shlq	$32, %rcx
	addq	%r8, %rcx
	movslq	%ebx, %rax
	leal	-1(%rax), %esi
	leaq	(%r14,%rax,4), %rax
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	addq	%r11, %rcx
	incl	%esi
	leaq	4(%rax), %rdx
	leal	1(%rdi), %ebx
	cmpl	%r15d, (%rax)
	movq	%rdx, %rax
	jbe	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, (%r9,%r10,4)
	movq	%r10, %rax
	orq	$1, %rax
	movb	32(%r12), %cl
	movl	%eax, %edx
	shll	%cl, %edx
	movslq	%edi, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rcx
	incq	%rbx
	cmpl	%edx, 4(%r14,%rcx,4)
	jbe	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, (%r9,%rax,4)
	addq	$2, %r10
	cmpq	$1024, %r10                     ## imm = 0x400
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%r12), %ecx
	jmp	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_lag_rac_init                ; -- Begin function ff_lag_rac_init
	.p2align	2
_ff_lag_rac_init:                       ; @ff_lag_rac_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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_align_get_bits
	mov	x0, x20
	bl	_get_bits_left
	asr	w21, w0, #3
	ldr	x22, [x20]
	mov	x0, x20
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	add	x8, x22, w8, sxtw #2
	stp	x8, x8, [x19]
	add	x9, x8, w21, sxtw #2
	str	x9, [x19, #16]
	mov	w9, #128
	str	w9, [x19, #24]
	ldr	w8, [x8]
	asr	w8, w8, #1
	str	w8, [x19, #28]
	ldr	w0, [x19, #64]
	mov	w1, #10
	bl	_FFMAX
	mov	x8, #0
	mov	x11, #0
	sub	w12, w0, #10
	str	w12, [x19, #32]
	str	xzr, [x19, #56]
	ldp	x10, x9, [x19, #40]
	add	x10, x10, #4
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	lsl	w12, w8, w12
	sxtw	x14, w11
	sub	w13, w14, #1
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x11, x14, #1
	ldr	w15, [x10, x14, lsl #2]
	add	w13, w13, #1
	mov	x14, x11
	cmp	w15, w12
	b.ls	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w13, [x9, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, #1024
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x11, x11, #1
	ldr	w12, [x19, #32]
	b	LBB0_1
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
