	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_build_phase2_req
_eap_peap_build_phase2_req:             ## @eap_peap_build_phase2_req
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	24(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%rax, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_wpa_hexdump_key
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_EAP_TYPE_TLV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	addq	$16, %r12
	addq	$-4, %r13
LBB0_6:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_wpabuf_set
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	callq	_eap_server_tls_encrypt
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_wpabuf_free
	jmp	LBB0_9
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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-PEAP: Phase 2 method not ready"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: Encrypting Phase 2 data"

	.comm	_EAP_TYPE_TLV,8,3               ## @EAP_TYPE_TLV
	.no_dead_strip	_eap_peap_build_phase2_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_peap_build_phase2_req
_eap_peap_build_phase2_req:             ; @eap_peap_build_phase2_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x1
	ldr	x1, [x1, #24]
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x8, #8]
	blr	x8
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x23, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_wpa_hexdump_key
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _EAP_TYPE_TLV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EAP_TYPE_TLV@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x10, x22, #16
	sub	x11, x23, #4
	cmp	x8, x9
	csel	x22, x22, x10, eq
	csel	x23, x23, x11, eq
LBB0_5:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x23
	bl	_wpabuf_set
	add	x1, x20, #8
	add	x2, sp, #8
	mov	x0, x19
	bl	_eap_server_tls_encrypt
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: Phase 2 method not ready"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: Encrypting Phase 2 data"

	.comm	_EAP_TYPE_TLV,8,3               ; @EAP_TYPE_TLV
	.no_dead_strip	_eap_peap_build_phase2_req
.subsections_via_symbols
