	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_process_phase2
_eap_peap_process_phase2:               ## @eap_peap_process_phase2
	.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	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rcx, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 24(%r13)
	je	LBB0_1
## %bb.20:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%r13), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eap_peap_process_phase2_response
	movq	24(%r13), %rdi
	callq	_wpabuf_free
	movq	$0, 24(%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r14), %edi
	movl	16(%r13), %esi
	movq	%r15, %rdx
	callq	_tls_connection_decrypt
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%rax, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf_key
	cmpq	$0, (%r13)
	jne	LBB0_6
## %bb.3:
	movq	8(%r13), %rax
	movq	_PHASE2_TLV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_wpabuf_len
	leaq	16(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_wpabuf_len
	leaq	16(%rax), %rdi
	callq	_host_to_be16
	movl	%eax, 12(%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_buf
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	%r14, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	%r15, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_wpabuf_len
	cmpq	$15, %rax
	ja	LBB0_9
## %bb.7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_wpabuf_len
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_21:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_peap_state                 ## TAILCALL
LBB0_9:
	movl	12(%r12), %edi
	callq	_be_to_host16
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_wpabuf_len
	cmpq	%rax, %rbx
	jbe	LBB0_11
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_wpabuf_len
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_peap_req_failure           ## TAILCALL
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	movl	8(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rdx
	cmpq	$128, %rdx
	je	LBB0_15
## %bb.12:
	cmpq	$130, %rdx
	je	LBB0_17
## %bb.13:
	cmpq	$129, %rdx
	jne	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_eap_peap_process_phase2_response
	jmp	LBB0_18
LBB0_17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_eap_peap_state
	jmp	LBB0_18
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r13), %rax
	movq	_SUCCESS_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_eap_peap_state
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eap_peap_valid_session
	jmp	LBB0_18
LBB0_19:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_free                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PEAP: received %lu bytes encrypted data for Phase 2"

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

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: Failed to decrypt Phase 2 data"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: Decrypted Phase 2 EAP"

	.comm	_PHASE2_TLV,8,3                 ## @PHASE2_TLV
L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: Too short Phase 2 EAP frame (len=%lu)"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-PEAP: Length mismatch in Phase 2 EAP frame (len=%lu hdr->length=%lu)"

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

L_.str.7:                               ## @.str.7
	.asciz	"EAP-PEAP: Phase 2 Success"

	.comm	_SUCCESS_REQ,8,3                ## @SUCCESS_REQ
	.comm	_SUCCESS,4,2                    ## @SUCCESS
L_.str.8:                               ## @.str.8
	.asciz	"EAP-PEAP: Phase 2 Failure"

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

	.no_dead_strip	_eap_peap_process_phase2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peap_process_phase2
_eap_peap_process_phase2:               ; @eap_peap_process_phase2
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w23, [x25]
	mov	x0, x3
	bl	_wpabuf_len
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x2, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_peap_process_phase2_response
	ldr	x0, [x19, #24]
	bl	_wpabuf_free
	str	xzr, [x19, #24]
	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
LBB0_2:
	ldr	w0, [x20]
	ldr	w1, [x19, #16]
	mov	x2, x21
	bl	_tls_connection_decrypt
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	w0, [x25]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf_key
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _PHASE2_TLV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PHASE2_TLV@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_wpabuf_len
	add	x0, x0, #16
	bl	_wpabuf_alloc
	cbz	x0, LBB0_21
; %bb.6:
	mov	x23, x0
	mov	x0, x22
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x23
	mov	w1, #16
	bl	_wpabuf_put
	mov	x24, x0
	ldr	x8, [x22]
	str	x8, [x0]
	ldr	w8, [x22, #8]
	str	w8, [x0, #8]
	mov	x0, x21
	bl	_wpabuf_len
	add	x0, x0, #16
	bl	_host_to_be16
	str	w0, [x24, #12]
	mov	x0, x23
	mov	x1, x21
	bl	_wpabuf_put_buf
	mov	x0, x21
	bl	_wpabuf_free
	mov	x21, x23
LBB0_7:
	mov	x0, x21
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	cmp	x0, #15
	b.hi	LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_wpabuf_len
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh21:
	adrp	x8, _FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_eap_peap_state
LBB0_10:
	ldr	w0, [x22, #12]
	bl	_be_to_host16
	mov	x23, x0
	mov	x0, x21
	bl	_wpabuf_len
	cmp	x23, x0
	b.ls	LBB0_13
; %bb.11:
Lloh24:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_wpabuf_len
	stp	x0, x23, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x22
	bl	_wpa_printf
	mov	x0, x21
	bl	_wpabuf_free
	mov	x0, x20
	mov	x1, x19
	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
	b	_eap_peap_req_failure
LBB0_13:
	ldr	w0, [x25]
	ldr	x8, [x22]
	ldr	w9, [x22, #8]
	stp	x9, x23, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x22]
	cmp	x8, #128
	b.eq	LBB0_18
; %bb.14:
	cmp	x8, #130
	b.eq	LBB0_17
; %bb.15:
	cmp	x8, #129
	b.ne	LBB0_20
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_peap_process_phase2_response
	b	LBB0_21
LBB0_17:
	ldr	w0, [x25]
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
Lloh33:
	adrp	x8, _FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_peap_state
	b	LBB0_21
LBB0_18:
	ldr	w0, [x25]
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
Lloh38:
	adrp	x9, _SUCCESS_REQ@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SUCCESS_REQ@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
Lloh41:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_peap_state
	mov	x0, x20
	mov	x1, x19
	bl	_eap_peap_valid_session
	b	LBB0_21
LBB0_20:
Lloh44:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
LBB0_21:
	mov	x0, x21
	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
	b	_wpabuf_free
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: received %lu bytes encrypted data for Phase 2"

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

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: Failed to decrypt Phase 2 data"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: Decrypted Phase 2 EAP"

	.comm	_PHASE2_TLV,8,3                 ; @PHASE2_TLV
l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: Too short Phase 2 EAP frame (len=%lu)"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-PEAP: Length mismatch in Phase 2 EAP frame (len=%lu hdr->length=%lu)"

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

l_.str.7:                               ; @.str.7
	.asciz	"EAP-PEAP: Phase 2 Success"

	.comm	_SUCCESS_REQ,8,3                ; @SUCCESS_REQ
	.comm	_SUCCESS,4,2                    ; @SUCCESS
l_.str.8:                               ; @.str.8
	.asciz	"EAP-PEAP: Phase 2 Failure"

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

	.no_dead_strip	_eap_peap_process_phase2
.subsections_via_symbols
