	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_avp_parse
_eap_ttls_avp_parse:                    ## @eap_ttls_avp_parse
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_wpabuf_mhead
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_len
	movl	%eax, %r14d
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_os_memset
	testl	%r14d, %r14d
	jle	LBB0_50
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_ascii
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 16(%r12)
	movq	%r14, 24(%r12)
LBB0_48:                                ##   in Loop: Header=BB0_2 Depth=1
	negl	%r15d
	andl	$3, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	subl	%eax, %r14d
	testl	%r14d, %r14d
	jle	LBB0_49
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movl	4(%rbx), %edi
	callq	_be_to_host32
	movl	%eax, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_be_to_host32
	movl	%eax, %r15d
	movl	%eax, %r12d
	shrl	$24, %r12d
	movl	%eax, %ebx
	andl	$16777215, %ebx                 ## imm = 0xFFFFFF
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpl	%r14d, %ebx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$7, %ebx
	jbe	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%ebx, %r13d
	leaq	-8(%r13), %r14
	movq	_AVP_FLAGS_VENDOR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %r14
	jbe	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %edi
	callq	_be_to_host32
	movl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	24(%r14), %rax
	addq	$-12, %r13
	movq	%r13, %r14
	movq	%rax, %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	xorl	%ebx, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	testl	%ebx, %ebx
	movq	%r15, %rsi
	movl	-72(%rbp), %r8d                 ## 4-byte Reload
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_EAP_MESSAGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	addq	%r14, %rsi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	8(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	movq	%rbx, (%r12)
	addq	%r14, 8(%r12)
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_USER_NAME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_USER_PASSWORD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rbx
	subq	$1, %r14
	jb	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpl	$0, (%r13,%r14,4)
	je	LBB0_27
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump_ascii_key
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 32(%r12)
	movq	%rbx, 40(%r12)
	jmp	LBB0_48
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_os_memdup
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, 8(%r12)
	jmp	LBB0_48
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_CHAP_CHALLENGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 48(%r12)
	movq	%r14, 56(%r12)
	jmp	LBB0_48
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_CHAP_PASSWORD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 64(%r12)
	movq	%r14, 72(%r12)
	jmp	LBB0_48
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_VENDOR_ID_MICROSOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_MS_CHAP_CHALLENGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r8d
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 80(%r12)
	movq	%r14, 88(%r12)
	jmp	LBB0_48
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_MS_CHAP_RESPONSE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r8d
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 96(%r12)
	movq	%r14, 104(%r12)
	jmp	LBB0_48
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RADIUS_ATTR_MS_CHAP2_RESPONSE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, 112(%r12)
	movq	%r14, 120(%r12)
	jmp	LBB0_48
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AVP_FLAGS_MANDATORY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %edi
	leaq	L_.str.16(%rip), %rsi
	movl	%r8d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_48
LBB0_3:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
LBB0_4:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_49:
	xorl	%r15d, %r15d
	jmp	LBB0_50
LBB0_10:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	(%r12), %rdi
	callq	_os_free
	movq	$0, (%r12)
	movl	$-1, %r15d
LBB0_50:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_46:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	movl	%r8d, %edx
	movl	%ebx, %ecx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: AVP: code=%d flags=0x%02x length=%d"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: AVP overflow (len=%d, left=%d) - dropped"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TTLS: Invalid AVP length %d"

	.comm	_AVP_FLAGS_VENDOR,4,2           ## @AVP_FLAGS_VENDOR
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TTLS: vendor AVP underflow"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TTLS: AVP vendor_id %d"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TTLS: AVP data"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ## @RADIUS_ATTR_EAP_MESSAGE
L_.str.6:                               ## @.str.6
	.asciz	"EAP-TTLS: AVP - EAP Message"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-TTLS: failed to allocate memory for Phase 2 EAP data"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ## @RADIUS_ATTR_USER_NAME
L_.str.8:                               ## @.str.8
	.asciz	"EAP-TTLS: User-Name"

	.comm	_RADIUS_ATTR_USER_PASSWORD,4,2  ## @RADIUS_ATTR_USER_PASSWORD
L_.str.9:                               ## @.str.9
	.asciz	"EAP-TTLS: User-Password (PAP)"

	.comm	_RADIUS_ATTR_CHAP_CHALLENGE,4,2 ## @RADIUS_ATTR_CHAP_CHALLENGE
L_.str.10:                              ## @.str.10
	.asciz	"EAP-TTLS: CHAP-Challenge (CHAP)"

	.comm	_RADIUS_ATTR_CHAP_PASSWORD,4,2  ## @RADIUS_ATTR_CHAP_PASSWORD
L_.str.11:                              ## @.str.11
	.asciz	"EAP-TTLS: CHAP-Password (CHAP)"

	.comm	_RADIUS_VENDOR_ID_MICROSOFT,4,2 ## @RADIUS_VENDOR_ID_MICROSOFT
	.comm	_RADIUS_ATTR_MS_CHAP_CHALLENGE,4,2 ## @RADIUS_ATTR_MS_CHAP_CHALLENGE
L_.str.12:                              ## @.str.12
	.asciz	"EAP-TTLS: MS-CHAP-Challenge"

	.comm	_RADIUS_ATTR_MS_CHAP_RESPONSE,4,2 ## @RADIUS_ATTR_MS_CHAP_RESPONSE
L_.str.13:                              ## @.str.13
	.asciz	"EAP-TTLS: MS-CHAP-Response (MSCHAP)"

	.comm	_RADIUS_ATTR_MS_CHAP2_RESPONSE,4,2 ## @RADIUS_ATTR_MS_CHAP2_RESPONSE
L_.str.14:                              ## @.str.14
	.asciz	"EAP-TTLS: MS-CHAP2-Response (MSCHAPV2)"

	.comm	_AVP_FLAGS_MANDATORY,4,2        ## @AVP_FLAGS_MANDATORY
L_.str.15:                              ## @.str.15
	.asciz	"EAP-TTLS: Unsupported mandatory AVP code %d vendor_id %d - dropped"

L_.str.16:                              ## @.str.16
	.asciz	"EAP-TTLS: Ignoring unsupported AVP code %d vendor_id %d"

	.no_dead_strip	_eap_ttls_avp_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_avp_parse
_eap_ttls_avp_parse:                    ; @eap_ttls_avp_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
	bl	_wpabuf_mhead
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #128
	bl	_os_memset
	cmp	w20, #1
	b.lt	LBB0_41
; %bb.1:
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh4:
	adrp	x1, l_.str.8@PAGE
Lloh5:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump_ascii
	stp	x25, x26, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	neg	w8, w27
	and	w8, w8, #0x3
	add	w8, w22, w8
	sub	w20, w20, w8
	add	x21, x21, w8, uxtw #2
	cmp	w20, #0
	b.le	LBB0_41
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w0, [x21, #4]
	bl	_be_to_host32
	mov	x24, x0
	ldr	w0, [x21]
	bl	_be_to_host32
	mov	x27, x0
	lsr	w23, w0, #24
	and	w22, w0, #0xffffff
	ldr	w0, [x28]
	mov	x8, x22
	stp	x23, x8, [sp, #8]
	str	x24, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cmp	w22, w20
	b.hi	LBB0_42
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #7
	b.ls	LBB0_43
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x26, x22, #8
Lloh8:
	adrp	x8, _AVP_FLAGS_VENDOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVP_FLAGS_VENDOR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, #3
	b.ls	LBB0_44
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #8]
	bl	_be_to_host32
	mov	x19, x28
	mov	x28, x0
	ldr	w0, [x19]
	str	x28, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	add	x25, x21, #24
	sub	x26, x22, #12
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x28
	mov	w28, #0
	add	x25, x21, #8
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	cbnz	w28, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_MESSAGE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x0, [x19]
	cbz	x0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x26
	bl	_os_realloc
	cbz	x0, LBB0_45
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	x8, [x19, #8]
	add	x0, x0, x8, lsl #2
	mov	x1, x25
	mov	x2, x26
	bl	_os_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	stp	x24, x8, [x19]
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	w28, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _RADIUS_ATTR_USER_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RADIUS_ATTR_USER_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _RADIUS_ATTR_USER_PASSWORD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RADIUS_ATTR_USER_PASSWORD@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_24
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x26
	cbz	x26, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	sub	x26, x24, #1
	add	x8, x25, x24, lsl #2
	ldur	w8, [x8, #-4]
	cbz	w8, LBB0_19
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x25
	mov	x3, x24
	bl	_wpa_hexdump_ascii_key
	stp	x25, x24, [x19, #32]
	b	LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_os_memdup
	str	x0, [x19]
	cbz	x0, LBB0_45
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x26, [x19, #8]
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh32:
	adrp	x8, _RADIUS_ATTR_CHAP_CHALLENGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RADIUS_ATTR_CHAP_CHALLENGE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh35:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	stp	x25, x26, [x19, #48]
	b	LBB0_3
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh39:
	adrp	x8, _RADIUS_ATTR_CHAP_PASSWORD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RADIUS_ATTR_CHAP_PASSWORD@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh42:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh43:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	stp	x25, x26, [x19, #64]
	b	LBB0_3
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh46:
	adrp	x8, _RADIUS_VENDOR_ID_MICROSOFT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RADIUS_VENDOR_ID_MICROSOFT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh49:
	adrp	x9, _RADIUS_ATTR_MS_CHAP_CHALLENGE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _RADIUS_ATTR_MS_CHAP_CHALLENGE@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w24, w9
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh52:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh53:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh54:
	adrp	x1, l_.str.12@PAGE
Lloh55:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	stp	x25, x26, [x19, #80]
	b	LBB0_3
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w8
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh56:
	adrp	x9, _RADIUS_ATTR_MS_CHAP_RESPONSE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _RADIUS_ATTR_MS_CHAP_RESPONSE@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	cmp	w24, w9
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh59:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh60:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh61:
	adrp	x1, l_.str.13@PAGE
Lloh62:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	stp	x25, x26, [x19, #96]
	b	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w8
	b.ne	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh63:
	adrp	x8, _RADIUS_ATTR_MS_CHAP2_RESPONSE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _RADIUS_ATTR_MS_CHAP2_RESPONSE@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh66:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh67:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh68:
	adrp	x1, l_.str.14@PAGE
Lloh69:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x2, x25
	mov	x3, x26
	bl	_wpa_hexdump
	stp	x25, x26, [x19, #112]
	b	LBB0_3
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh70:
	adrp	x8, _AVP_FLAGS_MANDATORY@GOTPAGE
Lloh71:
	ldr	x8, [x8, _AVP_FLAGS_MANDATORY@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_48
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh73:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x8]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x28, [sp]
	mov	x28, x8
Lloh75:
	adrp	x1, l_.str.16@PAGE
Lloh76:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_printf
	b	LBB0_3
LBB0_41:
	mov	w0, #0
	b	LBB0_47
LBB0_42:
Lloh77:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x20, [sp]
Lloh80:
	adrp	x1, l_.str.1@PAGE
Lloh81:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_46
LBB0_43:
Lloh82:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh85:
	adrp	x1, l_.str.2@PAGE
Lloh86:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_46
LBB0_44:
Lloh87:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
Lloh90:
	adrp	x1, l_.str.3@PAGE
Lloh91:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_46
LBB0_45:
Lloh92:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
Lloh95:
	adrp	x1, l_.str.7@PAGE
Lloh96:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_46:
	bl	_wpa_printf
	ldr	x0, [x19]
	bl	_os_free
	str	xzr, [x19]
	mov	w0, #-1
LBB0_47:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_48:
Lloh97:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x24, x28, [sp]
Lloh100:
	adrp	x1, l_.str.15@PAGE
Lloh101:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_46
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: AVP: code=%d flags=0x%02x length=%d"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: AVP overflow (len=%d, left=%d) - dropped"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TTLS: Invalid AVP length %d"

	.comm	_AVP_FLAGS_VENDOR,4,2           ; @AVP_FLAGS_VENDOR
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TTLS: vendor AVP underflow"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TTLS: AVP vendor_id %d"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TTLS: AVP data"

	.comm	_RADIUS_ATTR_EAP_MESSAGE,4,2    ; @RADIUS_ATTR_EAP_MESSAGE
l_.str.6:                               ; @.str.6
	.asciz	"EAP-TTLS: AVP - EAP Message"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-TTLS: failed to allocate memory for Phase 2 EAP data"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ; @RADIUS_ATTR_USER_NAME
l_.str.8:                               ; @.str.8
	.asciz	"EAP-TTLS: User-Name"

	.comm	_RADIUS_ATTR_USER_PASSWORD,4,2  ; @RADIUS_ATTR_USER_PASSWORD
l_.str.9:                               ; @.str.9
	.asciz	"EAP-TTLS: User-Password (PAP)"

	.comm	_RADIUS_ATTR_CHAP_CHALLENGE,4,2 ; @RADIUS_ATTR_CHAP_CHALLENGE
l_.str.10:                              ; @.str.10
	.asciz	"EAP-TTLS: CHAP-Challenge (CHAP)"

	.comm	_RADIUS_ATTR_CHAP_PASSWORD,4,2  ; @RADIUS_ATTR_CHAP_PASSWORD
l_.str.11:                              ; @.str.11
	.asciz	"EAP-TTLS: CHAP-Password (CHAP)"

	.comm	_RADIUS_VENDOR_ID_MICROSOFT,4,2 ; @RADIUS_VENDOR_ID_MICROSOFT
	.comm	_RADIUS_ATTR_MS_CHAP_CHALLENGE,4,2 ; @RADIUS_ATTR_MS_CHAP_CHALLENGE
l_.str.12:                              ; @.str.12
	.asciz	"EAP-TTLS: MS-CHAP-Challenge"

	.comm	_RADIUS_ATTR_MS_CHAP_RESPONSE,4,2 ; @RADIUS_ATTR_MS_CHAP_RESPONSE
l_.str.13:                              ; @.str.13
	.asciz	"EAP-TTLS: MS-CHAP-Response (MSCHAP)"

	.comm	_RADIUS_ATTR_MS_CHAP2_RESPONSE,4,2 ; @RADIUS_ATTR_MS_CHAP2_RESPONSE
l_.str.14:                              ; @.str.14
	.asciz	"EAP-TTLS: MS-CHAP2-Response (MSCHAPV2)"

	.comm	_AVP_FLAGS_MANDATORY,4,2        ; @AVP_FLAGS_MANDATORY
l_.str.15:                              ; @.str.15
	.asciz	"EAP-TTLS: Unsupported mandatory AVP code %d vendor_id %d - dropped"

l_.str.16:                              ; @.str.16
	.asciz	"EAP-TTLS: Ignoring unsupported AVP code %d vendor_id %d"

	.no_dead_strip	_eap_ttls_avp_parse
.subsections_via_symbols
