	.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
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_tls_gnutls_init_session
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	movq	_GNUTLS_CRD_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	callq	_gnutls_credentials_set
	testl	%eax, %eax
	js	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_gnutls_certificate_allocate_credentials
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_gnutls_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_6:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNUTLS_CRD_CERTIFICATE,4,2     ## @GNUTLS_CRD_CERTIFICATE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure credentials: %s"

.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
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	str	x20, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_tls_gnutls_init_session
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _GNUTLS_CRD_CERTIFICATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GNUTLS_CRD_CERTIFICATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
	bl	_gnutls_credentials_set
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_gnutls_certificate_allocate_credentials
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_gnutls_strerror
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
LBB0_6:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GNUTLS_CRD_CERTIFICATE,4,2     ; @GNUTLS_CRD_CERTIFICATE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure credentials: %s"

.subsections_via_symbols
