	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_process_phase2
_eap_ttls_process_phase2:               ## @eap_ttls_process_phase2
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rdx, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 16(%r12)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%r12), %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	16(%r12), %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_eap_ttls_process_phase2_eap
	movq	16(%r12), %rdi
	callq	_wpabuf_free
	movq	$0, 16(%r12)
LBB0_23:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	12(%r15), %edi
	movl	8(%r12), %esi
	movq	%r14, %rdx
	callq	_tls_connection_decrypt
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %r14
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf_key
	leaq	-152(%rbp), %rsi
	movq	%r14, %rdi
	callq	_eap_ttls_avp_parse
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	cmpq	$0, -48(%rbp)
	je	LBB0_12
## %bb.6:
	movl	-152(%rbp), %eax
	leal	1(,%rax,4), %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movl	-152(%rbp), %ecx
	leal	1(,%rcx,4), %esi
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_printf_encode
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_eap_log_msg
	movq	%rbx, %rdi
	callq	_os_free
LBB0_8:
	movq	(%r15), %rdi
	callq	_os_free
	movq	-48(%rbp), %rdi
	movl	-152(%rbp), %esi
	callq	_os_memdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	-152(%rbp), %edx
	movl	%edx, 8(%r15)
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_eap_user_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_ttls_state
	jmp	LBB0_22
LBB0_24:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_ttls_state                 ## TAILCALL
LBB0_4:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_ttls_state
	jmp	LBB0_23
LBB0_12:
	movq	-144(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eap_ttls_process_phase2_eap
	jmp	LBB0_22
LBB0_14:
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	-72(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eap_ttls_process_phase2_pap
	jmp	LBB0_22
LBB0_16:
	movq	-88(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_18
## %bb.17:
	movl	-76(%rbp), %edx
	movl	-96(%rbp), %r9d
	movl	-80(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eap_ttls_process_phase2_chap
	jmp	LBB0_22
LBB0_18:
	movq	-104(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_20
## %bb.19:
	movl	-120(%rbp), %ecx
	movl	-116(%rbp), %edx
	movl	-112(%rbp), %r9d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eap_ttls_process_phase2_mschap
	jmp	LBB0_22
LBB0_20:
	movq	-128(%rbp), %r8
	testq	%r8, %r8
	je	LBB0_22
## %bb.21:
	movl	-116(%rbp), %edx
	movl	-136(%rbp), %r9d
	movl	-120(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_eap_ttls_process_phase2_mschapv2
LBB0_22:
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	-144(%rbp), %rdi
	callq	_os_free
	jmp	LBB0_23
	.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 EAP response - skip decryption and use old data"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: Failed to decrypt Phase 2 data"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS: Decrypted Phase 2 EAP"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS: Failed to parse AVPs"

L_.str.5:                               ## @.str.5
	.asciz	"TTLS-User-Name '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TTLS: Phase2 Identity not found in the user database"

	.no_dead_strip	_eap_ttls_process_phase2
.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_phase2
_eap_ttls_process_phase2:               ; @eap_ttls_process_phase2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	x0, x2
	bl	_wpabuf_len
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #16]
	bl	_wpabuf_head
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	mov	x3, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_eap_ttls_process_phase2_eap
	ldr	x0, [x19, #16]
	bl	_wpabuf_free
	str	xzr, [x19, #16]
LBB0_2:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_3:
	ldr	w0, [x21, #12]
	ldr	w1, [x19, #8]
	mov	x2, x20
	bl	_tls_connection_decrypt
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	ldr	w0, [x24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf_key
	add	x1, sp, #16
	mov	x0, x20
	bl	_eap_ttls_avp_parse
	tbnz	x0, #63, LBB0_13
; %bb.5:
	ldr	x8, [sp, #120]
	cbz	x8, LBB0_14
; %bb.6:
	ldr	w8, [sp, #16]
	mov	w23, #1
	mov	w0, #1
	bfi	w0, w8, #2, #30
	bl	_os_malloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w3, [sp, #16]
	bfi	w23, w3, #2, #30
	ldr	x2, [sp, #120]
	mov	x1, x23
	bl	_printf_encode
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_eap_log_msg
	mov	x0, x22
	bl	_os_free
LBB0_8:
	ldr	x0, [x21]
	bl	_os_free
	ldr	x0, [sp, #120]
	ldr	w1, [sp, #16]
	bl	_os_memdup
	str	x0, [x21]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w2, [sp, #16]
	str	w2, [x21, #8]
	ldr	x1, [sp, #120]
	mov	x0, x21
	mov	w3, #1
	bl	_eap_user_get
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
LBB0_11:
Lloh12:
	adrp	x8, _FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
	b	LBB0_24
LBB0_12:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh20:
	adrp	x8, _FAILURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_eap_ttls_state
LBB0_13:
	ldr	w0, [x24]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	bl	_wpabuf_free
Lloh25:
	adrp	x8, _FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
	b	LBB0_2
LBB0_14:
	ldr	x2, [sp, #24]
	cbz	x2, LBB0_16
; %bb.15:
	ldr	x3, [sp, #112]
	mov	x0, x21
	mov	x1, x19
	bl	_eap_ttls_process_phase2_eap
	b	LBB0_24
LBB0_16:
	ldr	x2, [sp, #104]
	cbz	x2, LBB0_18
; %bb.17:
	ldr	w3, [sp, #96]
	mov	x0, x21
	mov	x1, x19
	bl	_eap_ttls_process_phase2_pap
	b	LBB0_24
LBB0_18:
	ldr	x4, [sp, #80]
	cbz	x4, LBB0_20
; %bb.19:
	ldp	w3, w2, [sp, #88]
	ldr	w5, [sp, #72]
	mov	x0, x21
	mov	x1, x19
	bl	_eap_ttls_process_phase2_chap
	b	LBB0_24
LBB0_20:
	ldr	x4, [sp, #64]
	cbz	x4, LBB0_22
; %bb.21:
	ldp	w3, w2, [sp, #48]
	ldr	w5, [sp, #56]
	mov	x0, x21
	mov	x1, x19
	bl	_eap_ttls_process_phase2_mschap
	b	LBB0_24
LBB0_22:
	ldr	x4, [sp, #40]
	cbz	x4, LBB0_24
; %bb.23:
	ldp	w3, w2, [sp, #48]
	ldr	w5, [sp, #32]
	mov	x0, x21
	mov	x1, x19
	bl	_eap_ttls_process_phase2_mschapv2
LBB0_24:
	mov	x0, x20
	bl	_wpabuf_free
	ldr	x0, [sp, #24]
	bl	_os_free
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.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 EAP response - skip decryption and use old data"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: Failed to decrypt Phase 2 data"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS: Decrypted Phase 2 EAP"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS: Failed to parse AVPs"

l_.str.5:                               ; @.str.5
	.asciz	"TTLS-User-Name '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TTLS: Phase2 Identity not found in the user database"

	.no_dead_strip	_eap_ttls_process_phase2
.subsections_via_symbols
