	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_process
_eap_peap_process:                      ## @eap_peap_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	$72, %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	48(%rsi), %r12
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-88(%rbp), %r9
	movq	%r12, %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	callq	_eap_peer_tls_process_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_head
	movq	%rax, %rcx
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %edx
	movq	_EAP_TLS_FLAGS_START@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TLS_VERSION_MASK@GOTPCREL(%rip), %r14
	andl	(%r14), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %eax
	andl	-72(%rbp), %eax
	movl	(%r13), %edx
	cmpl	%edx, %eax
	jge	LBB0_6
## %bb.5:
	movl	%eax, (%r13)
	movl	%eax, %edx
LBB0_6:
	movl	4(%r13), %eax
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	cmpl	%edx, %eax
	je	LBB0_9
## %bb.8:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	jmp	LBB0_41
LBB0_1:
	xorl	%ebx, %ebx
LBB0_41:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-88(%rbp), %r14
	jmp	LBB0_10
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$0, -88(%rbp)
LBB0_10:
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_wpabuf_set
	movq	$0, -56(%rbp)
	movl	8(%r15), %edi
	movl	(%r12), %esi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	$0, 24(%r13)
	je	LBB0_36
LBB0_12:
	cmpq	$0, 16(%r15)
	je	LBB0_19
## %bb.13:
	cmpq	$0, 72(%r13)
	je	LBB0_19
## %bb.14:
	movq	%r15, %rdi
	callq	_eap_get_config
	movq	(%rax), %rax
	movq	_EXT_CERT_CHECK_GOOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	72(%r13), %rbx
	movq	$0, 72(%r13)
	movq	$0, 16(%r15)
	jmp	LBB0_41
LBB0_19:
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_eap_peer_tls_process_helper
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	cmpq	$0, 16(%r15)
	je	LBB0_23
## %bb.22:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	72(%r13), %rdi
	callq	_wpabuf_clear_free
	movq	-56(%rbp), %rax
	movq	%rax, 72(%r13)
	jmp	LBB0_41
LBB0_20:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	-56(%rbp), %rbx
	jmp	LBB0_41
LBB0_16:
	movq	_EXT_CERT_CHECK_BAD@GOTPCREL(%rip), %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movq	$0, 16(%r15)
	jmp	LBB0_41
LBB0_23:
	movl	%eax, %r14d
	movl	8(%r15), %edi
	movl	(%r12), %esi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_34
## %bb.24:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_eap_peap_free_key
	cmpq	$0, 64(%r13)
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.9(%rip), %rbx
	cmoveq	%rax, %rbx
	movl	(%r14), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %rcx
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	addq	(%rcx), %r9
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_peer_tls_derive_key
	movq	%rax, 56(%r13)
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_EAP_TLS_KEY_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_key
	movl	(%r14), %edi
	movq	(%rbx), %rdx
	addq	56(%r13), %rdx
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.13(%rip), %rsi
	callq	_wpa_hexdump_key
	jmp	LBB0_27
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_41
LBB0_26:
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_27:
	movq	40(%r13), %rdi
	callq	_os_free
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%r13), %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_eap_peer_tls_derive_session_id
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_29
## %bb.28:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.15(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_29:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
LBB0_30:
	cmpq	$0, (%r15)
	je	LBB0_33
## %bb.31:
	cmpq	$0, 24(%r13)
	je	LBB0_33
## %bb.32:
	movl	(%r12), %edi
	leaq	L_.str.17(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_DECISION_COND_SUCC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$1, 8(%r13)
LBB0_33:
	movq	$0, 24(%r13)
LBB0_34:
	cmpl	$2, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_37
## %bb.35:
	movq	16(%r13), %rdi
	callq	_wpabuf_clear_free
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r13)
	movq	$0, -56(%rbp)
