	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_postprocess_res_std            ## -- Begin function postprocess_res_std
	.p2align	4, 0x90
_postprocess_res_std:                   ## @postprocess_res_std
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_R_position@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_Q_order@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-2, %eax
	je	LBB0_19
## %bb.3:
	cmpl	$-1, %eax
	je	LBB0_33
## %bb.4:
	cmpl	$2, %eax
	jne	LBB0_38
## %bb.5:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testq	%r9, %r9
	je	LBB0_1
## %bb.6:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_UserRate@GOTPCREL(%rip), %rax
	cmpl	$1, %r9d
	jle	LBB0_57
## %bb.7:
	movq	(%rax), %r13
	movq	_log_split_min@GOTPCREL(%rip), %r8
	movq	_log_split_mod@GOTPCREL(%rip), %r10
	movq	%r9, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movslq	%esi, %rax
	movq	%r11, (%rcx,%rax,8)
	cmpq	$2, %r14
	movq	%r15, %r14
	jbe	LBB0_58
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	leaq	-1(%r14), %r15
	movslq	(%rcx,%r14,8), %r11
	movq	8(%rcx), %rax
	movq	(%r10), %rsi
	imulq	%rax, %rsi
	addq	(%r8), %rsi
	leal	(%r15,%r15), %edi
	movslq	%edi, %rdi
	movq	%rsi, (%rcx,%rdi,8)
	movslq	(%r13,%rax,4), %rax
	leal	(%r15,%r15), %esi
	incl	%esi
	movslq	%esi, %rsi
	movq	%rax, (%rcx,%rsi,8)
	cmpq	$3, %r14
	jb	LBB0_55
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13,%r11,4), %r12d
	movl	$1, %ebx
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%edi, %rax
	cmpq	%rax, %r15
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%eax, %esi
	orl	$1, %esi
	movslq	%esi, %rdx
	movq	(%rcx,%rdx,8), %rdx
	movl	(%r13,%rdx,4), %edx
	movq	(%rcx,%rax,8), %rax
	cmpl	(%r13,%rax,4), %edx
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%edi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movslq	%esi, %rax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%edi, %esi
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	(%rcx,%rax,8), %rax
	cmpl	(%r13,%rax,4), %r12d
	jge	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movslq	%ebx, %rdx
	movq	%rax, (%rcx,%rdx,8)
	leal	(%rsi,%rsi), %edi
	movslq	%edi, %rax
	movl	%esi, %ebx
	cmpq	%rax, %r14
	jg	LBB0_12
	jmp	LBB0_9
LBB0_19:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testq	%r9, %r9
	je	LBB0_1
## %bb.20:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_UserRate@GOTPCREL(%rip), %rax
	cmpl	$1, %r9d
	jle	LBB0_57
## %bb.21:
	movq	(%rax), %r13
	movq	_log_split_min@GOTPCREL(%rip), %r8
	movq	_log_split_mod@GOTPCREL(%rip), %r10
	movq	%r9, %r14
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%ebx, %eax
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	cltq
	movq	%r11, (%rcx,%rax,8)
	cmpq	$2, %r14
	movq	%r15, %r14
	jbe	LBB0_58
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	leaq	-1(%r14), %r15
	movslq	(%rcx,%r14,8), %r11
	movq	8(%rcx), %rax
	movq	(%r10), %rsi
	imulq	%rax, %rsi
	addq	(%r8), %rsi
	leal	(%r15,%r15), %edi
	movslq	%edi, %rdi
	movq	%rsi, (%rcx,%rdi,8)
	movslq	(%r13,%rax,4), %rax
	leal	(%r15,%r15), %esi
	incl	%esi
	movslq	%esi, %rsi
	movq	%rax, (%rcx,%rsi,8)
	cmpq	$3, %r14
	jb	LBB0_55
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	(%r13,%r11,4), %r12d
	movl	$1, %ebx
	movl	$2, %esi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%esi, %rdi
	cmpq	%rdi, %r15
	jle	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	%edi, %eax
	orl	$1, %eax
	movslq	%eax, %rdx
	movq	(%rcx,%rdx,8), %rdx
	movl	(%r13,%rdx,4), %edx
	movq	(%rcx,%rdi,8), %rdi
	cmpl	(%r13,%rdi,4), %edx
	jl	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	%esi, %eax
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=2
	movslq	%eax, %rdi
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	%esi, %eax
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	(%rcx,%rdi,8), %rsi
	cmpl	(%r13,%rsi,4), %r12d
	jle	LBB0_22
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=2
	movslq	%ebx, %rdx
	movq	%rsi, (%rcx,%rdx,8)
	leal	(%rax,%rax), %esi
	movslq	%esi, %rdx
	movl	%eax, %ebx
	cmpq	%rdx, %r14
	jg	LBB0_26
	jmp	LBB0_23
