	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_sign                   ## -- Begin function encrypt_sign
	.p2align	4, 0x90
_encrypt_sign:                          ## @encrypt_sign
	.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	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	72(%rdi), %r14
	leaq	8(%rdi), %r15
	movq	$0, -48(%rbp)
	leaq	4(%r14), %r13
	addq	$44, %rdi
	callq	_FRAME_HEADROOM
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_tls_pre_encrypt
	cmpq	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	movq	32(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.3:
	movq	%r13, %rsi
	callq	_tls_prepend_opcode_v2
	jmp	LBB0_5
LBB0_4:
	leaq	40(%rbx), %rax
	movq	%rax, -48(%rbp)
LBB0_5:
	movl	(%r13), %esi
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_openvpn_encrypt
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%r15)
	jle	LBB0_9
## %bb.7:
	cmpq	$0, (%rdi)
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rsi
	callq	_tls_prepend_opcode_v1
	movq	32(%rbx), %rdi
LBB0_9:
	movq	%r15, %rsi
	callq	_tls_post_encrypt
LBB0_10:
	movq	%rbx, %rdi
	callq	_get_link_socket_info
	leaq	28(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_link_socket_get_outgoing_addr
	addq	$24, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_buffer_turnover
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAS_SUCCEEDED,8,3              ## @CAS_SUCCEEDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_sign                   ; -- Begin function encrypt_sign
	.p2align	2
_encrypt_sign:                          ; @encrypt_sign
	.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	x21, x0
	ldr	x19, [x0, #72]
	add	x20, x0, #8
	ldr	x22, [x0, #16]
	str	xzr, [sp, #8]
	add	x23, x19, #4
	add	x0, x0, #44
	bl	_FRAME_HEADROOM
	mov	x1, x0
	mov	x0, x23
	bl	_buf_init
	bl	_ASSERT
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_4
; %bb.1:
	add	x2, sp, #8
	mov	x1, x20
	bl	_tls_pre_encrypt
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x0, [x21, #32]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x1, x23
	bl	_tls_prepend_opcode_v2
	b	LBB0_5
LBB0_4:
	add	x8, x21, #40
	str	x8, [sp, #8]
LBB0_5:
	ldr	w1, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_openvpn_encrypt
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	ldr	x8, [x0]
	cbnz	x8, LBB0_9
; %bb.8:
	mov	x1, x20
	bl	_tls_prepend_opcode_v1
	ldr	x0, [x21, #32]
LBB0_9:
	mov	x1, x20
	bl	_tls_post_encrypt
LBB0_10:
	mov	x0, x21
	bl	_get_link_socket_info
	mov	x1, x0
	add	x2, x21, #28
	mov	x0, x20
	bl	_link_socket_get_outgoing_addr
	add	x1, x21, #24
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_buffer_turnover
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CAS_SUCCEEDED,8,3              ; @CAS_SUCCEEDED
.subsections_via_symbols
