	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_parse_avps
_eap_ttls_parse_avps:                   ## @eap_ttls_parse_avps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_wpabuf_mhead
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump
	cmpq	$3, %rbx
	ja	LBB0_2
## %bb.1:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %ecx
	movq	%rbx, %rdx
	callq	_wpa_printf
LBB0_5:
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_eap_ttls_parse_avp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	negl	%eax
	andl	$3, %eax
	addq	%rax, %rcx
	leaq	(%r15,%rcx,4), %r15
	xorl	%eax, %eax
	movl	$0, %edx
	subq	%rcx, %rbx
	cmovbq	%rdx, %rbx
	ja	LBB0_3
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	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: Decrypted Phase 2 AVPs"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Too short Phase 2 AVP frame len=%lu expected %lu or more - dropped"

	.no_dead_strip	_eap_ttls_parse_avps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_parse_avps
_eap_ttls_parse_avps:                   ; @eap_ttls_parse_avps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_wpabuf_mhead
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x20, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_hexdump
	cmp	x20, #3
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	w3, #4
	bl	_wpa_printf
LBB0_2:
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_eap_ttls_parse_avp
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	neg	w8, w0
	and	w8, w8, #0x3
	add	x8, x8, w0, uxtw
	add	x21, x21, x8, lsl #2
	subs	x8, x20, x8
	csel	x20, xzr, x8, lo
	b.hi	LBB0_4
; %bb.6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: Decrypted Phase 2 AVPs"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Too short Phase 2 AVP frame len=%lu expected %lu or more - dropped"

	.no_dead_strip	_eap_ttls_parse_avps
.subsections_via_symbols
