	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_process_decrypted
_eap_teap_process_decrypted:            ## @eap_teap_process_decrypted
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	leaq	-152(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r8, %rdi
	callq	_eap_teap_parse_decrypted
	testq	%rax, %rax
	js	LBB0_75
## %bb.1:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
LBB0_72:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_wpa_hexdump_buf
	movq	_EAP_TYPE_TEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rbx), %ecx
	addq	$8, %rbx
	movq	-48(%rbp), %r9
	movq	%r15, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	callq	_eap_peer_tls_encrypt
	testq	%rax, %rax
	je	LBB0_74
## %bb.73:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_wpa_printf
LBB0_74:
	movq	-48(%rbp), %rdi
	callq	_wpabuf_free
LBB0_75:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-152(%rbp), %rcx
	movq	_TEAP_STATUS_FAILURE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	jne	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_eap_teap_tlv_result
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	testq	%rdx, %rdx
	jne	LBB0_72
	jmp	LBB0_75
LBB0_4:
	movq	-144(%rbp), %rdx
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	cmpq	$0, -136(%rbp)
	jne	LBB0_10
	jmp	LBB0_22
LBB0_6:
	cmpl	$0, (%rbx)
	je	LBB0_20
LBB0_7:
	cmpq	%rax, %rdx
	je	LBB0_10
