	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_process
_eap_ttls_process:                      ## @eap_ttls_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rcx
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	8(%rsi), %rbx
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-88(%rbp), %r9
	movq	%rbx, %rsi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	callq	_eap_peer_tls_process_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_eap_get_id
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %edx
	movq	_EAP_TLS_FLAGS_START@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TLS_VERSION_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	$0, -88(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movq	-88(%rbp), %rdx
LBB0_5:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_wpabuf_set
	movq	$0, -64(%rbp)
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpl	$0, 4(%r13)
	je	LBB0_7
LBB0_8:
	leaq	-48(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_eap_ttls_process_handshake
	jmp	LBB0_9
LBB0_7:
	leaq	-48(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_eap_ttls_decrypt
LBB0_9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_eap_ttls_check_auth_status
	movq	-64(%rbp), %rax
	cmpl	$1, %ebx
	jne	LBB0_11
## %bb.10:
	movq	%rax, %rdi
	callq	_wpabuf_clear_free
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	%r12d, %edi
	callq	_eap_peer_tls_build_ack
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TTLS,4,2              ## @EAP_TYPE_TTLS
	.comm	_EAP_TLS_FLAGS_START,4,2        ## @EAP_TLS_FLAGS_START
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: Start (server ver=%d, own ver=%d)"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ## @EAP_TLS_VERSION_MASK
	.no_dead_strip	_eap_ttls_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_process
_eap_ttls_process:                      ; @eap_ttls_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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x23, x1, #8
Lloh0:
	adrp	x25, _EAP_TYPE_TTLS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EAP_TYPE_TTLS@GOTPAGEOFF]
	ldr	w2, [x25]
	add	x5, sp, #24
	add	x6, sp, #20
	mov	x1, x23
	mov	x3, x20
	mov	x4, x22
	bl	_eap_peer_tls_process_init
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
	mov	x0, x22
	bl	_eap_get_id
	mov	x22, x0
	ldr	w8, [sp, #20]
Lloh2:
	adrp	x9, _EAP_TLS_FLAGS_START@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EAP_TLS_FLAGS_START@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
Lloh8:
	adrp	x9, _EAP_TLS_VERSION_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_TLS_VERSION_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w2, w9, w8
	ldr	w3, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x2, #0
	str	xzr, [sp, #24]
	b	LBB0_4
LBB0_3:
	ldr	x2, [sp, #24]
LBB0_4:
	mov	x0, sp
	mov	x1, x24
	bl	_wpabuf_set
	str	xzr, [sp, #8]
	ldr	w0, [x21]
	ldr	w1, [x23]
	bl	_tls_connection_established
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_6:
	mov	x4, sp
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_eap_ttls_process_handshake
	b	LBB0_8
LBB0_7:
	mov	x4, sp
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_eap_ttls_decrypt
LBB0_8:
	mov	x23, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_ttls_check_auth_status
	ldr	x0, [sp, #8]
	cmp	w23, #1
	b.ne	LBB0_10
; %bb.9:
	bl	_wpabuf_clear_free
	ldr	w1, [x25]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_eap_peer_tls_build_ack
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TTLS,4,2              ; @EAP_TYPE_TTLS
	.comm	_EAP_TLS_FLAGS_START,4,2        ; @EAP_TLS_FLAGS_START
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: Start (server ver=%d, own ver=%d)"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ; @EAP_TLS_VERSION_MASK
	.no_dead_strip	_eap_ttls_process
.subsections_via_symbols
