	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_ssl_init        ## -- Begin function eap_server_tls_ssl_init
	.p2align	4, 0x90
_eap_server_tls_ssl_init:               ## @eap_server_tls_ssl_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	(%rbx), %r15d
	movq	%rbx, 24(%rsi)
	movq	32(%rbx), %rax
	movq	%rax, 8(%rsi)
	callq	_tls_connection_init
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	%r13d, -116(%rbp)               ## 4-byte Spill
	movq	_EAP_TYPE_FAST@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_TLS_CONN_DISABLE_SESSION_TICKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	orl	%r15d, %r13d
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_os_memcpy
	movslq	%r12d, %rax
	movq	%rax, -56(%rbp)
	movq	16(%rbx), %rdi
	movq	16(%r14), %rsi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r15, %r8
	movl	$64, %r9d
	callq	_tls_connection_set_verify
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	16(%rbx), %rdi
	movq	16(%r14), %rsi
	callq	_tls_connection_deinit
	movq	$0, 16(%r14)
	jmp	LBB0_9
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	callq	_wpa_printf
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	movl	$1398, %ecx                     ## imm = 0x576
	cmovgl	%eax, %ecx
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.13:
	cmpl	$101, %ecx
	jl	LBB0_10
## %bb.14:
	addl	$-100, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_10
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS context not initialized - cannot use TLS-based EAP method"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"SSL: Failed to initialize new TLS connection"

	.comm	_EAP_TYPE_FAST,4,2              ## @EAP_TYPE_FAST
	.comm	_TLS_CONN_DISABLE_SESSION_TICKET,4,2 ## @TLS_CONN_DISABLE_SESSION_TICKET
L_.str.2:                               ## @.str.2
	.asciz	"hostapd"

L_.str.3:                               ## @.str.3
	.asciz	"SSL: Failed to configure verification of TLS peer certificate"

	.comm	_eap_server_tls_log_cb,4,2      ## @eap_server_tls_log_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_ssl_init        ; -- Begin function eap_server_tls_ssl_init
	.p2align	2
_eap_server_tls_ssl_init:               ; @eap_server_tls_ssl_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	ldr	w23, [x20]
	str	x20, [x1, #24]
	ldr	x8, [x20, #32]
	str	x8, [x1, #8]
	bl	_tls_connection_init
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EAP_TYPE_FAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_FAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TLS_CONN_DISABLE_SESSION_TICKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TLS_CONN_DISABLE_SESSION_TICKET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w22
	csel	w8, wzr, w9, eq
	orr	w23, w8, w23
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #7
	bl	_os_memcpy
	sxtw	x8, w22
	str	x8, [sp, #64]
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #16]
	add	x4, sp, #8
	mov	x2, x21
	mov	x3, x23
	mov	w5, #64
	bl	_tls_connection_set_verify
	cbz	x0, LBB0_10
; %bb.3:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #16]
	bl	_tls_connection_deinit
	str	xzr, [x19, #16]
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	mov	w9, #1398
	csel	w8, w8, w9, gt
	str	w8, [x19]
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_8
; %bb.11:
	cmp	w8, #101
	b.lt	LBB0_8
; %bb.12:
	mov	w0, #0
	sub	w8, w8, #100
	str	w8, [x19]
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS context not initialized - cannot use TLS-based EAP method"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"SSL: Failed to initialize new TLS connection"

	.comm	_EAP_TYPE_FAST,4,2              ; @EAP_TYPE_FAST
	.comm	_TLS_CONN_DISABLE_SESSION_TICKET,4,2 ; @TLS_CONN_DISABLE_SESSION_TICKET
l_.str.2:                               ; @.str.2
	.asciz	"hostapd"

l_.str.3:                               ; @.str.3
	.asciz	"SSL: Failed to configure verification of TLS peer certificate"

	.comm	_eap_server_tls_log_cb,4,2      ; @eap_server_tls_log_cb
.subsections_via_symbols
