	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_vec_pos
_read_vec_pos:                          ## @read_vec_pos
	.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
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rdi, %r13
	cmpl	$0, 8(%rdx)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	8(%rbx), %esi
	movl	8(%r15), %ebx
	testl	%esi, %esi
	jle	LBB0_10
## %bb.3:
	movq	%r13, %rdi
	callq	_get_bits
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	setge	%cl
	addl	%eax, %ecx
	movq	%r12, %rbx
	movl	%ecx, 8(%r12)
	jmp	LBB0_11
LBB0_4:
	movl	$0, 8(%rsi)
	xorl	%r12d, %r12d
	movq	%rsi, %rbx
	cmpl	$0, 4(%r14)
	jne	LBB0_6
LBB0_12:
	movl	$0, 4(%rbx)
	cmpl	$0, (%r14)
	jne	LBB0_13
LBB0_20:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_5:
	movl	8(%r15), %eax
	movq	%r12, %rbx
	movl	%eax, 8(%r12)
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r14)
	jne	LBB0_6
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	movq	%r12, %rbx
	movl	%eax, 8(%r12)
LBB0_11:
	movl	$1, %r12d
	cmpl	$0, 4(%r14)
	je	LBB0_12
LBB0_6:
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	4(%r15), %r12d
	testl	%esi, %esi
	jle	LBB0_18
## %bb.8:
	movq	%r13, %rdi
	callq	_get_bits
	xorl	%ecx, %ecx
	cmpl	%r12d, %eax
	setge	%cl
	addl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	jmp	LBB0_19
LBB0_9:
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	cmpl	$0, (%r14)
	jne	LBB0_13
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, 4(%rbx)
LBB0_19:
	movl	$1, %r12d
	cmpl	$0, (%r14)
	je	LBB0_20
LBB0_13:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_21
LBB0_15:
	movq	%rbx, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r15), %ebx
	testl	%esi, %esi
	jle	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_get_bits
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	setge	%cl
	addl	%eax, %ecx
	movq	%r14, %rbx
	jmp	LBB0_22
LBB0_17:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	sete	%cl
	movq	%r14, %rbx
	jmp	LBB0_22
LBB0_21:
	movl	(%r15), %ecx
LBB0_22:
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_vec_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_vec_pos
_read_vec_pos:                          ; @read_vec_pos
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x2, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w1, [x22, #8]
	ldr	w24, [x21, #8]
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_get_bits
	cmp	w0, w24
	cinc	w8, w0, ge
	b	LBB0_8
LBB0_4:
	mov	w24, #0
	str	wzr, [x19, #8]
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_9
	b	LBB0_6
LBB0_5:
	mov	w24, #0
	ldr	w8, [x21, #8]
	str	w8, [x19, #8]
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_9
LBB0_6:
	str	wzr, [x19, #4]
	b	LBB0_15
LBB0_7:
	cmp	w24, #0
	cset	w8, eq
LBB0_8:
	str	w8, [x19, #8]
	mov	w24, #1
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w1, [x22, #4]
	ldr	w24, [x21, #4]
	cmp	w1, #0
	b.le	LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_get_bits
	cmp	w0, w24
	cinc	w8, w0, ge
	b	LBB0_14
LBB0_12:
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
	b	LBB0_15
LBB0_13:
	cmp	w24, #0
	cset	w8, eq
LBB0_14:
	str	w8, [x19, #4]
	mov	w24, #1
LBB0_15:
	ldr	w8, [x23]
	cbz	w8, LBB0_22
; %bb.16:
	cbz	w24, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_21
LBB0_18:
	ldr	w1, [x22]
	ldr	w21, [x21]
	cmp	w1, #0
	b.le	LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_get_bits
	cmp	w0, w21
	cinc	w8, w0, ge
	b	LBB0_22
LBB0_20:
	cmp	w21, #0
	cset	w8, eq
	b	LBB0_22
LBB0_21:
	ldr	w8, [x21]
LBB0_22:
	str	w8, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_vec_pos
.subsections_via_symbols
