	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_handshake_init
_ssl_handshake_init:                    ## @ssl_handshake_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_mbedtls_ssl_transform_free
LBB0_2:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_mbedtls_ssl_session_free
LBB0_4:
	leaq	24(%rbx), %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_mbedtls_ssl_handshake_free
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
LBB0_10:
	cmpq	$0, (%rbx)
	jne	LBB0_12
	jmp	LBB0_11
LBB0_7:
	movl	$1, %edi
	movl	$8, %esi
	callq	_mbedtls_calloc
	movq	%rax, (%r14)
	cmpq	$0, 32(%rbx)
	jne	LBB0_10
LBB0_9:
	movl	$1, %edi
	movl	$8, %esi
	callq	_mbedtls_calloc
	movq	%rax, 32(%rbx)
	cmpq	$0, (%rbx)
	jne	LBB0_12
LBB0_11:
	movl	$1, %edi
	movl	$8, %esi
	callq	_mbedtls_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.13:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.15:
	callq	_mbedtls_ssl_session_init
	movq	24(%rbx), %rdi
	callq	_ssl_transform_init
	movq	(%rbx), %rdi
	callq	_ssl_handshake_params_init
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	(%rbx), %rdi
	callq	_mbedtls_free
	movq	24(%rbx), %rdi
	callq	_mbedtls_free
	movq	32(%rbx), %rdi
	callq	_mbedtls_free
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc() of ssl sub-contexts failed"

	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_IS_CLIENT,8,3      ## @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_SSL_RETRANS_PREPARING,4,2 ## @MBEDTLS_SSL_RETRANS_PREPARING
	.comm	_MBEDTLS_SSL_RETRANS_WAITING,4,2 ## @MBEDTLS_SSL_RETRANS_WAITING
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ## @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.no_dead_strip	_ssl_handshake_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_handshake_init
_ssl_handshake_init:                    ; @ssl_handshake_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x20, x0
	ldr	x0, [x20, #24]!
	cbz	x0, LBB0_2
; %bb.1:
	bl	_mbedtls_ssl_transform_free
LBB0_2:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_mbedtls_ssl_session_free
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mbedtls_ssl_handshake_free
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
LBB0_8:
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
	b	LBB0_11
LBB0_9:
	mov	w0, #1
	mov	w1, #8
	bl	_mbedtls_calloc
	str	x0, [x20]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_8
LBB0_10:
	mov	w0, #1
	mov	w1, #8
	bl	_mbedtls_calloc
	str	x0, [x19, #32]
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
LBB0_11:
	mov	w0, #1
	mov	w1, #8
	bl	_mbedtls_calloc
	str	x0, [x19]
	cbz	x0, LBB0_15
LBB0_12:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_mbedtls_ssl_session_init
	ldr	x0, [x19, #24]
	bl	_ssl_transform_init
	ldr	x0, [x19]
	bl	_ssl_handshake_params_init
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x0, [x19]
	bl	_mbedtls_free
	ldr	x0, [x19, #24]
	bl	_mbedtls_free
	ldr	x0, [x19, #32]
	bl	_mbedtls_free
	str	xzr, [x19]
	stp	xzr, xzr, [x20]
Lloh2:
	adrp	x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc() of ssl sub-contexts failed"

	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_IS_CLIENT,8,3      ; @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_SSL_RETRANS_PREPARING,4,2 ; @MBEDTLS_SSL_RETRANS_PREPARING
	.comm	_MBEDTLS_SSL_RETRANS_WAITING,4,2 ; @MBEDTLS_SSL_RETRANS_WAITING
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ; @MBEDTLS_SSL_TRANSPORT_DATAGRAM
	.no_dead_strip	_ssl_handshake_init
.subsections_via_symbols
