	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_setup              ## -- Begin function mbedtls_ssl_setup
	.p2align	4, 0x90
_mbedtls_ssl_setup:                     ## @mbedtls_ssl_setup
	.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	_MBEDTLS_SSL_BUFFER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rsi, 96(%rdi)
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_mbedtls_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_mbedtls_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 24(%rbx)
	leaq	8(%rax), %rcx
	movq	%rcx, 16(%rbx)
	leaq	11(%rax), %rcx
	movq	%rcx, 32(%rbx)
	addq	$13, %rax
	movq	%rax, 40(%rbx)
	movq	%rax, 48(%rbx)
	movq	(%rbx), %rax
	movq	%rax, 64(%rbx)
	leaq	8(%rax), %rcx
	movq	%rcx, 56(%rbx)
	leaq	11(%rax), %rcx
	movq	%rcx, 72(%rbx)
	addq	$13, %rax
	movq	%rax, 80(%rbx)
	movq	%rax, 88(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ssl_handshake_init             ## TAILCALL
LBB0_2:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	(%rbx), %rdi
	callq	_mbedtls_free
	movq	$0, (%rbx)
	movq	_MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_BUFFER_LEN,8,3     ## @MBEDTLS_SSL_BUFFER_LEN
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ## @MBEDTLS_SSL_TRANSPORT_DATAGRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_setup              ; -- Begin function mbedtls_ssl_setup
	.p2align	2
_mbedtls_ssl_setup:                     ; @mbedtls_ssl_setup
	.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
Lloh0:
	adrp	x8, _MBEDTLS_SSL_BUFFER_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_SSL_BUFFER_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	str	x1, [x0, #96]
	mov	w0, #1
	mov	x1, x20
	bl	_mbedtls_calloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #1
	mov	x1, x20
	bl	_mbedtls_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	add	x8, x0, #8
	stp	x8, x0, [x19, #16]
	add	x8, x0, #11
	add	x9, x0, #13
	stp	x8, x9, [x19, #32]
	ldr	x8, [x19]
	add	x10, x8, #8
	stp	x9, x10, [x19, #48]
	add	x9, x8, #11
	stp	x8, x9, [x19, #64]
	add	x8, x8, #13
	stp	x8, x8, [x19, #80]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ssl_handshake_init
LBB0_3:
	mov	w0, #1
	mov	x1, x20
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x0, [x19]
	bl	_mbedtls_free
	str	xzr, [x19]
Lloh3:
	adrp	x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_BUFFER_LEN,8,3     ; @MBEDTLS_SSL_BUFFER_LEN
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ; @MBEDTLS_SSL_TRANSPORT_DATAGRAM
.subsections_via_symbols
