	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_init                       ## -- Begin function tls_init
	.p2align	4, 0x90
_tls_init:                              ## @tls_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_tls_context_new
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movq	_tls_ref_count@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_tls_global@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wolfSSL_Init
	testq	%rax, %rax
	js	LBB0_15
## %bb.3:
	movq	(%rbx), %rax
LBB0_4:
	incq	%rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_wolfSSLv23_client_method
	movl	%eax, %edi
	callq	_wolfSSL_CTX_new
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	(%rbx), %rax
	decq	%rax
	movq	%rax, (%rbx)
	movq	_tls_global@GOTPCREL(%rip), %r13
	cmpq	(%r13), %r15
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_os_free
	movq	(%rbx), %rax
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	(%r13), %rdi
	callq	_os_free
	movq	$0, (%r13)
LBB0_9:
	movq	_wolfssl_receive_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_SetIORecv
	movq	_wolfssl_send_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_SetIOSend
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_wolfSSL_CTX_set_ex_data
	cmpl	$0, 8(%r14)
	jle	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wolfSSL_CTX_set_quiet_shutdown
	movq	_SSL_SESS_CACHE_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_CTX_set_session_cache_mode
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_CTX_set_timeout
	movq	_remove_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_CTX_sess_set_remove_cb
	jmp	LBB0_12
LBB0_11:
	movq	_SSL_SESS_CACHE_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wolfSSL_CTX_set_session_cache_mode
LBB0_12:
	movq	(%r14), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %rbx
	cmovneq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wolfSSL_CTX_set_cipher_list
	cmpl	$1, %eax
	je	LBB0_15
## %bb.13:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_tls_deinit
LBB0_14:
	xorl	%r12d, %r12d
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_ref_count,8,3              ## @tls_ref_count
	.comm	_tls_global,8,3                 ## @tls_global
	.comm	_wolfssl_receive_cb,4,2         ## @wolfssl_receive_cb
	.comm	_wolfssl_send_cb,4,2            ## @wolfssl_send_cb
	.comm	_SSL_SESS_CACHE_SERVER,4,2      ## @SSL_SESS_CACHE_SERVER
	.comm	_remove_session_cb,4,2          ## @remove_session_cb
	.comm	_SSL_SESS_CACHE_CLIENT,4,2      ## @SSL_SESS_CACHE_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALL"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"wolfSSL: Failed to set cipher string '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_init                       ; -- Begin function tls_init
	.p2align	2
_tls_init:                              ; @tls_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_tls_context_new
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _tls_ref_count@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tls_ref_count@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _tls_global@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tls_global@GOTPAGEOFF]
Lloh4:
	str	x21, [x8]
	bl	_wolfSSL_Init
	tbnz	x0, #63, LBB0_14
; %bb.3:
	ldr	x8, [x22]
LBB0_4:
	add	x8, x8, #1
	str	x8, [x22]
	bl	_wolfSSLv23_client_method
	bl	_wolfSSL_CTX_new
	mov	x20, x0
	cbnz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
Lloh5:
	adrp	x23, _tls_global@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tls_global@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x21, x9
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_os_free
	ldr	x8, [x22]
LBB0_7:
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x0, [x23]
	bl	_os_free
	str	xzr, [x23]
LBB0_9:
Lloh7:
	adrp	x8, _wolfssl_receive_cb@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wolfssl_receive_cb@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wolfSSL_SetIORecv
Lloh10:
	adrp	x8, _wolfssl_send_cb@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wolfssl_send_cb@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wolfSSL_SetIOSend
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_wolfSSL_CTX_set_ex_data
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #1
	bl	_wolfSSL_CTX_set_quiet_shutdown
Lloh13:
	adrp	x8, _SSL_SESS_CACHE_SERVER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_SESS_CACHE_SERVER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wolfSSL_CTX_set_session_cache_mode
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_wolfSSL_CTX_set_timeout
Lloh16:
	adrp	x8, _remove_session_cb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _remove_session_cb@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wolfSSL_CTX_sess_set_remove_cb
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x8, _SSL_SESS_CACHE_CLIENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_SESS_CACHE_CLIENT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wolfSSL_CTX_set_session_cache_mode
LBB0_12:
	ldr	x8, [x19]
Lloh22:
	adrp	x9, l_.str@PAGE
Lloh23:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x19, x9, x8, eq
	mov	x0, x20
	mov	x1, x19
	bl	_wolfSSL_CTX_set_cipher_list
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.13:
Lloh24:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	x0, x20
	bl	_tls_deinit
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_ref_count,8,3              ; @tls_ref_count
	.comm	_tls_global,8,3                 ; @tls_global
	.comm	_wolfssl_receive_cb,4,2         ; @wolfssl_receive_cb
	.comm	_wolfssl_send_cb,4,2            ; @wolfssl_send_cb
	.comm	_SSL_SESS_CACHE_SERVER,4,2      ; @SSL_SESS_CACHE_SERVER
	.comm	_remove_session_cb,4,2          ; @remove_session_cb
	.comm	_SSL_SESS_CACHE_CLIENT,4,2      ; @SSL_SESS_CACHE_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALL"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"wolfSSL: Failed to set cipher string '%s'"

.subsections_via_symbols
