	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_top_v                      ## -- Begin function get_top_v
	.p2align	4, 0x90
_get_top_v:                             ## @get_top_v
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	$0, (%r12)
	movq	_q_entry@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %ebx
	movl	%edi, %eax
	negl	%eax
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmovsl	%edi, %eax
	cmpl	$10000, %eax                    ## imm = 0x2710
	movl	$10000, %r15d                   ## imm = 0x2710
	cmovll	%eax, %r15d
	leal	4(,%r15,4), %eax
	movq	_MAX_BUFF@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setb	%dil
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.2:
	movq	_qr@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%ebx, %ebx
	setns	%al
	cmpl	(%rcx), %ebx
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%r13), %rax
	movslq	%ebx, %r14
	xorl	%edi, %edi
	cmpl	%r14d, 4(%rax,%r14,8)
	setne	%dil
	callq	_assert
	movq	(%r13), %rax
	cmpl	%r14d, 4(%rax,%r14,8)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_STAT_ST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_qr@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	addl	%edx, %r8d
	cmpl	%r8d, %ebx
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_fprintf
	movl	(%r15), %eax
	movq	_STAT_ST@GOTPCREL(%rip), %r15
	addl	(%r15), %eax
	cmpl	%eax, %ebx
	setl	%r13b
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_STAT_ST@GOTPCREL(%rip), %r15
	addl	(%r15), %r8d
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_fprintf
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movzbl	%r13b, %edi
	callq	_assert
	movq	_q_entry@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%r15), %edx
	movq	_qr@GOTPCREL(%rip), %r15
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	4(%rax,%r14,8), %ebx
	movl	(%r15), %r8d
	addl	%edx, %r8d
	cmpl	%ebx, %edx
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r8d, %ebx
	jl	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_fprintf
	movq	_STAT_ST@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%ebx, %eax
	setle	%cl
	addl	(%r15), %eax
	cmpl	%eax, %ebx
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	(%r14), %edx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %eax
	subl	%edx, %eax
	movslq	(%r12), %rcx
	leaq	1(%rcx), %rdx
	movq	_q_rev@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cltq
	movl	(%rsi,%rax,4), %eax
	movl	%edx, (%r12)
	movl	%eax, 4(%r12,%rcx,4)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r12), %rcx
	movslq	(%r12,%rcx,4), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	_names_buff@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_black_list_check
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	decl	(%r12)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	decl	%r15d
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	movslq	%ebx, %r14
	movq	(%r13), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 4(%rax,%r14,8)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=2
	testl	%r15d, %r15d
	jne	LBB0_5
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %ebx
	testl	%ebx, %ebx
	movq	_qr@GOTPCREL(%rip), %rcx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_3
LBB0_21:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buff,8,3                       ## @buff
	.comm	_q_entry,8,3                    ## @q_entry
	.comm	_MAX_BUFF,4,2                   ## @MAX_BUFF
	.comm	_qr,4,2                         ## @qr
	.comm	_STAT_ST,4,2                    ## @STAT_ST
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d < %d < %d\n"

	.comm	_q_rev,8,3                      ## @q_rev
	.comm	_names_buff,8,3                 ## @names_buff
	.comm	_names,8,3                      ## @names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_top_v                      ; -- Begin function get_top_v
	.p2align	2
_get_top_v:                             ; @get_top_v
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x8, _buff@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buff@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	wzr, [x20]
Lloh3:
	adrp	x23, _q_entry@GOTPAGE
Lloh4:
	ldr	x23, [x23, _q_entry@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w25, [x8]
	cmp	w0, #0
	cneg	w8, w0, mi
	mov	w9, #10000
	cmp	w8, w9
	csel	w24, w8, w9, lt
	lsl	w8, w24, #2
	add	w8, w8, #4
Lloh5:
	adrp	x9, _MAX_BUFF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_BUFF@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
	cmp	w25, #0
	ccmp	w24, #0, #4, ne
	b.ne	LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh8:
	adrp	x26, _qr@GOTPAGE
Lloh9:
	ldr	x26, [x26, _qr@GOTPAGEOFF]
Lloh10:
	adrp	x27, _STAT_ST@GOTPAGE
Lloh11:
	ldr	x27, [x27, _STAT_ST@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x9, x9, #3
	ldr	w25, [x8, x9]
	cmp	w25, #0
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w25, #0
	ldr	w8, [x26]
	ccmp	w25, w8, #0, ge
	cset	w0, lt
	bl	_assert
	ldr	x8, [x23]
	sxtw	x28, w25
	sbfiz	x22, x25, #3, #32
	add	x8, x8, x22
	ldr	w8, [x8, #4]
	cmp	w8, w25
	cset	w0, ne
	bl	_assert
	ldr	x8, [x23]
	add	x9, x8, x22
	ldr	w9, [x9, #4]
	cmp	w9, w25
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x25
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w24, w24, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sxtw	x28, w22
	ldr	x8, [x23]
	add	x9, x8, x28, lsl #3
	ldr	w9, [x9, #4]
	cmp	w9, w25
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w22, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w2, [x27]
	ldr	w9, [x26]
	add	w4, w9, w2
	cmp	w22, w4
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_fprintf
	ldr	w8, [x27]
	ldr	w9, [x26]
	add	w8, w9, w8
	cmp	w22, w8
	cset	w0, lt
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x27]
	ldr	w9, [x26]
	add	w4, w9, w8
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	bl	_fprintf
	mov	w0, #0
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_assert
	ldr	x8, [x23]
	ldr	w2, [x27]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, x28, lsl #3
	ldr	w22, [x8, #4]
	ldr	w8, [x26]
	add	w4, w8, w2
	cmp	w2, w22
	ccmp	w22, w4, #0, le
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x3, x22
	bl	_fprintf
	ldr	w8, [x27]
	cmp	w8, w22
	ldr	w9, [x26]
	add	w8, w9, w8
	ccmp	w22, w8, #0, le
	cset	w0, lt
	bl	_assert
	ldr	w2, [x27]
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh23:
	adrp	x8, _q_rev@GOTPAGE
Lloh24:
	ldr	x8, [x8, _q_rev@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sub	w9, w22, w2
	ldr	w8, [x8, w9, sxtw #2]
	ldrsw	x9, [x20]
	add	x9, x9, #1
	str	w9, [x20]
	str	w8, [x20, x9, lsl #2]
	tbnz	w19, #31, LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
Lloh26:
	adrp	x8, _names_buff@GOTPAGE
Lloh27:
	ldr	x8, [x8, _names_buff@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _names@GOTPAGE
Lloh30:
	ldr	x9, [x9, _names@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldrsw	x10, [x20]
	ldrsw	x10, [x20, x10, lsl #2]
	ldr	x9, [x9, x10, lsl #3]
	add	x0, x9, x8
	bl	_black_list_check
	cbz	w0, LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_buff,8,3                       ; @buff
	.comm	_q_entry,8,3                    ; @q_entry
	.comm	_MAX_BUFF,4,2                   ; @MAX_BUFF
	.comm	_qr,4,2                         ; @qr
	.comm	_STAT_ST,4,2                    ; @STAT_ST
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d < %d < %d\n"

	.comm	_q_rev,8,3                      ; @q_rev
	.comm	_names_buff,8,3                 ; @names_buff
	.comm	_names,8,3                      ; @names
.subsections_via_symbols
