	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %r13
	movq	(%r13), %r8
	movq	_eap_ttls_process_version@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_eap_ttls_process_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rsi, %rcx
	callq	_eap_server_tls_process
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	callq	_tls_connection_established
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	callq	_tls_connection_resumed
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movl	(%rbx), %edi
	callq	_tls_connection_get_success_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wpabuf_len
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_wpabuf_head
	movq	(%rax), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_7
## %bb.8:
	movq	%rax, %r12
	addq	$16, %r12
	movq	8(%rax), %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump_ascii
	movq	(%r14), %rdi
	callq	_os_free
	testq	%r15, %r15
	movl	$1, %edi
	cmovneq	%r15, %rdi
	callq	_os_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	movq	%r15, 8(%r14)
	movq	(%r14), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_eap_user_get
	movl	(%r13), %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_ascii
	jmp	LBB0_12
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_9:
	movq	$0, 8(%r14)
LBB0_12:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_ttls_state                 ## TAILCALL
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_ttls_state
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tls_connection_set_success_data_resumed ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_TTLS,8,3              ## @EAP_TYPE_TTLS
	.comm	_eap_ttls_process_version,4,2   ## @eap_ttls_process_version
	.comm	_eap_ttls_process_msg,4,2       ## @eap_ttls_process_msg
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: No success data in resumed session - reject attempt"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Resumed session for another EAP type (%u) - reject attempt"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: Identity from cached session"

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

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS: Resuming previous session - skip Phase2"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _EAP_TYPE_TTLS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EAP_TYPE_TTLS@GOTPAGEOFF]
	ldr	x4, [x22]
Lloh2:
	adrp	x8, _eap_ttls_process_version@GOTPAGE
Lloh3:
	ldr	x8, [x8, _eap_ttls_process_version@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
Lloh5:
	adrp	x8, _eap_ttls_process_msg@GOTPAGE
Lloh6:
	ldr	x8, [x8, _eap_ttls_process_msg@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	mov	x3, x1
	bl	_eap_server_tls_process
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	bl	_tls_connection_established
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	bl	_tls_connection_resumed
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w0, [x19]
	bl	_tls_connection_get_success_data
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
	bl	_wpabuf_len
	cmp	w0, #0
	b.le	LBB0_10
; %bb.5:
	mov	x0, x21
	bl	_wpabuf_head
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	add	x22, x0, #16
	ldr	x21, [x0, #8]
Lloh8:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_hexdump_ascii
	ldr	x0, [x20]
	bl	_os_free
	cmp	x21, #0
	csinc	x0, x21, xzr, ne
	bl	_os_malloc
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x1, x22
	mov	x2, x21
	bl	_os_memcpy
	str	x21, [x20, #8]
	ldr	x1, [x20]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #1
	bl	_eap_user_get
	mov	x8, x0
	ldr	w0, [x23]
	cbz	x8, LBB0_14
; %bb.8:
	ldp	x2, x3, [x20]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_ascii
	b	LBB0_13
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_13
LBB0_11:
Lloh19:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_13
LBB0_12:
	str	xzr, [x20, #8]
LBB0_13:
Lloh24:
	adrp	x8, _FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_eap_ttls_state
LBB0_14:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh29:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_ttls_state
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_tls_connection_set_success_data_resumed
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_TTLS,8,3              ; @EAP_TYPE_TTLS
	.comm	_eap_ttls_process_version,4,2   ; @eap_ttls_process_version
	.comm	_eap_ttls_process_msg,4,2       ; @eap_ttls_process_msg
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: No success data in resumed session - reject attempt"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Resumed session for another EAP type (%u) - reject attempt"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: Identity from cached session"

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

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS: Resuming previous session - skip Phase2"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_eap_ttls_process
.subsections_via_symbols
