	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_colpos                      ## -- Begin function vs_colpos
	.p2align	4, 0x90
_vs_colpos:                             ## @vs_colpos
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	callq	_db_get
	cmpq	$0, -56(%rbp)
	je	LBB0_20
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_20
## %bb.2:
	movq	_O_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	movq	_O_LEFTRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	movq	(%r15), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	jmp	LBB0_5
LBB0_3:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
LBB0_5:
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r13
	cmpq	%r14, %rcx
	jbe	LBB0_7
## %bb.6:
	xorl	%r14d, %r14d
LBB0_13:
	incq	%r13
	movq	%r14, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	decq	%r13
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	callq	_CHLEN
	addq	%rax, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_14
## %bb.16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subq	-56(%rbp), %rax
	sarq	$2, %rax
	cmpq	%r15, %rbx
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rbx
	decq	%rbx
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	jmp	LBB0_20
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	decq	%r12
	subq	%rcx, %r14
	testq	%r12, %r12
	je	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%r13, %r13
	je	LBB0_19
	.p2align	4, 0x90
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, %r14
	jae	LBB0_12
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_CHLEN
	cmpq	$1, %r13
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	%rax, %r14
	movq	(%r15), %rcx
	decq	%r13
	cmpq	%rcx, %r14
	jb	LBB0_10
	jmp	LBB0_12
LBB0_19:
	movq	-48(%rbp), %rbx
	decq	%rbx
LBB0_20:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	decq	%rax
	movq	%rax, %rbx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_O_LIST,4,2                     ## @O_LIST
	.comm	_O_LEFTRIGHT,4,2                ## @O_LEFTRIGHT
	.comm	_TAB_RESET,4,2                  ## @TAB_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_colpos                      ; -- Begin function vs_colpos
	.p2align	2
_vs_colpos:                             ; @vs_colpos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x3, sp
	add	x4, sp, #8
	mov	w2, #0
	bl	_db_get
	ldp	x8, x9, [sp]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_17
LBB0_2:
Lloh0:
	adrp	x8, _O_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_ISSET
Lloh3:
	adrp	x8, _O_LEFTRIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_LEFTRIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_ISSET
	ldr	x23, [x20]
	ldp	x22, x24, [sp]
	udiv	x25, x19, x23
	cmp	x23, x19
	b.ls	LBB0_9
; %bb.3:
	mov	x21, #0
LBB0_4:
	msub	x19, x25, x23, x19
	add	x23, x24, #1
	mov	x20, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	x23, x23, #1
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_CHLEN
	add	x20, x0, x20
	cmp	x20, x19
	b.lo	LBB0_5
; %bb.7:
	ldr	x8, [sp]
	sub	x8, x22, x8
	asr	x8, x8, #2
	cmp	x20, x19
	b.ne	LBB0_16
; %bb.8:
	ldr	x9, [sp, #8]
	sub	x9, x9, #1
	cmp	x8, x9
	csel	x0, x8, x9, lo
	b	LBB0_17
LBB0_9:
	mov	x21, #0
	mov	x8, x23
	mov	x26, x25
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x21, x21, x8
	sub	x26, x26, #1
	cbz	x26, LBB0_4
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cbz	x24, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x21, x8
	b.hs	LBB0_10
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_CHLEN
	subs	x24, x24, #1
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x20]
	add	x21, x0, x21
	cmp	x21, x8
	b.lo	LBB0_13
	b	LBB0_10
LBB0_15:
	ldr	x8, [sp, #8]
LBB0_16:
	sub	x0, x8, #1
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_O_LIST,4,2                     ; @O_LIST
	.comm	_O_LEFTRIGHT,4,2                ; @O_LEFTRIGHT
	.comm	_TAB_RESET,4,2                  ; @TAB_RESET
.subsections_via_symbols
