	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_peap_build_phase2_term
_eap_peap_build_phase2_term:            ## @eap_peap_build_phase2_term
	.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
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_EAP_CODE_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_EAP_CODE_SUCCESS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r12d, 4(%rbx)
	movl	$12, %edi
	callq	_host_to_be16
	movl	%eax, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$12, %ecx
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	leaq	-48(%rbp), %r12
	movl	$12, %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_set
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_eap_server_tls_encrypt
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_os_free
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_CODE_SUCCESS,4,2           ## @EAP_CODE_SUCCESS
	.comm	_EAP_CODE_FAILURE,4,2           ## @EAP_CODE_FAILURE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PEAP: Encrypting Phase 2 data"

	.no_dead_strip	_eap_peap_build_phase2_term
.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_term
_eap_peap_build_phase2_term:            ; @eap_peap_build_phase2_term
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #12
	bl	_os_zalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _EAP_CODE_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_CODE_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EAP_CODE_FAILURE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EAP_CODE_FAILURE@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	stp	w22, w8, [x0, #4]
	mov	w0, #12
	bl	_host_to_be16
	str	w0, [x21]
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	w3, #12
	bl	_wpa_hexdump_key
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #12
	bl	_wpabuf_set
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_eap_server_tls_encrypt
	mov	x19, x0
	mov	x0, x21
	bl	_os_free
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	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	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_CODE_SUCCESS,4,2           ; @EAP_CODE_SUCCESS
	.comm	_EAP_CODE_FAILURE,4,2           ; @EAP_CODE_FAILURE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: Encrypting Phase 2 data"

	.no_dead_strip	_eap_peap_build_phase2_term
.subsections_via_symbols
