	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qfind                          ## -- Begin function qfind
	.p2align	4, 0x90
_qfind:                                 ## @qfind
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	cmpl	%ecx, %esi
	setle	%al
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %ecx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpl	%r14d, %r12d
	jne	LBB0_1
LBB0_12:
	movslq	%r14d, %rax
	movq	(%r13,%rax,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r13), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r9), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r9d
	cmovll	%eax, %r14d
	cmovgel	%r9d, %r12d
	cmpl	%ecx, %r14d
	setle	%al
	cmpl	%ecx, %r12d
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpl	%r14d, %r12d
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##       Child Loop BB0_7 Depth 3
	xorl	%eax, %eax
	callq	_rand
	movl	%r12d, %ecx
	subl	%r14d, %ecx
	incl	%ecx
	cltd
	idivl	%ecx
	movl	%r12d, %r9d
	cmpl	%r14d, %r12d
	jl	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %edx
	movslq	%edx, %rax
	movq	(%r13,%rax,8), %r10
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%r9d, %ecx
	cmpl	%r9d, %r8d
	jg	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##       Child Loop BB0_7 Depth 3
	movslq	%r8d, %rax
	leaq	(,%rax,8), %rdx
	addq	%r13, %rdx
	movl	%r8d, %esi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rdx), %rbx
	incl	%esi
	addq	$8, %rdx
	cmpq	%r10, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	-1(%rsi), %r8d
	movslq	%ecx, %rax
	leaq	(%r15,%rax,8), %rdi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-8(%rdi), %rax
	addq	$-8, %rdi
	decl	%ecx
	cmpq	%rax, %r10
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	1(%rcx), %r9d
	cmpl	%r9d, %r8d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, -8(%rdx)
	movq	%rbx, (%rdi)
	movl	%esi, %r8d
	movl	%ecx, %r9d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qfind                          ; -- Begin function qfind
	.p2align	2
_qfind:                                 ; @qfind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w1, w3
	ccmp	w3, w2, #0, le
	cset	w0, le
	bl	_assert
	cmp	w22, w19
	b.ne	LBB0_2
LBB0_1:
	ldr	x0, [x20, w19, sxtw #3]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x23, x20, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w15, w21
	csel	w22, w22, w15, lt
	csinc	w19, w19, w15, ge
	cmp	w19, w21
	ccmp	w22, w21, #8, le
	cset	w0, ge
	bl	_assert
	cmp	w22, w19
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_10 Depth 3
	bl	_rand
	mov	x15, x22
	cmp	w19, w22
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w22, w19
	add	w8, w8, #1
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w8, w8, w19
	ldr	x8, [x20, w8, sxtw #3]
	mov	x9, x22
	mov	x12, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x9, x15
	cmp	w12, w15
	b.gt	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_10 Depth 3
	add	x10, x20, w12, sxtw #3
	mov	x11, x12
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x13, [x10], #8
	add	w11, w11, #1
	cmp	x13, x8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	sub	w12, w11, #1
	add	x14, x23, w9, sxtw #3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x16, [x14, #-8]!
	sub	w9, w9, #1
	cmp	x8, x16
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w15, w9, #1
	cmp	w12, w15
	b.gt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	stur	x16, [x10, #-8]
	str	x13, [x14]
	mov	x12, x11
	mov	x15, x9
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
