	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_do_handshake               ## -- Begin function SSL_do_handshake
	.p2align	4, 0x90
_SSL_do_handshake:                      ## @SSL_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	$-1, %esi
	movq	%rdi, %rbx
	callq	_ossl_statem_check_finish_init
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_SSL_in_init
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_SSL_in_before
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_SSL_MODE_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	movq	%rdi, %rbx
	callq	_ASYNC_get_current_job
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*(%rdi)                         ## TAILCALL
LBB0_1:
	movq	_SSL_F_SSL_DO_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_CONNECTION_TYPE_NOT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_7:
	movq	%rdi, -16(%rbp)
	movq	_ssl_do_handshake_intern@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rsi
	callq	_ssl_start_async_job
	jmp	LBB0_8
LBB0_4:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_DO_HANDSHAKE,4,2     ## @SSL_F_SSL_DO_HANDSHAKE
	.comm	_SSL_R_CONNECTION_TYPE_NOT_SET,4,2 ## @SSL_R_CONNECTION_TYPE_NOT_SET
	.comm	_SSL_MODE_ASYNC,4,2             ## @SSL_MODE_ASYNC
	.comm	_ssl_do_handshake_intern,4,2    ## @ssl_do_handshake_intern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_do_handshake               ; -- Begin function SSL_do_handshake
	.p2align	2
_SSL_do_handshake:                      ; @SSL_do_handshake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w1, #-1
	bl	_ossl_statem_check_finish_init
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_SSL_in_init
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_SSL_in_before
	cbz	x0, LBB0_8
LBB0_3:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _SSL_MODE_ASYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_MODE_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bl	_ASYNC_get_current_job
	cbz	x0, LBB0_7
LBB0_5:
	ldr	x1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x1
LBB0_6:
Lloh3:
	adrp	x8, _SSL_F_SSL_DO_HANDSHAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_SSL_DO_HANDSHAKE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SSL_R_CONNECTION_TYPE_NOT_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_CONNECTION_TYPE_NOT_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	str	x19, [sp, #8]
Lloh9:
	adrp	x8, _ssl_do_handshake_intern@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ssl_do_handshake_intern@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ssl_start_async_job
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_DO_HANDSHAKE,4,2     ; @SSL_F_SSL_DO_HANDSHAKE
	.comm	_SSL_R_CONNECTION_TYPE_NOT_SET,4,2 ; @SSL_R_CONNECTION_TYPE_NOT_SET
	.comm	_SSL_MODE_ASYNC,4,2             ; @SSL_MODE_ASYNC
	.comm	_ssl_do_handshake_intern,4,2    ; @ssl_do_handshake_intern
.subsections_via_symbols
