	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_decrypt
_eap_ttls_decrypt:                      ## @eap_ttls_decrypt
	.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, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	$0, -56(%rbp)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 16(%r15)
	jne	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	je	LBB0_16
LBB0_3:
	movq	%r14, %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	leaq	8(%r15), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_eap_peer_tls_decrypt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	-56(%rbp), %rbx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 16(%r15)
	je	LBB0_14
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	8(%r15), %rdi
	callq	_eap_peer_tls_reset_input
	movq	16(%r15), %rbx
	movq	%rbx, -56(%rbp)
	movq	$0, 16(%r15)
	movq	%rbx, %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	$0, (%r15)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_ttls_parse_avps
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movq	-56(%rbp), %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_eap_ttls_process_decrypted
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_wpabuf_clear_free
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_eap_ttls_implicit_identity_request
	jmp	LBB0_18
LBB0_11:
	movl	$-1, %ebx
LBB0_12:
	movq	-56(%rbp), %rdi
	callq	_wpabuf_clear_free
	movl	-48(%rbp), %edi
	callq	_os_free
	testl	%ebx, %ebx
	jns	LBB0_19
## %bb.13:
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_19
LBB0_14:
	cmpq	$0, (%r15)
	jne	LBB0_17
LBB0_15:
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	12(%r15), %ecx
	addq	$8, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_eap_peer_tls_encrypt
	jmp	LBB0_18
LBB0_16:
	cmpq	$0, (%r15)
	je	LBB0_3
LBB0_17:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_eap_ttls_phase2_start
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: received %lu bytes encrypted data for Phase 2"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Pending Phase 2 request - skip decryption and use old data"

	.comm	_EAP_TYPE_TTLS,4,2              ## @EAP_TYPE_TTLS
	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
	.no_dead_strip	_eap_ttls_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_decrypt
_eap_ttls_decrypt:                      ; @eap_ttls_decrypt
	.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, x5
	mov	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #24]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
Lloh0:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w25, [x26]
	cbz	x24, LBB0_6
; %bb.1:
	mov	x0, x24
	bl	_wpabuf_len
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_7
; %bb.2:
	mov	x0, x24
	bl	_wpabuf_len
	cbz	x0, LBB0_16
LBB0_3:
	mov	x0, x24
	bl	_wpabuf_len
	cbz	x0, LBB0_15
; %bb.4:
	add	x1, x22, #8
	add	x3, sp, #24
	mov	x0, x23
	mov	x2, x24
	bl	_eap_peer_tls_decrypt
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x24, [sp, #24]
	b	LBB0_8
LBB0_6:
	str	xzr, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_14
LBB0_7:
	ldr	w0, [x26]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	add	x0, x22, #8
	bl	_eap_peer_tls_reset_input
	ldr	x24, [x22, #16]
	str	x24, [sp, #24]
	str	xzr, [x22, #16]
	mov	x0, x24
	bl	_wpabuf_len
	cbz	x0, LBB0_10
LBB0_8:
	str	xzr, [x22]
	add	x1, sp, #16
	mov	x0, x24
	bl	_eap_ttls_parse_avps
	tbnz	x0, #63, LBB0_11
; %bb.9:
	ldr	x5, [sp, #24]
	add	x4, sp, #16
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	x6, x20
	bl	_eap_ttls_process_decrypted
	mov	x24, x0
	b	LBB0_12
LBB0_10:
	mov	x0, x24
	bl	_wpabuf_clear_free
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	bl	_eap_ttls_implicit_identity_request
	b	LBB0_18
LBB0_11:
	mov	w24, #-1
LBB0_12:
	ldr	x0, [sp, #24]
	bl	_wpabuf_clear_free
	ldr	w0, [sp, #16]
	bl	_os_free
	tbz	w24, #31, LBB0_19
; %bb.13:
Lloh8:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_19
LBB0_14:
	ldr	x8, [x22]
	cbnz	x8, LBB0_17
LBB0_15:
	add	x1, x22, #8
Lloh14:
	adrp	x8, _EAP_TYPE_TTLS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_TYPE_TTLS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x22, #12]
	mov	x0, x23
	mov	x4, x21
	mov	x5, #0
	mov	x6, x20
	bl	_eap_peer_tls_encrypt
	b	LBB0_18
LBB0_16:
	ldr	x8, [x22]
	cbz	x8, LBB0_3
LBB0_17:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	bl	_eap_ttls_phase2_start
LBB0_18:
	mov	x24, x0
LBB0_19:
	mov	x0, x24
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: received %lu bytes encrypted data for Phase 2"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Pending Phase 2 request - skip decryption and use old data"

	.comm	_EAP_TYPE_TTLS,4,2              ; @EAP_TYPE_TTLS
	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
	.no_dead_strip	_eap_ttls_decrypt
.subsections_via_symbols