LBB0_36:
	leaq	-64(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_eap_peap_decrypt
	movl	%eax, %r14d
LBB0_37:
	movq	(%rbx), %rax
	movq	_METHOD_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.38:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_39:
	movq	-56(%rbp), %rbx
	cmpl	$1, %r14d
	jne	LBB0_41
## %bb.40:
	movq	%rbx, %rdi
	callq	_wpabuf_clear_free
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_eap_peer_tls_build_ack
	movq	%rax, %rbx
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_PEAP,4,2              ## @EAP_TYPE_PEAP
	.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-PEAP: Start (server ver=%d, own ver=%d)"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ## @EAP_TLS_VERSION_MASK
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: Failed to select forced PEAP version %d"

	.comm	_METHOD_DONE,8,3                ## @METHOD_DONE
	.comm	_DECISION_FAIL,8,3              ## @DECISION_FAIL
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: Using PEAP version %d"

	.comm	_EXT_CERT_CHECK_GOOD,8,3        ## @EXT_CERT_CHECK_GOOD
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: External certificate check succeeded - continue handshake"

	.comm	_EXT_CERT_CHECK_BAD,8,3         ## @EXT_CERT_CHECK_BAD
L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: External certificate check failed - force authentication failure"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-PEAP: Continuing to wait external server certificate validation"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-PEAP: TLS processing failed"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-PEAP: Waiting external server certificate validation"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-PEAP: TLS done, proceed to Phase 2"

L_.str.9:                               ## @.str.9
	.asciz	"client PEAP encryption"

L_.str.10:                              ## @.str.10
	.asciz	"client EAP encryption"

L_.str.11:                              ## @.str.11
	.asciz	"EAP-PEAP: using label '%s' in key derivation"

	.comm	_EAP_TLS_KEY_LEN,8,3            ## @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
L_.str.12:                              ## @.str.12
	.asciz	"EAP-PEAP: Derived key"

L_.str.13:                              ## @.str.13
	.asciz	"EAP-PEAP: Derived EMSK"

L_.str.14:                              ## @.str.14
	.asciz	"EAP-PEAP: Failed to derive key"

L_.str.15:                              ## @.str.15
	.asciz	"EAP-PEAP: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.16:                              ## @.str.16
	.asciz	"EAP-PEAP: Failed to derive Session-Id"

L_.str.17:                              ## @.str.17
	.asciz	"EAP-PEAP: Workaround - allow outer EAP-Success to terminate PEAP resumption"

	.comm	_DECISION_COND_SUCC,8,3         ## @DECISION_COND_SUCC
	.no_dead_strip	_eap_peap_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peap_process
_eap_peap_process:                      ; @eap_peap_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x24, x1, #48
Lloh0:
	adrp	x27, _EAP_TYPE_PEAP@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EAP_TYPE_PEAP@GOTPAGEOFF]
	ldr	w2, [x27]
	add	x5, sp, #40
	add	x6, sp, #36
	mov	x1, x24
	mov	x3, x19
	mov	x4, x22
	bl	_eap_peer_tls_process_init
	cbz	x0, LBB0_40
