	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_parse_decrypted
_eap_teap_parse_decrypted:              ## @eap_teap_parse_decrypted
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	%r14, %rdi
	callq	_wpabuf_mhead
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_len
	cmpl	$4, %eax
	jl	LBB0_10
## %bb.1:
	cltq
	leaq	(%rbx,%rax,4), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r13,4), %rbx
	movq	%r15, %rax
	subq	%rbx, %rax
	cmpq	$12, %rax
	jle	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r14d
	leaq	8(%rbx), %rdi
	callq	_WPA_GET_BE16
	movslq	%eax, %r13
	addq	$16, %rbx
	movq	%r15, %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	cmpq	%r13, %rax
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$16383, %r14d                   ## imm = 0x3FFF
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_eap_teap_tlv_type_str
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	testb	$-128, %r12b
	leaq	L_.str.2(%rip), %r9
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %r9
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_eap_teap_parse_tlv
	cmpl	$-2, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jns	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$-128, -48(%rbp)                ## 1-byte Folded Reload
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_eap_teap_tlv_nak
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: TLV overflow"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Received Phase 2: TLV type %u (%s) length %u%s"

L_.str.2:                               ## @.str.2
	.asciz	" (mandatory)"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: NAK unknown mandatory TLV type %u"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TEAP: Ignore unknown optional TLV type %u"

	.no_dead_strip	_eap_teap_parse_decrypted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_parse_decrypted
_eap_teap_parse_decrypted:              ; @eap_teap_parse_decrypted
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	mov	x0, x21
	bl	_wpabuf_mhead
	mov	x24, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #4
	b.lt	LBB0_11
; %bb.1:
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	add	x27, x24, w8, sxtw #2
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.3@PAGE
Lloh3:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x23, x24, lsl #2
	sub	x8, x27, x24
	cmp	x8, #12
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x24
	ldr	w19, [x23], #16
	mov	x0, x24
	bl	_WPA_GET_BE16
	mov	x25, x0
	add	x0, x24, #8
	bl	_WPA_GET_BE16
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	sub	x8, x27, x23
	cmp	x24, x8, asr #2
	b.hi	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w25, w25, #0x3fff
	ldr	w26, [x28]
	mov	x0, x25
	bl	_eap_teap_tlv_type_str
                                        ; kill: def $w0 killed $w0 def $x0
	tst	w19, #0x80
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
	csel	x8, x22, x8, eq
	stp	x24, x8, [sp, #16]
	stp	x25, x0, [sp]
	mov	x0, x26
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_eap_teap_parse_tlv
	cmn	w0, #2
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	tbnz	w19, #7, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	b	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	x8, x25
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	mov	x1, x25
	bl	_eap_teap_tlv_nak
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: TLV overflow"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Received Phase 2: TLV type %u (%s) length %u%s"

l_.str.2:                               ; @.str.2
	.asciz	" (mandatory)"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: NAK unknown mandatory TLV type %u"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TEAP: Ignore unknown optional TLV type %u"

	.no_dead_strip	_eap_teap_parse_decrypted
.subsections_via_symbols