LBB0_33:
	movq	_R_cnt@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	leal	-1(%r9), %eax
	testl	%eax, %eax
	jle	LBB0_36
## %bb.34:
	movabsq	$-4294967296, %r10              ## imm = 0xFFFFFFFF00000000
	movq	_R@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%eax, %edi
	movq	%rdi, %rbx
	shlq	$32, %rbx
	addq	%r10, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rsi,%rdi,8), %rcx
	movq	(%rsi,%rax,8), %rdx
	movq	%rdx, (%rsi,%rdi,8)
	movq	%rcx, (%rsi,%rax,8)
	incq	%rax
	decq	%rdi
	movq	%rbx, %rcx
	sarq	$32, %rcx
	addq	%r10, %rbx
	cmpq	%rcx, %rax
	jl	LBB0_35
LBB0_36:
	movq	_R_tot@GOTPCREL(%rip), %rax
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	cmpl	%r10d, (%rax)
	jge	LBB0_39
## %bb.37:
	movl	%r9d, %r10d
	testl	%r10d, %r10d
	jg	LBB0_43
	jmp	LBB0_1
LBB0_38:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jg	LBB0_43
	jmp	LBB0_1
LBB0_57:
	movq	(%rax), %r13
	jmp	LBB0_58
LBB0_39:
	leal	-1(%r10), %eax
	cmpl	%eax, %r9d
	jge	LBB0_42
## %bb.40:
	movslq	%r9d, %rcx
	movabsq	$-4294967296, %r9               ## imm = 0xFFFFFFFF00000000
	movq	_R@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movslq	%eax, %rbx
	movq	%rbx, %rax
	shlq	$32, %rax
	addq	%r9, %rax
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi,%rbx,8), %rsi
	movq	(%rdi,%rcx,8), %rdx
	movq	%rdx, (%rdi,%rbx,8)
	movq	%rsi, (%rdi,%rcx,8)
	incq	%rcx
	decq	%rbx
	movq	%rax, %rdx
	sarq	$32, %rdx
	addq	%r9, %rax
	cmpq	%rdx, %rcx
	jl	LBB0_41
LBB0_42:
	movl	%r10d, (%r8)
	testl	%r10d, %r10d
	jle	LBB0_1
LBB0_43:
	movq	_R@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r10d, %r11d
	cmpl	$4, %r10d
	jae	LBB0_45
## %bb.44:
	xorl	%edx, %edx
	jmp	LBB0_50
LBB0_45:
	leaq	(%rax,%r11,8), %rdx
	movq	_log_split_min@GOTPCREL(%rip), %rsi
	leaq	8(%rsi), %rdi
	cmpq	%rdi, %rax
	setb	%r9b
	cmpq	%rsi, %rdx
	seta	%r10b
	movq	_log_split_mod@GOTPCREL(%rip), %rdi
	leaq	8(%rdi), %rbx
	cmpq	%rbx, %rax
	setb	%bl
	cmpq	%rdi, %rdx
	seta	%r8b
	xorl	%edx, %edx
	testb	%r10b, %r9b
	jne	LBB0_50