; %bb.1:
	mov	x25, x0
	mov	x0, x22
	bl	_wpabuf_head
	mov	x23, x0
	ldr	w22, [x0]
	ldr	w8, [sp, #36]
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_7
; %bb.2:
Lloh5:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh7:
	adrp	x28, _EAP_TLS_VERSION_MASK@GOTPAGE
Lloh8:
	ldr	x28, [x28, _EAP_TLS_VERSION_MASK@GOTPAGEOFF]
	ldr	w9, [x28]
	and	w8, w9, w8
	ldr	w9, [x20]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [sp, #36]
	ldr	w9, [x28]
	and	w9, w9, w8
	ldr	w8, [x20]
	cmp	w9, w8
	b.ge	LBB0_4
; %bb.3:
	str	w9, [x20]
	mov	x8, x9
LBB0_4:
	ldr	w9, [x20, #4]
	tbnz	w9, #31, LBB0_8
; %bb.5:
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x9, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
Lloh16:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh19:
	adrp	x8, _DECISION_FAIL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DECISION_FAIL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _FALSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #8]
	b	LBB0_40
LBB0_7:
	ldr	x2, [sp, #40]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x26]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x2, #0
	str	xzr, [sp, #40]
LBB0_9:
	add	x0, sp, #16
	mov	x1, x25
	bl	_wpabuf_set
	str	xzr, [sp, #24]
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	bl	_tls_connection_established
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_35
LBB0_11:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_eap_get_config
	ldr	x8, [x0]
Lloh27:
	adrp	x9, _EXT_CERT_CHECK_GOOD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EXT_CERT_CHECK_GOOD@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.14:
Lloh30:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #72]
	str	xzr, [x20, #72]
	str	xzr, [x21, #16]
	b	LBB0_40
LBB0_15:
	ldr	w2, [x27]
	ldr	w3, [x20]
	add	x5, sp, #16
	add	x6, sp, #24
	mov	x0, x21
	mov	x1, x24
	mov	x4, x22
	bl	_eap_peer_tls_process_helper
	tbnz	w0, #31, LBB0_18
; %bb.16:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_21
; %bb.17:
Lloh35:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x20, #72]
	bl	_wpabuf_clear_free
	mov	x0, #0
	ldr	x8, [sp, #24]
	str	x8, [x20, #72]
	b	LBB0_40
LBB0_18:
Lloh40:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh45:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh48:
	adrp	x8, _DECISION_FAIL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DECISION_FAIL@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	x0, [sp, #24]
	b	LBB0_40
LBB0_19:
Lloh51:
	adrp	x9, _EXT_CERT_CHECK_BAD@GOTPAGE
Lloh52:
	ldr	x9, [x9, _EXT_CERT_CHECK_BAD@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
Lloh54:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh55:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x10]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.20:
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
Lloh59:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh62:
	adrp	x8, _DECISION_FAIL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _DECISION_FAIL@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	str	xzr, [x21, #16]
	b	LBB0_40
LBB0_21:
	mov	x25, x0
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	bl	_tls_connection_established
	cbz	x0, LBB0_33
; %bb.22:
Lloh65:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh66:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh67:
	adrp	x1, l_.str.8@PAGE
Lloh68:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	bl	_eap_peap_free_key
Lloh69:
	adrp	x8, l_.str.9@PAGE
Lloh70:
	add	x8, x8, l_.str.9@PAGEOFF
	ldr	x9, [x20, #64]
Lloh71:
	adrp	x10, l_.str.10@PAGE
Lloh72:
	add	x10, x10, l_.str.10@PAGEOFF
	cmp	x9, #0
	csel	x26, x10, x8, eq
	ldr	w0, [x28]
	str	x26, [sp]
Lloh73:
	adrp	x1, l_.str.11@PAGE
Lloh74:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
Lloh75:
	adrp	x8, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh76:
	ldr	x8, [x8, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
Lloh78:
	adrp	x9, _EAP_EMSK_LEN@GOTPAGE
Lloh79:
	ldr	x9, [x9, _EAP_EMSK_LEN@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	add	x5, x9, x8
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	mov	x3, #0
	mov	w4, #0
	bl	_eap_peer_tls_derive_key
	mov	x2, x0
	str	x0, [x20, #56]
	ldr	w0, [x28]
	cbz	x2, LBB0_25
; %bb.23:
Lloh81:
	adrp	x26, _EAP_TLS_KEY_LEN@GOTPAGE
Lloh82:
	ldr	x26, [x26, _EAP_TLS_KEY_LEN@GOTPAGEOFF]
	ldr	x3, [x26]
Lloh83:
	adrp	x1, l_.str.12@PAGE
Lloh84:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w0, [x28]
	ldr	x8, [x20, #56]
	ldr	x9, [x26]
	add	x2, x9, x8
Lloh85:
	adrp	x8, _EAP_EMSK_LEN@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EAP_EMSK_LEN@GOTPAGEOFF]
Lloh87:
	ldr	x3, [x8]
Lloh88:
	adrp	x1, l_.str.13@PAGE
Lloh89:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_wpa_hexdump_key
	b	LBB0_26
LBB0_24:
Lloh90:
	adrp	x1, l_.str.5@PAGE
Lloh91:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_40
LBB0_25:
Lloh92:
	adrp	x1, l_.str.14@PAGE
Lloh93:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_wpa_printf
LBB0_26:
	ldr	x0, [x20, #40]
	bl	_os_free
	ldr	w2, [x27]
	add	x26, x20, #32
	mov	x0, x21
	mov	x1, x24
	mov	x3, x26
	bl	_eap_peer_tls_derive_session_id
	str	x0, [x20, #40]
	cbz	x0, LBB0_28
; %bb.27:
	mov	x2, x0
Lloh94:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh95:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w3, [x26]
Lloh96:
	adrp	x1, l_.str.15@PAGE
Lloh97:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_29
LBB0_28:
Lloh98:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
Lloh101:
	adrp	x1, l_.str.16@PAGE
Lloh102:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_printf
Lloh103:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh104:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
LBB0_29:
	ldr	x8, [x21]
	cbz	x8, LBB0_32
; %bb.30:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_32
; %bb.31:
	ldr	w0, [x24]
Lloh105:
	adrp	x1, l_.str.17@PAGE
Lloh106:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_wpa_printf
Lloh107:
	adrp	x8, _DECISION_COND_SUCC@GOTPAGE
Lloh108:
	ldr	x8, [x8, _DECISION_COND_SUCC@GOTPAGEOFF]
Lloh109:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_32:
	str	xzr, [x20, #24]
LBB0_33:
	cmp	w25, #2
	b.ne	LBB0_36
; %bb.34:
	ldr	x0, [x20, #16]
	bl	_wpabuf_clear_free
	ldr	x8, [sp, #24]
	str	x8, [x20, #16]
	str	xzr, [sp, #24]
LBB0_35:
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_eap_peap_decrypt
	mov	x25, x0
LBB0_36:
	ldr	x8, [x19]
Lloh110:
	adrp	x9, _METHOD_DONE@GOTPAGE
Lloh111:
	ldr	x9, [x9, _METHOD_DONE@GOTPAGEOFF]
Lloh112:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.37:
Lloh113:
	adrp	x8, _FALSE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh115:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_38:
	ldr	x0, [sp, #24]
	cmp	w25, #1
	b.ne	LBB0_40
; %bb.39:
	bl	_wpabuf_clear_free
	ldr	w1, [x27]
	ldr	w2, [x20]
	mov	x0, x22
	bl	_eap_peer_tls_build_ack
LBB0_40:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_PEAP,4,2              ; @EAP_TYPE_PEAP
	.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-PEAP: Start (server ver=%d, own ver=%d)"

	.comm	_EAP_TLS_VERSION_MASK,4,2       ; @EAP_TLS_VERSION_MASK
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: Failed to select forced PEAP version %d"

	.comm	_METHOD_DONE,8,3                ; @METHOD_DONE
	.comm	_DECISION_FAIL,8,3              ; @DECISION_FAIL
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: Using PEAP version %d"

	.comm	_EXT_CERT_CHECK_GOOD,8,3        ; @EXT_CERT_CHECK_GOOD
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: External certificate check succeeded - continue handshake"

	.comm	_EXT_CERT_CHECK_BAD,8,3         ; @EXT_CERT_CHECK_BAD
l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: External certificate check failed - force authentication failure"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-PEAP: Continuing to wait external server certificate validation"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-PEAP: TLS processing failed"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-PEAP: Waiting external server certificate validation"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-PEAP: TLS done, proceed to Phase 2"

l_.str.9:                               ; @.str.9
	.asciz	"client PEAP encryption"

l_.str.10:                              ; @.str.10
	.asciz	"client EAP encryption"

l_.str.11:                              ; @.str.11
	.asciz	"EAP-PEAP: using label '%s' in key derivation"

	.comm	_EAP_TLS_KEY_LEN,8,3            ; @EAP_TLS_KEY_LEN
	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
l_.str.12:                              ; @.str.12
	.asciz	"EAP-PEAP: Derived key"

l_.str.13:                              ; @.str.13
	.asciz	"EAP-PEAP: Derived EMSK"

l_.str.14:                              ; @.str.14
	.asciz	"EAP-PEAP: Failed to derive key"

l_.str.15:                              ; @.str.15
	.asciz	"EAP-PEAP: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.16:                              ; @.str.16
	.asciz	"EAP-PEAP: Failed to derive Session-Id"

l_.str.17:                              ; @.str.17
	.asciz	"EAP-PEAP: Workaround - allow outer EAP-Success to terminate PEAP resumption"

	.comm	_DECISION_COND_SUCC,8,3         ; @DECISION_COND_SUCC
	.no_dead_strip	_eap_peap_process
.subsections_via_symbols
