	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_decrypt
_eap_teap_decrypt:                      ## @eap_teap_decrypt
	.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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r8, %rdi
	callq	_wpabuf_len
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_eap_peer_tls_reset_input
	movq	24(%r15), %rdx
	movq	%rdx, -48(%rbp)
	movq	$0, 24(%r15)
LBB0_10:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_buf
	movq	-48(%rbp), %rdi
	callq	_wpabuf_len
	cmpl	$3, %eax
	jg	LBB0_12
## %bb.11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi
	callq	_wpabuf_len
	movslq	%eax, %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdi
	callq	_wpabuf_free
	movl	$-1, %r14d
	jmp	LBB0_13
LBB0_2:
	movq	%r14, %rdi
	callq	_wpabuf_len
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_peer_tls_decrypt
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rdx
	jmp	LBB0_10
LBB0_12:
	movq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_eap_teap_process_decrypted
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_wpabuf_free
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EAP_TYPE_TEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r15), %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_eap_peer_tls_encrypt
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_6:
	cmpq	$0, 8(%r15)
	movl	$0, %r14d
	je	LBB0_13
## %bb.7:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	$0, 8(%r15)
	movq	_DECISION_UNCOND_SUCC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Received %lu bytes encrypted data for Phase 2"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Pending Phase 2 request - skip decryption and use old data"

	.comm	_EAP_TYPE_TEAP,4,2              ## @EAP_TYPE_TEAP
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Mark authentication completed at full TX of fragments"

	.comm	_DECISION_UNCOND_SUCC,4,2       ## @DECISION_UNCOND_SUCC
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: Decrypted Phase 2 TLV(s)"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"EAP-TEAP: Too short Phase 2 TLV frame (len=%lu)"

	.no_dead_strip	_eap_teap_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_decrypt
_eap_teap_decrypt:                      ; @eap_teap_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w25, [x26]
	mov	x0, x4
	bl	_wpabuf_len
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x26]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	bl	_eap_peer_tls_reset_input
	ldr	x2, [x20, #24]
	str	x2, [sp, #8]
	str	xzr, [x20, #24]
LBB0_2:
Lloh6:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_buf
	ldr	x0, [sp, #8]
	bl	_wpabuf_len
	cmp	w0, #3
	b.gt	LBB0_7
; %bb.3:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	bl	_wpabuf_len
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	ldr	x0, [sp, #8]
	bl	_wpabuf_free
	mov	w24, #-1
	b	LBB0_8
LBB0_4:
	mov	x0, x24
	bl	_wpabuf_len
	cbz	w0, LBB0_9
; %bb.5:
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	bl	_eap_peer_tls_decrypt
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x2, [sp, #8]
	b	LBB0_2
LBB0_7:
	ldr	x4, [sp, #8]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x5, x21
	bl	_eap_teap_process_decrypted
	mov	x24, x0
	ldr	x0, [sp, #8]
	bl	_wpabuf_free
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh16:
	adrp	x8, _EAP_TYPE_TEAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAP_TYPE_TEAP@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w3, [x20, #16]
	mov	x0, x23
	mov	x1, x20
	mov	x4, x22
	mov	x5, #0
	mov	x6, x21
	bl	_eap_peer_tls_encrypt
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.10:
	ldr	w8, [x20]
	cbz	w8, LBB0_12
LBB0_11:
	mov	w24, #0
	b	LBB0_8
LBB0_12:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.13:
	ldr	w0, [x26]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w24, #0
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	str	xzr, [x20, #8]
Lloh21:
	adrp	x8, _DECISION_UNCOND_SUCC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DECISION_UNCOND_SUCC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Received %lu bytes encrypted data for Phase 2"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Pending Phase 2 request - skip decryption and use old data"

	.comm	_EAP_TYPE_TEAP,4,2              ; @EAP_TYPE_TEAP
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Mark authentication completed at full TX of fragments"

	.comm	_DECISION_UNCOND_SUCC,4,2       ; @DECISION_UNCOND_SUCC
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: Decrypted Phase 2 TLV(s)"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"EAP-TEAP: Too short Phase 2 TLV frame (len=%lu)"

	.no_dead_strip	_eap_teap_decrypt
.subsections_via_symbols
