	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perform_query_rate_right
_perform_query_rate_right:              ## @perform_query_rate_right
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_R_cnt@GOTPCREL(%rip), %r14
	movq	_Q_limit@GOTPCREL(%rip), %r15
	movq	_R@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	callq	_perform_query_rate_right
	movl	(%r15), %eax
	addl	%eax, %eax
	cmpl	%eax, (%r14)
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_user_matches
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movq	(%r12), %rcx
	movslq	(%r14), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14)
	movl	%eax, (%rcx,%rdx,4)
	movl	4(%rbx), %eax
	sarl	$8, %eax
	movslq	(%r14), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14)
	movl	%eax, (%rcx,%rdx,4)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	addl	%eax, %eax
	cmpl	%eax, (%r14)
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_R,8,3                          ## @R
	.no_dead_strip	_perform_query_rate_right
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_query_rate_right
_perform_query_rate_right:              ; @perform_query_rate_right
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _R_cnt@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R_cnt@GOTPAGEOFF]
Lloh2:
	adrp	x21, _Q_limit@GOTPAGE
Lloh3:
	ldr	x21, [x21, _Q_limit@GOTPAGEOFF]
Lloh4:
	adrp	x22, _R@GOTPAGE
Lloh5:
	ldr	x22, [x22, _R@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	bl	_perform_query_rate_right
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9, lsl #1
	b.ge	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_user_matches
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	ldr	x9, [x22]
	ldrsw	x10, [x20]
	add	w11, w10, #1
	str	w11, [x20]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #4]
	asr	w8, w8, #8
	ldrsw	x10, [x20]
	add	w11, w10, #1
	str	w11, [x20]
	str	w8, [x9, x10, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9, lsl #1
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x19]
	cbnz	x19, LBB0_2
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_R,8,3                          ; @R
	.no_dead_strip	_perform_query_rate_right
.subsections_via_symbols
