	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_phase1          ## -- Begin function eap_server_tls_phase1
	.p2align	4, 0x90
_eap_server_tls_phase1:                 ## @eap_server_tls_phase1
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%rbx), %rdi
	callq	_wpabuf_free
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_WPA_ASSERT
LBB0_2:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	movl	16(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_tls_connection_server_handshake
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_tls_connection_get_failed
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	leaq	-64(%rbp), %rdx
	movl	$20, %ecx
	callq	_tls_get_version
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_os_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%rbx)
LBB0_9:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r14)
	jne	LBB0_12
## %bb.10:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_tls_connection_peer_serial_num
	movq	%rax, 8(%r14)
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: pending tls_out data when processing new message"

L_.str.1:                               ## @.str.1
	.asciz	"SSL: TLS processing failed"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"SSL: Failed - tls_out available to report error"

L_.str.3:                               ## @.str.3
	.asciz	"SSL: Using TLS version %s"

L_.str.4:                               ## @.str.4
	.asciz	"TLSv1.3"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_phase1          ; -- Begin function eap_server_tls_phase1
	.p2align	2
_eap_server_tls_phase1:                 ; @eap_server_tls_phase1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x1, #8]
Lloh3:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #8]
	bl	_wpabuf_free
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WPA_ASSERT
LBB0_2:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	ldr	w2, [x20, #16]
	mov	x3, #0
	bl	_tls_connection_server_handshake
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_tls_connection_get_failed
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_7:
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	add	x21, sp, #20
	add	x2, sp, #20
	mov	w3, #20
	bl	_tls_get_version
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_7
LBB0_12:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #20
	bl	_os_strcmp
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x20]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
LBB0_13:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_tls_connection_established
	cbz	x0, LBB0_7
; %bb.14:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_tls_connection_peer_serial_num
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_7
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: pending tls_out data when processing new message"

l_.str.1:                               ; @.str.1
	.asciz	"SSL: TLS processing failed"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"SSL: Failed - tls_out available to report error"

l_.str.3:                               ; @.str.3
	.asciz	"SSL: Using TLS version %s"

l_.str.4:                               ; @.str.4
	.asciz	"TLSv1.3"

.subsections_via_symbols
