	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vectx_open                     ## -- Begin function vectx_open
	.p2align	4, 0x90
_vectx_open:                            ## @vectx_open
	.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	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movl	%edi, %r12d
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_6:
	movl	4(%rbx), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movl	$0, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_1:
	leaq	-64(%rbp), %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	$72, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, (%rax)
	movq	%r13, 8(%rax)
	movl	(%rbx), %eax
	movl	%eax, 64(%r14)
	movq	$0, 56(%r14)
	movq	$0, 16(%r14)
	movl	$0, 24(%r14)
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_fingerprint_info_lookup
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_VE_FINGERPRINT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_12
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_free
	jmp	LBB0_18
LBB0_5:
	movq	_VE_FINGERPRINT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	L_.str(%rip), %rdi
LBB0_12:
	movq	%r13, %rsi
	callq	_ve_error_set
	jmp	LBB0_13
LBB0_9:
	movq	_VE_FINGERPRINT_IGNORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
LBB0_13:
	movl	24(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	$0, 32(%r14)
	movq	%r15, 16(%r14)
LBB0_18:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_br_sha256_vtable@GOTPCREL(%rip), %rcx
	movq	%rcx, 48(%r14)
	movq	_br_sha256_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$7, %r15
	movl	24(%r14), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movq	%rax, 32(%r14)
	movq	%r15, 16(%r14)
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	addq	$40, %rdi
	callq	*(%rcx)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.16:
	movq	_SEEK_SET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_vectx_lseek
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_VE_FINGERPRINT_NONE,4,2        ## @VE_FINGERPRINT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no entry"

L_.str.1:                               ## @.str.1
	.asciz	"no_hash"

	.comm	_VE_FINGERPRINT_IGNORE,4,2      ## @VE_FINGERPRINT_IGNORE
L_.str.2:                               ## @.str.2
	.asciz	"sha256="

	.comm	_br_sha256_vtable,8,3           ## @br_sha256_vtable
	.comm	_br_sha256_SIZE,8,3             ## @br_sha256_SIZE
	.comm	_VE_FINGERPRINT_UNKNOWN,4,2     ## @VE_FINGERPRINT_UNKNOWN
L_.str.3:                               ## @.str.3
	.asciz	"%s: no supported fingerprint"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_br_sha1_SIZE,8,3               ## @br_sha1_SIZE
	.comm	_br_sha1_vtable,8,3             ## @br_sha1_vtable
	.comm	_br_sha384_SIZE,8,3             ## @br_sha384_SIZE
	.comm	_br_sha384_vtable,8,3           ## @br_sha384_vtable
	.comm	_br_sha512_SIZE,8,3             ## @br_sha512_SIZE
	.comm	_br_sha512_vtable,8,3           ## @br_sha512_vtable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vectx_open                     ; -- Begin function vectx_open
	.p2align	2
_vectx_open:                            ; @vectx_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	cbz	x3, LBB0_3
LBB0_1:
	ldr	w0, [x24, #4]
	bl	_S_ISREG
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x19, #0
	str	wzr, [x20]
	b	LBB0_15
LBB0_3:
	add	x24, sp, #8
	add	x1, sp, #8
	mov	x0, x22
	bl	_fstat
	cbz	x0, LBB0_1
; %bb.4:
	mov	x24, #0
LBB0_5:
	mov	w0, #72
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.6:
	str	w22, [x19]
	ldr	w8, [x24]
	str	w8, [x19, #64]
	str	xzr, [x19, #56]
	stp	x23, xzr, [x19, #8]
	str	wzr, [x19, #24]
	mov	x0, x22
	mov	x1, x23
	bl	_fingerprint_info_lookup
	mov	x24, x0
	cbz	x0, LBB0_11
; %bb.7:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_13
; %bb.8:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_16
; %bb.9:
Lloh4:
	adrp	x8, _VE_FINGERPRINT_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VE_FINGERPRINT_UNKNOWN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20]
	bl	_free
	b	LBB0_15
LBB0_11:
Lloh12:
	adrp	x8, _VE_FINGERPRINT_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VE_FINGERPRINT_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	mov	x1, x23
	bl	_ve_error_set
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _VE_FINGERPRINT_IGNORE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VE_FINGERPRINT_IGNORE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_14:
	ldr	w8, [x19, #24]
	str	w8, [x20]
	str	xzr, [x19, #32]
	str	x24, [x19, #16]
LBB0_15:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
Lloh20:
	adrp	x8, _br_sha256_vtable@GOTPAGE
Lloh21:
	ldr	x8, [x8, _br_sha256_vtable@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh22:
	adrp	x9, _br_sha256_SIZE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _br_sha256_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x10, x24, #7
	ldr	w11, [x19, #24]
	str	w11, [x20]
	str	x9, [x19, #32]
	str	x10, [x19, #16]
	cbz	x9, LBB0_15
; %bb.17:
	ldr	x8, [x8]
	add	x0, x19, #40
	blr	x8
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.18:
Lloh25:
	adrp	x20, _SEEK_SET@GOTPAGE
Lloh26:
	ldr	x20, [x20, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x22
	mov	w1, #0
	bl	_lseek
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_vectx_lseek
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VE_FINGERPRINT_NONE,4,2        ; @VE_FINGERPRINT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no entry"

l_.str.1:                               ; @.str.1
	.asciz	"no_hash"

	.comm	_VE_FINGERPRINT_IGNORE,4,2      ; @VE_FINGERPRINT_IGNORE
l_.str.2:                               ; @.str.2
	.asciz	"sha256="

	.comm	_br_sha256_vtable,8,3           ; @br_sha256_vtable
	.comm	_br_sha256_SIZE,8,3             ; @br_sha256_SIZE
	.comm	_VE_FINGERPRINT_UNKNOWN,4,2     ; @VE_FINGERPRINT_UNKNOWN
l_.str.3:                               ; @.str.3
	.asciz	"%s: no supported fingerprint"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_br_sha1_SIZE,8,3               ; @br_sha1_SIZE
	.comm	_br_sha1_vtable,8,3             ; @br_sha1_vtable
	.comm	_br_sha384_SIZE,8,3             ; @br_sha384_SIZE
	.comm	_br_sha384_vtable,8,3           ; @br_sha384_vtable
	.comm	_br_sha512_SIZE,8,3             ; @br_sha512_SIZE
	.comm	_br_sha512_vtable,8,3           ; @br_sha512_vtable
.subsections_via_symbols
