	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_correct                      ## -- Begin function v_correct
	.p2align	4, 0x90
_v_correct:                             ## @v_correct
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	16(%rsi), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_3
## %bb.1:
	movq	24(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_M_BERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_msgq
	movl	$1, %r15d
	jmp	LBB0_18
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	_VM_LMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	movq	(%rbx), %rax
	movq	16(%rbx), %rdx
LBB0_5:
	leaq	16(%rbx), %rcx
	cmpq	%rax, %rdx
	jle	LBB0_6
LBB0_8:
	movups	(%rcx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rcx)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%rbx)
	jmp	LBB0_9
LBB0_6:
	jne	LBB0_9
## %bb.7:
	movq	24(%rbx), %rax
	cmpq	8(%rbx), %rax
	ja	LBB0_8
LBB0_9:
	xorl	%r15d, %r15d
	movups	(%rcx), %xmm0
	movups	%xmm0, 32(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_18
## %bb.10:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rax
	cmpq	%rsi, 16(%rbx)
	jge	LBB0_17
## %bb.11:
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	decq	%rsi
	movq	%rsi, (%rbx)
	movq	_DBG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_db_get
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movq	-40(%rbp), %rax
	xorl	%ecx, %ecx
	subq	$1, %rax
	cmovaeq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	$0, -40(%rbp)
	movq	16(%rbx), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nonblank
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:
	movq	24(%rbx), %rax
	cmpq	-40(%rbp), %rax
	jbe	LBB0_16
## %bb.15:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_17:
	decq	%rax
	movq	%rax, 8(%rbx)
LBB0_18:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_VM_LMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_M_BERR,4,2                     ## @M_BERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"190|Search wrapped to original position"

	.comm	_VM_LMODE,4,2                   ## @VM_LMODE
	.comm	_BACKWARD,4,2                   ## @BACKWARD
	.comm	_FORWARD,4,2                    ## @FORWARD
	.comm	_DBG_FATAL,4,2                  ## @DBG_FATAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_correct                      ; -- Begin function v_correct
	.p2align	2
_v_correct:                             ; @v_correct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x22, x1
	ldr	x8, [x22, #16]!
	ldr	x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x19, #24]
	ldr	x11, [x19, #8]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _M_BERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_BERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msgq
	mov	w0, #1
	b	LBB0_17
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _VM_LMODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VM_LMODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
LBB0_5:
	cmp	x8, x9
	b.le	LBB0_7
LBB0_6:
	ldr	q0, [x22]
	str	q0, [sp, #16]
	ldr	q1, [x19]
	str	q1, [x22]
	str	q0, [x19]
	b	LBB0_9
LBB0_7:
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.hi	LBB0_6
LBB0_9:
	ldr	q0, [x22]
	str	q0, [x19, #32]
	cbz	w21, LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_17
LBB0_11:
	ldp	x9, x10, [x19, #8]
	ldr	x8, [x19]
	cmp	x10, x8
	b.ge	LBB0_16
; %bb.12:
	cbnz	x9, LBB0_16
; %bb.13:
	sub	x1, x8, #1
	str	x1, [x19]
Lloh8:
	adrp	x8, _DBG_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x3, #0
	bl	_db_get
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	x8, [sp, #8]
	sub	x9, x8, #1
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	str	x8, [x19, #8]
	str	xzr, [sp, #8]
	ldr	x1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x20
	bl	_nonblank
	cbz	x0, LBB0_18
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
	sub	x8, x9, #1
	str	x8, [x19, #8]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	x8, [x19, #24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.hi	LBB0_10
; %bb.19:
Lloh11:
	adrp	x8, _VM_LMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VM_LMODE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_BERR,4,2                     ; @M_BERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"190|Search wrapped to original position"

	.comm	_VM_LMODE,4,2                   ; @VM_LMODE
	.comm	_BACKWARD,4,2                   ; @BACKWARD
	.comm	_FORWARD,4,2                    ; @FORWARD
	.comm	_DBG_FATAL,4,2                  ; @DBG_FATAL
.subsections_via_symbols
