	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_handshake                   ## -- Begin function do_handshake
	.p2align	4, 0x90
_do_handshake:                          ## @do_handshake
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	leaq	12(%r9), %r8
	leaq	-40(%rbp), %rax
	movq	%rax, 16(%rsp)
	leaq	-48(%rbp), %rax
	movq	%rax, 8(%rsp)
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r9, %rcx
	xorl	%r9d, %r9d
	callq	_do_handshake_internal
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%r12), %rcx
	movq	_SSL_TEST_HANDSHAKE_RESUME@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.2:
	movq	(%rax), %rcx
	movq	_SSL_TEST_INTERNAL_ERROR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	_SSL_TEST_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_HANDSHAKE_RESULT_free
	leaq	8(%r12), %r8
	movq	-48(%rbp), %r9
	movq	-40(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_do_handshake_internal
	jmp	LBB0_6
LBB0_4:
	movq	_SSL_TEST_FIRST_HANDSHAKE_FAILED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_6:
	movq	%rax, %rbx
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_SSL_SESSION_free
	movq	-40(%rbp), %rdi
	callq	_SSL_SESSION_free
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_TEST_HANDSHAKE_RESUME,8,3  ## @SSL_TEST_HANDSHAKE_RESUME
	.comm	_SSL_TEST_INTERNAL_ERROR,8,3    ## @SSL_TEST_INTERNAL_ERROR
	.comm	_SSL_TEST_SUCCESS,8,3           ## @SSL_TEST_SUCCESS
	.comm	_SSL_TEST_FIRST_HANDSHAKE_FAILED,8,3 ## @SSL_TEST_FIRST_HANDSHAKE_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_handshake                   ; -- Begin function do_handshake
	.p2align	2
_do_handshake:                          ; @do_handshake
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	stp	xzr, xzr, [sp, #16]
	add	x4, x5, #12
	add	x8, sp, #16
	str	x8, [sp]
	add	x7, sp, #24
	mov	x3, x5
	mov	x5, #0
	mov	x6, #0
	bl	_do_handshake_internal
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_TEST_HANDSHAKE_RESUME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _SSL_TEST_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_TEST_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x9, _SSL_TEST_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL_TEST_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_HANDSHAKE_RESULT_free
	add	x4, x19, #8
	ldp	x6, x5, [sp, #16]
	str	xzr, [sp]
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	mov	x3, x19
	mov	x7, #0
	bl	_do_handshake_internal
	mov	x22, x0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _SSL_TEST_FIRST_HANDSHAKE_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_TEST_FIRST_HANDSHAKE_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_6:
	ldr	x0, [sp, #24]
	bl	_SSL_SESSION_free
	ldr	x0, [sp, #16]
	bl	_SSL_SESSION_free
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_TEST_HANDSHAKE_RESUME,8,3  ; @SSL_TEST_HANDSHAKE_RESUME
	.comm	_SSL_TEST_INTERNAL_ERROR,8,3    ; @SSL_TEST_INTERNAL_ERROR
	.comm	_SSL_TEST_SUCCESS,8,3           ; @SSL_TEST_SUCCESS
	.comm	_SSL_TEST_FIRST_HANDSHAKE_FAILED,8,3 ; @SSL_TEST_FIRST_HANDSHAKE_FAILED
.subsections_via_symbols
