	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_init            ## -- Begin function tls_connection_init
	.p2align	4, 0x90
_tls_connection_init:                   ## @tls_connection_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, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wolfSSL_new
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rsi
	movl	%eax, %edi
	callq	_wolfSSL_SetIOReadCtx
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	_wolfSSL_SetIOWriteCtx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_wolfSSL_set_ex_data
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wolfSSL_CTX_get_ex_data
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	callq	_wolfSSL_KeepArrays
	movl	(%rbx), %edi
	callq	_wolfSSL_KeepHandshakeResources
	movl	(%rbx), %edi
	callq	_wolfSSL_UseClientSuites
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: connection init"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_init            ; -- Begin function tls_connection_init
	.p2align	2
_tls_connection_init:                   ; @tls_connection_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	x20, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_wolfSSL_new
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.2:
	add	x1, x19, #12
	bl	_wolfSSL_SetIOReadCtx
	ldr	w0, [x19]
	add	x1, x19, #8
	bl	_wolfSSL_SetIOWriteCtx
	ldr	w0, [x19]
	mov	w1, #0
	mov	x2, x19
	bl	_wolfSSL_set_ex_data
	mov	x0, x20
	mov	w1, #0
	bl	_wolfSSL_CTX_get_ex_data
	str	w0, [x19, #4]
	ldr	w0, [x19]
	bl	_wolfSSL_KeepArrays
	ldr	w0, [x19]
	bl	_wolfSSL_KeepHandshakeResources
	ldr	w0, [x19]
	bl	_wolfSSL_UseClientSuites
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: connection init"

.subsections_via_symbols
