	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_crypt_v2_verify_metadata
_tls_crypt_v2_verify_metadata:          ## @tls_crypt_v2_verify_metadata
	.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	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -56(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_buf_read_u8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_platform_create_temp_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_buffer_write_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	$0, -68(%rbp)
	leaq	L_.str.3(%rip), %rdx
	leaq	-68(%rbp), %r13
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%ebx, %ecx
	callq	_openvpn_snprintf
	xorl	%edi, %edi
	callq	_env_set_create
	movq	%rax, %r12
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%rax, %rdi
	callq	_setenv_str
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_setenv_str
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_setenv_str
	xorl	%eax, %eax
	callq	_argv_new
	movl	%eax, -64(%rbp)
	movl	(%r15), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_argv_parse_cmd
	movq	_D_TLS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rsi
	callq	_argv_msg_prefix
	leaq	L_.str.9(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_openvpn_run_script
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_argv_reset
	movq	%r12, %rdi
	callq	_env_set_destroy
	movq	%r14, %rdi
	callq	_platform_unlink
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_msg
LBB0_7:
	movq	_D_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.12(%rip), %rsi
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	xorl	%eax, %eax
	callq	_msg
	leaq	-56(%rbp), %rdi
	callq	_gc_free
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_WARN,4,2                     ## @M_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: no metadata type"

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

L_.str.2:                               ## @.str.2
	.asciz	"ERROR: could not write metadata to file"

L_.str.3:                               ## @.str.3
	.asciz	"%i"

L_.str.4:                               ## @.str.4
	.asciz	"script_type"

L_.str.5:                               ## @.str.5
	.asciz	"tls-crypt-v2-verify"

L_.str.6:                               ## @.str.6
	.asciz	"metadata_type"

L_.str.7:                               ## @.str.7
	.asciz	"metadata_file"

	.comm	_D_TLS_DEBUG,4,2                ## @D_TLS_DEBUG
L_.str.8:                               ## @.str.8
	.asciz	"Executing tls-crypt-v2-verify"

L_.str.9:                               ## @.str.9
	.asciz	"--tls-crypt-v2-verify"

L_.str.10:                              ## @.str.10
	.asciz	"WARNING: failed to remove temp file '%s"

	.comm	_D_HANDSHAKE,4,2                ## @D_HANDSHAKE
L_.str.11:                              ## @.str.11
	.asciz	"TLS CRYPT V2 VERIFY SCRIPT OK"

L_.str.12:                              ## @.str.12
	.asciz	"TLS CRYPT V2 VERIFY SCRIPT ERROR"

	.no_dead_strip	_tls_crypt_v2_verify_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_crypt_v2_verify_metadata
_tls_crypt_v2_verify_metadata:          ; @tls_crypt_v2_verify_metadata
	.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	x20, x1
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #24]
	ldr	w8, [x19]
	str	w8, [sp, #16]
	add	x0, sp, #16
	bl	_buf_read_u8
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	bl	_platform_create_temp_file
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	add	x1, sp, #16
	bl	_buffer_write_file
	cbz	w0, LBB0_7
; %bb.3:
	str	wzr, [sp, #12]
Lloh2:
	adrp	x2, l_.str.3@PAGE
Lloh3:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #12
	mov	w1, #4
	mov	x3, x21
	bl	_openvpn_snprintf
	mov	x0, #0
	bl	_env_set_create
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_setenv_str
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_setenv_str
Lloh10:
	adrp	x1, l_.str.7@PAGE
Lloh11:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_setenv_str
	bl	_argv_new
	str	w0, [sp, #8]
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_argv_parse_cmd
Lloh12:
	adrp	x8, _D_TLS_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D_TLS_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x2, l_.str.8@PAGE
Lloh16:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x1, sp, #8
	bl	_argv_msg_prefix
Lloh17:
	adrp	x3, l_.str.9@PAGE
Lloh18:
	add	x3, x3, l_.str.9@PAGEOFF
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #0
	bl	_openvpn_run_script
	mov	x20, x0
	add	x0, sp, #8
	bl	_argv_reset
	mov	x0, x21
	bl	_env_set_destroy
	mov	x0, x19
	bl	_platform_unlink
	cbnz	w0, LBB0_5
; %bb.4:
Lloh19:
	adrp	x8, _M_WARN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_msg
LBB0_5:
Lloh24:
	adrp	x8, _D_HANDSHAKE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _D_HANDSHAKE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	cbz	w20, LBB0_10
; %bb.6:
Lloh27:
	adrp	x1, l_.str.11@PAGE
Lloh28:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh29:
	adrp	x8, _M_WARN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh34:
	adrp	x8, _M_WARN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	bl	_msg
	mov	w20, #0
	b	LBB0_12
LBB0_10:
Lloh39:
	adrp	x1, l_.str.12@PAGE
Lloh40:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_11:
	bl	_msg
LBB0_12:
	add	x0, sp, #24
	bl	_gc_free
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_M_WARN,4,2                     ; @M_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: no metadata type"

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

l_.str.2:                               ; @.str.2
	.asciz	"ERROR: could not write metadata to file"

l_.str.3:                               ; @.str.3
	.asciz	"%i"

l_.str.4:                               ; @.str.4
	.asciz	"script_type"

l_.str.5:                               ; @.str.5
	.asciz	"tls-crypt-v2-verify"

l_.str.6:                               ; @.str.6
	.asciz	"metadata_type"

l_.str.7:                               ; @.str.7
	.asciz	"metadata_file"

	.comm	_D_TLS_DEBUG,4,2                ; @D_TLS_DEBUG
l_.str.8:                               ; @.str.8
	.asciz	"Executing tls-crypt-v2-verify"

l_.str.9:                               ; @.str.9
	.asciz	"--tls-crypt-v2-verify"

l_.str.10:                              ; @.str.10
	.asciz	"WARNING: failed to remove temp file '%s"

	.comm	_D_HANDSHAKE,4,2                ; @D_HANDSHAKE
l_.str.11:                              ; @.str.11
	.asciz	"TLS CRYPT V2 VERIFY SCRIPT OK"

l_.str.12:                              ; @.str.12
	.asciz	"TLS CRYPT V2 VERIFY SCRIPT ERROR"

	.no_dead_strip	_tls_crypt_v2_verify_metadata
.subsections_via_symbols