## %bb.8:
	cmpq	$0, 72(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	_TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPCREL(%rip), %r14
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_23
LBB0_10:
	movq	-88(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.11:
	movl	-96(%rbp), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_eap_teap_process_basic_auth_req
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
LBB0_12:
	movq	-136(%rbp), %rcx
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.13:
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, -144(%rbp)
	je	LBB0_24
## %bb.14:
	cmpq	%rax, -152(%rbp)
	je	LBB0_24
## %bb.15:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	_TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPCREL(%rip), %r14
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_23
LBB0_16:
	movq	-104(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_31
## %bb.17:
	movl	-112(%rbp), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_eap_teap_process_eap_payload_tlv
	movq	%rax, %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	sete	%al
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
	movq	-144(%rbp), %rcx
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r14), %rax
	cmpq	%rdi, %rcx
	je	LBB0_19
## %bb.18:
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_19:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	cmoveq	%rax, %rdi
	movl	$1, %esi
	callq	_eap_teap_tlv_result
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
	movq	-144(%rbp), %rax
	cmpq	(%r14), %rax
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
LBB0_20:
	cmpq	%rsi, %rcx
	jne	LBB0_7
## %bb.21:
	cmpq	$0, -136(%rbp)
	jne	LBB0_7
LBB0_22:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	_TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %rsi
LBB0_23:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
	movl	(%r14), %r12d
	movq	%r15, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_24:
	movl	-116(%rbp), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_eap_teap_process_crypto_binding
	testq	%rax, %rax
	je	LBB0_32
## %bb.25:
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_28
## %bb.26:
	cmpq	%rax, -152(%rbp)
	jne	LBB0_28
## %bb.27:
	movl	$1, (%rbx)
LBB0_28:
	testl	%ecx, %ecx
	jne	LBB0_33
## %bb.29:
	cmpq	%rax, -144(%rbp)
	jne	LBB0_33
## %bb.30:
	movq	$0, 72(%rbx)
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_33
LBB0_31:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_32:
	movq	_TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_33:
	cmpl	$0, (%rbx)
	je	LBB0_37
## %bb.34:
	cmpq	$0, 64(%rbx)
	je	LBB0_37
## %bb.35:
	movq	%rbx, %rdi
	callq	_eap_teap_derive_msk
	testq	%rax, %rax
	jne	LBB0_37
## %bb.36:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_DECISION_COND_SUCC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_37:
	movq	-128(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.38:
	movq	-152(%rbp), %rax
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_41
## %bb.39:
	movl	-120(%rbp), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_eap_teap_process_pac
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
LBB0_40:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	$0, 56(%rbx)
	jne	LBB0_43
	jmp	LBB0_48
LBB0_41:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	cmpl	$0, 56(%rbx)
	jne	LBB0_43
LBB0_48:
	testl	%eax, %eax
	jne	LBB0_43
## %bb.49:
	cmpq	$0, 16(%rbx)
	je	LBB0_43
## %bb.50:
	cmpq	$0, -128(%rbp)
	jne	LBB0_43
## %bb.51:
	cmpq	$0, -136(%rbp)
	je	LBB0_43
## %bb.52:
	cmpl	$0, 52(%rbx)
	je	LBB0_58
## %bb.53:
	cmpq	$0, 32(%rbx)
	je	LBB0_61
## %bb.54:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_61
## %bb.55:
	cmpq	$0, (%rax)
	jne	LBB0_61
## %bb.56:
	movl	48(%rbx), %edi
	callq	_eap_teap_allowed_anon_prov_cipher_suite
	testq	%rax, %rax
	je	LBB0_61
## %bb.57:
	movq	40(%rbx), %rax
	movl	8(%rax), %edi
	callq	_eap_teap_allowed_anon_prov_phase2_method
	testq	%rax, %rax
	je	LBB0_61
LBB0_58:
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, -144(%rbp)
	je	LBB0_60
## %bb.59:
	cmpq	%rax, -152(%rbp)
	jne	LBB0_61
LBB0_60:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	callq	_eap_teap_pac_request
	movq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
	jmp	LBB0_61
LBB0_43:
	testl	%eax, %eax
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_61
LBB0_44:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_eap_teap_tlv_result
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_concat
	movq	%rax, -48(%rbp)
	testl	%r12d, %r12d
	je	LBB0_46
## %bb.45:
	movl	%r12d, %edi
	callq	_eap_teap_tlv_error
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_concat
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
	jmp	LBB0_47
LBB0_46:
	movq	%rax, %rdx
LBB0_47:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movb	$1, %r14b
	testq	%rdx, %rdx
	jne	LBB0_65
	jmp	LBB0_71
LBB0_61:
	movq	-152(%rbp), %rdi
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_63
## %bb.62:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_eap_teap_tlv_result
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_concat
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
	jmp	LBB0_64
LBB0_63:
	movq	-48(%rbp), %rdx
	xorl	%r14d, %r14d
LBB0_64:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_71
LBB0_65:
	movq	-152(%rbp), %rax
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%al
	orb	%al, %r14b
	cmpb	$1, %r14b
	je	LBB0_72
## %bb.66:
	cmpq	$0, -136(%rbp)
	je	LBB0_72
## %bb.67:
	cmpq	$0, 32(%rbx)
	je	LBB0_72
## %bb.68:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	cmpq	$0, 16(%rbx)
	jne	LBB0_70
## %bb.69:
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_70:
	movq	%rax, 24(%rbx)
	movq	_DECISION_UNCOND_SUCC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	jne	LBB0_72
LBB0_71:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_wpa_printf
	movl	$1, %edi
	callq	_wpabuf_alloc
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	jne	LBB0_72
	jmp	LBB0_75
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAP_STATUS_FAILURE,8,3        ## @TEAP_STATUS_FAILURE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Server rejected authentication"

	.comm	_METHOD_DONE,8,3                ## @METHOD_DONE
	.comm	_DECISION_FAIL,8,3              ## @DECISION_FAIL
	.comm	_TEAP_STATUS_SUCCESS,8,3        ## @TEAP_STATUS_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Result TLV or Intermediate-Result TLV indicating success, but no Crypto-Binding TLV"

	.comm	_TEAP_ERROR_TUNNEL_COMPROMISE_ERROR,4,2 ## @TEAP_ERROR_TUNNEL_COMPROMISE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Inner EAP method exchange completed, but no Intermediate-Result TLV included"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: Unexpected Crypto-Binding TLV without Result TLV or Intermediate-Result TLV indicating success"

	.comm	_TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED,4,2 ## @TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED
L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: PAC used - server may decide to skip inner authentication"

	.comm	_METHOD_MAY_CONT,8,3            ## @METHOD_MAY_CONT
	.comm	_DECISION_COND_SUCC,8,3         ## @DECISION_COND_SUCC
L_.str.5:                               ## @.str.5
	.asciz	"EAP-TEAP: PAC TLV without Result TLV acknowledging success"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TEAP: Request Tunnel PAC"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-TEAP: Authentication completed successfully"

	.comm	_DECISION_UNCOND_SUCC,8,3       ## @DECISION_UNCOND_SUCC
L_.str.8:                               ## @.str.8
	.asciz	"EAP-TEAP: No recognized TLVs - send empty response packet"

L_.str.9:                               ## @.str.9
	.asciz	"EAP-TEAP: Encrypting Phase 2 data"

	.comm	_EAP_TYPE_TEAP,4,2              ## @EAP_TYPE_TEAP
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.10:                              ## @.str.10
	.asciz	"EAP-TEAP: Failed to encrypt a Phase 2 frame"

	.no_dead_strip	_eap_teap_process_decrypted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_process_decrypted
_eap_teap_process_decrypted:            ; @eap_teap_process_decrypted
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x5
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	str	xzr, [sp, #72]
	mov	x1, sp
	add	x2, sp, #72
	mov	x0, x4
	bl	_eap_teap_parse_decrypted
	tbnz	x0, #63, LBB0_56
; %bb.1:
	ldr	x2, [sp, #72]
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	cbnz	x2, LBB0_53
; %bb.2:
	ldr	x9, [sp]
Lloh2:
	adrp	x27, _TEAP_STATUS_FAILURE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _TEAP_STATUS_FAILURE@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x27]
	mov	w1, #0
	bl	_eap_teap_tlv_result
	mov	x2, x0
	str	x0, [sp, #72]
Lloh6:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x8, [x23]
	cbnz	x2, LBB0_53
	b	LBB0_56
LBB0_4:
	ldr	x10, [sp, #8]
Lloh12:
	adrp	x26, _TEAP_STATUS_SUCCESS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TEAP_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x11, [x26]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_11
	b	LBB0_17
LBB0_6:
	ldr	w12, [x22]
	cbnz	w12, LBB0_8
; %bb.7:
	ldr	x12, [sp, #16]
	cmp	x9, x11
	ccmp	x12, #0, #0, eq
	b.eq	LBB0_17
LBB0_8:
	cmp	x10, x8
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_11
; %bb.10:
Lloh14:
	adrp	x24, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGEOFF]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_11:
	ldr	x2, [sp, #64]
	cbz	x2, LBB0_19
; %bb.12:
	ldr	w3, [sp, #56]
	mov	x0, x21
	mov	x1, x22
	bl	_eap_teap_process_basic_auth_req
	mov	x1, x0
	cmp	x0, #0
	cset	w28, eq
	ldr	x0, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
LBB0_13:
	ldr	x3, [sp, #16]
	cbz	x3, LBB0_23
; %bb.14:
	ldr	x9, [sp, #8]
	ldr	x8, [x26]
	cmp	x9, x8
	b.eq	LBB0_24
; %bb.15:
	ldr	x9, [sp]
	cmp	x9, x8
	b.eq	LBB0_24
; %bb.16:
Lloh18:
	adrp	x24, _TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPAGE
Lloh19:
	ldr	x24, [x24, _TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPAGEOFF]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh22:
	adrp	x24, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGE
Lloh23:
	ldr	x24, [x24, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGEOFF]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:
	ldr	w0, [x25]
	bl	_wpa_printf
	ldr	w24, [x24]
	b	LBB0_43
LBB0_19:
	ldr	x3, [sp, #48]
	cbz	x3, LBB0_31
; %bb.20:
	ldr	w4, [sp, #40]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_eap_teap_process_eap_payload_tlv
	mov	x24, x0
	cmp	x0, #0
	cset	w28, eq
	ldr	x0, [sp, #72]
	mov	x1, x24
	bl	_wpabuf_concat
	str	x0, [sp, #72]
	ldr	x10, [sp, #8]
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x10, x8
	b.eq	LBB0_22
; %bb.21:
	cmp	x10, x9
	b.ne	LBB0_13
LBB0_22:
	cmp	x24, #0
	csel	x0, x9, x8, eq
	mov	w1, #1
	bl	_eap_teap_tlv_result
	mov	x1, x0
	ldr	x0, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
	ldr	x8, [sp, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	csinc	w28, w28, wzr, ne
	b	LBB0_13
LBB0_23:
	mov	w24, #0
	b	LBB0_33
LBB0_24:
	ldr	w4, [sp, #36]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_eap_teap_process_crypto_binding
	cbz	x0, LBB0_32
; %bb.25:
	mov	x1, x0
	ldr	x0, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
	ldr	x8, [x26]
	cbnz	w28, LBB0_28
; %bb.26:
	ldr	x9, [sp]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	w9, #1
	str	w9, [x22]
LBB0_28:
	mov	w24, #0
	cbnz	w28, LBB0_33
; %bb.29:
	ldr	x9, [sp, #8]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.30:
	mov	w28, #0
	mov	w24, #0
	str	xzr, [x22, #72]
	b	LBB0_33
LBB0_31:
	mov	w28, #0
	b	LBB0_13
LBB0_32:
Lloh26:
	adrp	x8, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TEAP_ERROR_TUNNEL_COMPROMISE_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	w28, #1
LBB0_33:
	ldr	w8, [x22]
	cbz	w8, LBB0_37
; %bb.34:
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_37
; %bb.35:
	mov	x0, x22
	bl	_eap_teap_derive_msk
	cbnz	x0, LBB0_37
; %bb.36:
	ldr	w0, [x25]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh31:
	adrp	x8, _METHOD_MAY_CONT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _METHOD_MAY_CONT@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _DECISION_COND_SUCC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DECISION_COND_SUCC@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	stp	x9, x8, [x23]
LBB0_37:
	ldr	x3, [sp, #24]
	cbz	x3, LBB0_41
; %bb.38:
	ldr	x8, [sp]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.39:
	ldr	w4, [sp, #32]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_eap_teap_process_pac
	mov	x1, x0
	ldr	x0, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
	b	LBB0_41
LBB0_40:
	ldr	w0, [x25]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh39:
	adrp	x8, _TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED@GOTPAGEOFF]
Lloh41:
	ldr	w24, [x8]
	mov	w28, #1
LBB0_41:
	ldr	w8, [x22, #56]
	cbz	w8, LBB0_57
LBB0_42:
	cbz	w28, LBB0_70
LBB0_43:
	ldr	x0, [x27]
	mov	w1, #0
	bl	_eap_teap_tlv_result
	ldr	x1, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
	cbz	w24, LBB0_45
; %bb.44:
	mov	x0, x24
	bl	_eap_teap_tlv_error
	ldr	x1, [sp, #72]
	bl	_wpabuf_concat
	mov	x2, x0
	str	x0, [sp, #72]
	b	LBB0_46
LBB0_45:
	mov	x2, x0
LBB0_46:
Lloh42:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
Lloh45:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	stp	x9, x8, [x23]
	mov	w8, #1
LBB0_47:
	cbz	x2, LBB0_52
; %bb.48:
	ldr	x9, [sp]
	ldr	x10, [x26]
	cmp	x9, x10
	cset	w9, ne
	orr	w8, w8, w9
	cmp	w8, #1
	b.eq	LBB0_53
; %bb.49:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_53
; %bb.50:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_53
; %bb.51:
	ldr	w0, [x25]
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
Lloh50:
	adrp	x8, _METHOD_MAY_CONT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _METHOD_MAY_CONT@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x23, #8]
	ldr	x9, [x22, #16]
Lloh53:
	adrp	x10, _METHOD_DONE@GOTPAGE
Lloh54:
	ldr	x10, [x10, _METHOD_DONE@GOTPAGEOFF]
Lloh55:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	str	x8, [x22, #24]
Lloh56:
	adrp	x8, _DECISION_UNCOND_SUCC@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DECISION_UNCOND_SUCC@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	str	x8, [x23]
	ldr	x2, [sp, #72]
	cbnz	x2, LBB0_53
LBB0_52:
	ldr	w0, [x25]
Lloh59:
	adrp	x1, l_.str.8@PAGE
Lloh60:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	bl	_wpabuf_alloc
	mov	x2, x0
	str	x0, [sp, #72]
	cbz	x2, LBB0_56
LBB0_53:
	ldr	w0, [x25]
Lloh61:
	adrp	x1, l_.str.9@PAGE
Lloh62:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_hexdump_buf
	add	x1, x22, #8
Lloh63:
	adrp	x8, _EAP_TYPE_TEAP@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EAP_TYPE_TEAP@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
	ldr	w3, [x22, #4]
	ldr	x5, [sp, #72]
	mov	x0, x21
	mov	x4, x20
	mov	x6, x19
	bl	_eap_peer_tls_encrypt
	cbz	x0, LBB0_55
; %bb.54:
Lloh66:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
Lloh69:
	adrp	x1, l_.str.10@PAGE
Lloh70:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_wpa_printf
LBB0_55:
	ldr	x0, [sp, #72]
	bl	_wpabuf_free
LBB0_56:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_57:
	cbnz	w28, LBB0_42
; %bb.58:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_42
; %bb.59:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_42
; %bb.60:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_42
; %bb.61:
	ldr	w8, [x22, #52]
	cbz	w8, LBB0_67
; %bb.62:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_70
; %bb.63:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_70
; %bb.64:
	ldr	x8, [x8]
	cbnz	x8, LBB0_70
; %bb.65:
	ldr	w0, [x22, #48]
	bl	_eap_teap_allowed_anon_prov_cipher_suite
	cbz	x0, LBB0_70
; %bb.66:
	ldr	x8, [x22, #40]
	ldr	w0, [x8, #8]
	bl	_eap_teap_allowed_anon_prov_phase2_method
	cbz	x0, LBB0_70
LBB0_67:
	ldr	x9, [sp, #8]
	ldr	x8, [x26]
	cmp	x9, x8
	b.eq	LBB0_69
; %bb.68:
	ldr	x9, [sp]
	cmp	x9, x8
	b.ne	LBB0_70
LBB0_69:
	ldr	w0, [x25]
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	bl	_eap_teap_pac_request
	mov	x1, x0
	ldr	x0, [sp, #72]
	bl	_wpabuf_concat
	str	x0, [sp, #72]
LBB0_70:
	ldr	x0, [sp]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_72
; %bb.71:
	mov	w1, #0
	bl	_eap_teap_tlv_result
	ldr	x1, [sp, #72]
	bl	_wpabuf_concat
	mov	x2, x0
	mov	w8, #0
	str	x0, [sp, #72]
	b	LBB0_47
LBB0_72:
	mov	w8, #0
	ldr	x2, [sp, #72]
	b	LBB0_47
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAP_STATUS_FAILURE,8,3        ; @TEAP_STATUS_FAILURE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Server rejected authentication"

	.comm	_METHOD_DONE,8,3                ; @METHOD_DONE
	.comm	_DECISION_FAIL,8,3              ; @DECISION_FAIL
	.comm	_TEAP_STATUS_SUCCESS,8,3        ; @TEAP_STATUS_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Result TLV or Intermediate-Result TLV indicating success, but no Crypto-Binding TLV"

	.comm	_TEAP_ERROR_TUNNEL_COMPROMISE_ERROR,4,2 ; @TEAP_ERROR_TUNNEL_COMPROMISE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Inner EAP method exchange completed, but no Intermediate-Result TLV included"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: Unexpected Crypto-Binding TLV without Result TLV or Intermediate-Result TLV indicating success"

	.comm	_TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED,4,2 ; @TEAP_ERROR_UNEXPECTED_TLVS_EXCHANGED
l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: PAC used - server may decide to skip inner authentication"

	.comm	_METHOD_MAY_CONT,8,3            ; @METHOD_MAY_CONT
	.comm	_DECISION_COND_SUCC,8,3         ; @DECISION_COND_SUCC
l_.str.5:                               ; @.str.5
	.asciz	"EAP-TEAP: PAC TLV without Result TLV acknowledging success"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TEAP: Request Tunnel PAC"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-TEAP: Authentication completed successfully"

	.comm	_DECISION_UNCOND_SUCC,8,3       ; @DECISION_UNCOND_SUCC
l_.str.8:                               ; @.str.8
	.asciz	"EAP-TEAP: No recognized TLVs - send empty response packet"

l_.str.9:                               ; @.str.9
	.asciz	"EAP-TEAP: Encrypting Phase 2 data"

	.comm	_EAP_TYPE_TEAP,4,2              ; @EAP_TYPE_TEAP
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.10:                              ; @.str.10
	.asciz	"EAP-TEAP: Failed to encrypt a Phase 2 frame"

	.no_dead_strip	_eap_teap_process_decrypted
.subsections_via_symbols