## %bb.46:
	andb	%r8b, %bl
	jne	LBB0_50
## %bb.47:
	movl	%r11d, %edx
	andl	$-4, %edx
	movq	(%rsi), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movq	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	leaq	(,%r11,8), %rsi
	andq	$-32, %rsi
	xorl	%edi, %edi
	movdqa	%xmm1, %xmm2
	psrlq	$32, %xmm2
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi), %xmm3
	movdqu	16(%rax,%rdi), %xmm4
	movdqa	%xmm3, %xmm5
	pmuludq	%xmm2, %xmm5
	movdqa	%xmm3, %xmm6
	psrlq	$32, %xmm6
	pmuludq	%xmm1, %xmm6
	paddq	%xmm5, %xmm6
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm3
	paddq	%xmm6, %xmm3
	movdqa	%xmm4, %xmm5
	pmuludq	%xmm2, %xmm5
	movdqa	%xmm4, %xmm6
	psrlq	$32, %xmm6
	pmuludq	%xmm1, %xmm6
	paddq	%xmm5, %xmm6
	psllq	$32, %xmm6
	pmuludq	%xmm1, %xmm4
	paddq	%xmm6, %xmm4
	paddq	%xmm0, %xmm3
	paddq	%xmm0, %xmm4
	movdqu	%xmm3, (%rax,%rdi)
	movdqu	%xmm4, 16(%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_48
## %bb.49:
	cmpq	%r11, %rdx
	je	LBB0_1
LBB0_50:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r11b
	je	LBB0_52
## %bb.51:
	movq	_log_split_min@GOTPCREL(%rip), %r8
	movq	_log_split_mod@GOTPCREL(%rip), %rbx
	movq	(%rax,%rdx,8), %rdi
	imulq	(%rbx), %rdi
	addq	(%r8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	orq	$1, %rdx
LBB0_52:
	addq	%r11, %rsi
	je	LBB0_1
## %bb.53:
	movq	_log_split_min@GOTPCREL(%rip), %rsi
	movq	_log_split_mod@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rbx
	imulq	(%rdi), %rbx
	movq	8(%rax,%rdx,8), %rcx
	addq	(%rsi), %rbx
	movq	%rbx, (%rax,%rdx,8)
	imulq	(%rdi), %rcx
	addq	(%rsi), %rcx
	movq	%rcx, 8(%rax,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_54
	jmp	LBB0_1
LBB0_55:
	movq	%r11, 8(%rcx)
LBB0_58:
	movq	_log_split_min@GOTPCREL(%rip), %rdx
	movq	_log_split_mod@GOTPCREL(%rip), %rsi
	leaq	8(%rcx), %rax
	movq	8(%rcx), %rdi
	movq	(%rsi), %rsi
	imulq	%rdi, %rsi
	addq	(%rdx), %rsi
	movq	%rsi, (%rcx)
	leaq	(,%rdi,4), %rcx
	addq	%r13, %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, (%rax)
	addl	%r9d, %r9d
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	%r9d, (%rax)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_R_position,8,3                 ## @R_position
	.comm	_Q_order,4,2                    ## @Q_order
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_R,8,3                          ## @R
	.comm	_R_tot,4,2                      ## @R_tot
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_log_split_min,8,3              ## @log_split_min
	.comm	_log_split_mod,8,3              ## @log_split_mod
	.comm	_UserRate,8,3                   ## @UserRate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_postprocess_res_std            ; -- Begin function postprocess_res_std
	.p2align	2
_postprocess_res_std:                   ; @postprocess_res_std
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _R_position@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_position@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ret
LBB0_2:
Lloh3:
	adrp	x8, _Q_order@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_order@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w8, #2
	b.eq	LBB0_17
; %bb.3:
	cmn	w8, #1
	b.eq	LBB0_29
; %bb.4:
	cmp	w8, #2
	b.ne	LBB0_37
; %bb.5:
Lloh6:
	adrp	x8, _R_cnt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_1
; %bb.6:
Lloh9:
	adrp	x9, _R@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _log_split_min@GOTPAGE
Lloh13:
	ldr	x10, [x10, _log_split_min@GOTPAGEOFF]
Lloh14:
	adrp	x11, _log_split_mod@GOTPAGE
Lloh15:
	ldr	x11, [x11, _log_split_mod@GOTPAGEOFF]
Lloh16:
	adrp	x12, _UserRate@GOTPAGE
Lloh17:
	ldr	x12, [x12, _UserRate@GOTPAGEOFF]
	cmp	w8, #1
	b.le	LBB0_48
; %bb.7:
	ldr	x12, [x12]
	mov	x13, x8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x17
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x15, [x9, w1, sxtw #3]
	cmp	x13, #2
	mov	x13, x14
	b.ls	LBB0_51
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	sub	x14, x13, #1
	ldr	x16, [x9, x13, lsl #3]
	ldr	x15, [x10]
	ldr	x17, [x11]
	ldr	x0, [x9, #8]
	madd	x15, x0, x17, x15
	lsl	w17, w14, #1
	str	x15, [x9, w17, sxtw #3]
	ldrsw	x15, [x12, x0, lsl #2]
	add	x17, x9, w14, sxtw #4
	str	x15, [x17, #8]
	sxtw	x15, w16
	cmp	x13, #3
	b.lo	LBB0_50
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sbfiz	x16, x16, #2, #32
	ldr	w16, [x12, x16]
	mov	w17, #1
	mov	w0, #2
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x2, w0
	cmp	x14, x2
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	orr	x1, x2, #0x1
	ldr	x3, [x9, x1, lsl #3]
	ldr	w3, [x12, x3, lsl #2]
	ldr	x2, [x9, x2, lsl #3]
	ldr	w2, [x12, x2, lsl #2]
	cmp	w3, w2
	csel	w1, w1, w0, gt
	sxtw	x2, w1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x1, x0
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x9, x2, lsl #3]
	ldr	w2, [x12, x0, lsl #2]
	cmp	w16, w2
	b.ge	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	str	x0, [x9, w17, sxtw #3]
	lsl	w0, w1, #1
	cmp	x13, w0, sxtw
	mov	x17, x1
	b.gt	LBB0_12
	b	LBB0_9
LBB0_17:
Lloh18:
	adrp	x8, _R_cnt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbz	w8, LBB0_1
; %bb.18:
Lloh21:
	adrp	x9, _R@GOTPAGE
Lloh22:
	ldr	x9, [x9, _R@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _UserRate@GOTPAGE
Lloh25:
	ldr	x10, [x10, _UserRate@GOTPAGEOFF]
	cmp	w8, #1
	b.le	LBB0_49
; %bb.19:
	ldr	x10, [x10]
Lloh26:
	adrp	x11, _log_split_min@GOTPAGE
Lloh27:
	ldr	x11, [x11, _log_split_min@GOTPAGEOFF]
Lloh28:
	adrp	x12, _log_split_mod@GOTPAGE
Lloh29:
	ldr	x12, [x12, _log_split_mod@GOTPAGEOFF]
	mov	x13, x8
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x1, x17
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	str	x15, [x9, w1, sxtw #3]
	cmp	x13, #2
	mov	x13, x14
	b.ls	LBB0_53
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	sub	x14, x13, #1
	ldr	x16, [x9, x13, lsl #3]
	ldr	x15, [x11]
	ldr	x17, [x12]
	ldr	x0, [x9, #8]
	madd	x15, x0, x17, x15
	lsl	w17, w14, #1
	str	x15, [x9, w17, sxtw #3]
	ldrsw	x15, [x10, x0, lsl #2]
	add	x17, x9, w14, sxtw #4
	str	x15, [x17, #8]
	sxtw	x15, w16
	cmp	x13, #3
	b.lo	LBB0_52
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sbfiz	x16, x16, #2, #32
	ldr	w16, [x10, x16]
	mov	w17, #1
	mov	w0, #2
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x2, w0
	cmp	x14, x2
	b.le	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	orr	x1, x2, #0x1
	ldr	x3, [x9, x1, lsl #3]
	ldr	w3, [x10, x3, lsl #2]
	ldr	x2, [x9, x2, lsl #3]
	ldr	w2, [x10, x2, lsl #2]
	cmp	w3, w2
	csel	w1, w1, w0, lt
	sxtw	x2, w1
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x1, x0
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	x0, [x9, x2, lsl #3]
	ldr	w2, [x10, x0, lsl #2]
	cmp	w16, w2
	b.le	LBB0_20
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=2
	str	x0, [x9, w17, sxtw #3]
	lsl	w0, w1, #1
	cmp	x13, w0, sxtw
	mov	x17, x1
	b.gt	LBB0_24
	b	LBB0_21
LBB0_29:
Lloh30:
	adrp	x8, _R_cnt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w14, w9, #1
	cmp	w14, #1
	b.lt	LBB0_32
; %bb.30:
	mov	x10, #0
Lloh32:
	adrp	x11, _R@GOTPAGE
Lloh33:
	ldr	x11, [x11, _R@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	lsl	x12, x14, #3
	mov	x13, #-4294967296
	add	x14, x13, x14, lsl #32
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x15, [x11, x12]
	lsl	x16, x10, #3
	ldr	x17, [x11, x16]
	str	x17, [x11, x12]
	str	x15, [x11, x16]
	add	x10, x10, #1
	sub	x12, x12, #8
	cmp	x10, x14, asr #32
	add	x14, x14, x13
	b.lt	LBB0_31
LBB0_32:
Lloh35:
	adrp	x10, _R_tot@GOTPAGE
Lloh36:
	ldr	x10, [x10, _R_tot@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x10]
Lloh38:
	adrp	x10, _Q_limit@GOTPAGE
Lloh39:
	ldr	x10, [x10, _Q_limit@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	cmp	w11, w10
	b.lt	LBB0_38
; %bb.33:
	sub	w12, w10, #1
	cmp	w9, w12
	b.ge	LBB0_36
; %bb.34:
Lloh41:
	adrp	x11, _R@GOTPAGE
Lloh42:
	ldr	x11, [x11, _R@GOTPAGEOFF]
	sxtw	x9, w9
Lloh43:
	ldr	x11, [x11]
	sxtw	x14, w12
	sbfiz	x12, x12, #3, #32
	mov	x13, #-4294967296
	add	x14, x13, x14, lsl #32
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x15, [x11, x12]
	lsl	x16, x9, #3
	ldr	x17, [x11, x16]
	str	x17, [x11, x12]
	str	x15, [x11, x16]
	add	x9, x9, #1
	sub	x12, x12, #8
	cmp	x9, x14, asr #32
	add	x14, x14, x13
	b.lt	LBB0_35
LBB0_36:
	str	w10, [x8]
	mov	x9, x10
	b	LBB0_38
LBB0_37:
Lloh44:
	adrp	x8, _R_cnt@GOTPAGE
Lloh45:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x8]
LBB0_38:
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.39:
Lloh47:
	adrp	x8, _R@GOTPAGE
Lloh48:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	mov	w10, w9
	cmp	w9, #1
	b.ne	LBB0_43
; %bb.40:
	mov	x9, #0
LBB0_41:
	sub	x10, x10, x9
Lloh50:
	adrp	x11, _log_split_min@GOTPAGE
Lloh51:
	ldr	x11, [x11, _log_split_min@GOTPAGEOFF]
Lloh52:
	adrp	x12, _log_split_mod@GOTPAGE
Lloh53:
	ldr	x12, [x12, _log_split_mod@GOTPAGEOFF]
	add	x8, x8, x9, lsl #3
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11]
	ldr	x13, [x12]
	ldr	x14, [x8]
	madd	x9, x14, x13, x9
	str	x9, [x8], #8
	subs	x10, x10, #1
	b.ne	LBB0_42
	b	LBB0_1
LBB0_43:
	mov	x9, #0
	add	x14, x8, x10, lsl #3
Lloh54:
	adrp	x11, _log_split_min@GOTPAGE
Lloh55:
	ldr	x11, [x11, _log_split_min@GOTPAGEOFF]
	add	x15, x11, #8
Lloh56:
	adrp	x12, _log_split_mod@GOTPAGE
Lloh57:
	ldr	x12, [x12, _log_split_mod@GOTPAGEOFF]
	add	x13, x12, #8
	cmp	x8, x13
	ccmp	x14, x12, #0, lo
	cset	w13, hi
	cmp	x14, x11
	ccmp	x8, x15, #2, hi
	b.lo	LBB0_41
; %bb.44:
	tbnz	w13, #0, LBB0_41
; %bb.45:
	and	x9, x10, #0xfffffffe
	mov	x13, x9
	mov	x14, x8
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x11]
	dup.2d	v0, v0[0]
	ldr	q1, [x14]
	ldr	x15, [x12]
	mov.d	x16, v1[1]
	mul	x16, x16, x15
	fmov	x17, d1
	mul	x15, x17, x15
	fmov	d1, x15
	mov.d	v1[1], x16
	add.2d	v0, v1, v0
	str	q0, [x14], #16
	subs	x13, x13, #2
	b.ne	LBB0_46
; %bb.47:
	cmp	x9, x10
	b.eq	LBB0_1
	b	LBB0_41
LBB0_48:
	ldr	x12, [x12]
	b	LBB0_51
LBB0_49:
	ldr	x10, [x10]
	b	LBB0_53
LBB0_50:
	str	x15, [x9, #8]
LBB0_51:
	ldr	x10, [x10]
	ldr	x13, [x11]
	mov	x11, x9
	ldr	x14, [x11, #8]!
	madd	x10, x14, x13, x10
	str	x10, [x9]
	add	x9, x12, x14, lsl #2
	b	LBB0_54
LBB0_52:
	str	x15, [x9, #8]
LBB0_53:
Lloh58:
	adrp	x11, _log_split_min@GOTPAGE
Lloh59:
	ldr	x11, [x11, _log_split_min@GOTPAGEOFF]
Lloh60:
	ldr	x12, [x11]
Lloh61:
	adrp	x11, _log_split_mod@GOTPAGE
Lloh62:
	ldr	x11, [x11, _log_split_mod@GOTPAGEOFF]
Lloh63:
	ldr	x13, [x11]
	mov	x11, x9
	ldr	x14, [x11, #8]!
	madd	x12, x14, x13, x12
	str	x12, [x9]
	add	x9, x10, x14, lsl #2
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_54:
	ldrsw	x9, [x9]
	str	x9, [x11]
	lsl	w8, w8, #1
Lloh64:
	adrp	x9, _R_cnt@GOTPAGE
Lloh65:
	ldr	x9, [x9, _R_cnt@GOTPAGEOFF]
Lloh66:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotStr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_R_position,8,3                 ; @R_position
	.comm	_Q_order,4,2                    ; @Q_order
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_R,8,3                          ; @R
	.comm	_R_tot,4,2                      ; @R_tot
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_log_split_min,8,3              ; @log_split_min
	.comm	_log_split_mod,8,3              ; @log_split_mod
	.comm	_UserRate,8,3                   ; @UserRate
.subsections_via_symbols
