	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_ssl_connection          ## -- Begin function create_ssl_connection
	.p2align	4, 0x90
_create_ssl_connection:                 ## @create_ssl_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	$1, %ecx
	callq	_create_bare_ssl_connection
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-17(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_SSL_read_ex
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_TEST_ulong_eq
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:
	leaq	-17(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_SSL_read_ex
	testq	%rax, %rax
	jle	LBB0_7
## %bb.8:
	movq	-32(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_TEST_ulong_eq
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_ssl_connection          ; -- Begin function create_ssl_connection
	.p2align	2
_create_ssl_connection:                 ; @create_ssl_connection
	.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
	mov	x19, x1
	mov	w3, #1
	bl	_create_bare_ssl_connection
	cbz	w0, LBB0_7
; %bb.1:
	add	x1, sp, #15
	mov	x3, sp
	mov	x0, x19
	mov	w2, #1
	bl	_SSL_read_ex
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [sp]
	mov	w1, #0
	bl	_TEST_ulong_eq
	cbnz	w0, LBB0_4
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_SSL_get_error
Lloh0:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_7
LBB0_4:
	add	x1, sp, #15
	mov	x3, sp
	mov	x0, x19
	mov	w2, #1
	bl	_SSL_read_ex
	cmp	x0, #0
	b.le	LBB0_8
; %bb.5:
	ldr	x0, [sp]
	mov	w1, #0
	bl	_TEST_ulong_eq
	cbz	w0, LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_SSL_get_error
Lloh3:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbnz	w0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
.subsections_via_symbols
