	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_process         ## -- Begin function eap_server_tls_process
	.p2align	4, 0x90
_eap_server_tls_process:                ## @eap_server_tls_process
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_EAP_UNAUTH_TLS_TYPE@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_EAP_VENDOR_UNAUTH_TLS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EAP_WFA_UNAUTH_TLS_TYPE@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	movq	_EAP_VENDOR_WFA_UNAUTH_TLS@GOTPCREL(%rip), %rax
	cmovel	(%rax), %r8d
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	cmoveq	_EAP_VENDOR_WFA_NEW@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movl	%r8d, %esi
	movq	%r14, %rdx
	callq	_eap_hdr_validate
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	addq	$4, %rdx
	movq	%rdx, -72(%rbp)
	movl	(%rax), %r12d
	decq	%rcx
	movq	%rcx, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r13, %r13
	je	LBB0_8
## %bb.6:
	movq	_EAP_TLS_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r12d, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*%r13
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_eap_server_tls_reassemble
	movl	$-1, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_15
## %bb.10:
	movq	16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	*%rax
LBB0_12:
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_tls_connection_get_write_alerts
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_eap_server_tls_free_in_buf
	jmp	LBB0_15
LBB0_7:
	movl	$-1, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_UNAUTH_TLS_TYPE,4,2        ## @EAP_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_UNAUTH_TLS,4,2      ## @EAP_VENDOR_UNAUTH_TLS
	.comm	_EAP_VENDOR_TYPE_UNAUTH_TLS,4,2 ## @EAP_VENDOR_TYPE_UNAUTH_TLS
	.comm	_EAP_WFA_UNAUTH_TLS_TYPE,4,2    ## @EAP_WFA_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_WFA_NEW,4,2         ## @EAP_VENDOR_WFA_NEW
	.comm	_EAP_VENDOR_WFA_UNAUTH_TLS,4,2  ## @EAP_VENDOR_WFA_UNAUTH_TLS
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: Received packet(len=%lu) - Flags 0x%02x"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ## @EAP_TLS_VERSION_MASK
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"SSL: Locally detected fatal error in TLS processing"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_server_tls_process         ; -- Begin function eap_server_tls_process
	.p2align	2
_eap_server_tls_process:                ; @eap_server_tls_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x24, x5
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EAP_UNAUTH_TLS_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_UNAUTH_TLS_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_VENDOR_TYPE_UNAUTH_TLS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _EAP_VENDOR_UNAUTH_TLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_VENDOR_UNAUTH_TLS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _EAP_WFA_UNAUTH_TLS_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_WFA_UNAUTH_TLS_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EAP_VENDOR_WFA_UNAUTH_TLS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EAP_VENDOR_WFA_UNAUTH_TLS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w4
	csel	w1, w9, w4, eq
Lloh14:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh16:
	adrp	x9, _EAP_VENDOR_WFA_NEW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EAP_VENDOR_WFA_NEW@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_3:
	ldr	w0, [x8]
	add	x3, sp, #16
	mov	x2, x22
	bl	_eap_hdr_validate
	ldr	x8, [sp, #16]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_5
LBB0_4:
	mov	w20, #0
	b	LBB0_17
LBB0_5:
	ldr	w25, [x0], #4
	sub	x8, x8, #1
	stp	x8, x0, [sp, #16]
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w26, [x8]
	mov	x0, x22
	bl	_wpabuf_len
	stp	x0, x25, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_wpa_printf
	cbz	x24, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _EAP_TLS_VERSION_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_TLS_VERSION_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w2, w8, w25
	mov	x0, x21
	mov	x1, x23
	blr	x24
	tbnz	w0, #31, LBB0_14
LBB0_7:
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x25
	bl	_eap_server_tls_reassemble
	tbnz	w0, #31, LBB0_13
; %bb.8:
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.9:
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	blr	x20
LBB0_11:
	ldr	w0, [x21]
	ldr	w1, [x19]
	bl	_tls_connection_get_write_alerts
	cmp	w0, #2
	b.lt	LBB0_15
; %bb.12:
Lloh26:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_13:
	mov	w20, #-1
	b	LBB0_16
LBB0_14:
	mov	w20, #-1
	b	LBB0_17
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x19
	bl	_eap_server_tls_free_in_buf
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_UNAUTH_TLS_TYPE,4,2        ; @EAP_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_UNAUTH_TLS,4,2      ; @EAP_VENDOR_UNAUTH_TLS
	.comm	_EAP_VENDOR_TYPE_UNAUTH_TLS,4,2 ; @EAP_VENDOR_TYPE_UNAUTH_TLS
	.comm	_EAP_WFA_UNAUTH_TLS_TYPE,4,2    ; @EAP_WFA_UNAUTH_TLS_TYPE
	.comm	_EAP_VENDOR_WFA_NEW,4,2         ; @EAP_VENDOR_WFA_NEW
	.comm	_EAP_VENDOR_WFA_UNAUTH_TLS,4,2  ; @EAP_VENDOR_WFA_UNAUTH_TLS
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: Received packet(len=%lu) - Flags 0x%02x"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ; @EAP_TLS_VERSION_MASK
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"SSL: Locally detected fatal error in TLS processing"

.subsections_via_symbols
