	.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
_eap_ttls_process_phase2_eap:           ## @eap_ttls_process_phase2_eap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	8(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%rbx), %edx
	cmpq	$15, %rdx
	ja	LBB0_6
## %bb.4:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$16, %ecx
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	movl	12(%r14), %edi
	callq	_be_to_host16
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_8
## %bb.7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %edi
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rdx
	cmpq	$128, %rdx
	jne	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_eap_ttls_phase2_request
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: No EAP Message in the packet - dropped"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Phase 2 EAP"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: Too short Phase 2 EAP frame (len=%lu, expected %lu or more) - dropped"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS: Length mismatch in Phase 2 EAP frame (EAP hdr len=%lu, EAP data len in AVP=%lu)"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS: received Phase 2: code=%d identifier=%d length=%lu"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TTLS: Phase2 Request processing failed"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TTLS: Unexpected code=%d in Phase 2 EAP header"

	.no_dead_strip	_eap_ttls_process_phase2_eap
.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
_eap_ttls_process_phase2_eap:           ; @eap_ttls_process_phase2_eap
	.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, x2
	ldr	x2, [x3, #8]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x24, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w3, [x3]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump
	ldr	w8, [x24]
	cmp	w8, #15
	b.hi	LBB0_4
; %bb.2:
Lloh4:
	adrp	x9, _MSG_WARNING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MSG_WARNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	mov	w9, #16
	stp	x8, x9, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	x23, [x24, #8]
	ldr	w0, [x23, #12]
	bl	_be_to_host16
	ldrsw	x9, [x24]
	cmp	x0, x9
	b.ls	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	x0, x9, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_10
LBB0_6:
	ldr	w8, [x25]
	ldr	x9, [x23]
	ldr	w10, [x23, #8]
	stp	x10, x0, [sp, #8]
	str	x9, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	x8, [x23]
	cmp	x8, #128
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	bl	_eap_ttls_phase2_request
	cbz	w0, LBB0_11
; %bb.8:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_10:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_11:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: No EAP Message in the packet - dropped"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Phase 2 EAP"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: Too short Phase 2 EAP frame (len=%lu, expected %lu or more) - dropped"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS: Length mismatch in Phase 2 EAP frame (EAP hdr len=%lu, EAP data len in AVP=%lu)"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS: received Phase 2: code=%d identifier=%d length=%lu"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TTLS: Phase2 Request processing failed"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TTLS: Unexpected code=%d in Phase 2 EAP header"

	.no_dead_strip	_eap_ttls_process_phase2_eap
.subsections_via_symbols
