	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function eap_peap_build_phase2_tlv
LCPI0_0:
	.quad	60                              ## 0x3c
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_eap_peap_build_phase2_tlv:             ## @eap_peap_build_phase2_tlv
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r8d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$6, %edx
	cmpl	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	_TLV_REQ_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%r15), %rax
	movq	_NO_BINDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$6, %eax
	movl	$66, %edx
	cmoveq	%rax, %rdx
LBB0_3:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_TLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$128, %esi
	callq	_wpabuf_put_u8
	movq	_EAP_TLV_RESULT_TLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_wpabuf_put_be16
	movq	8(%r15), %rax
	movq	_TLV_REQ_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_EAP_TLV_RESULT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_EAP_TLV_RESULT_FAILURE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_be16
	cmpl	$0, (%r15)
	jne	LBB0_15
## %bb.9:
	movq	8(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.10:
	movq	16(%r15), %rax
	movq	_NO_BINDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	callq	_wpa_hexdump_buf_key
	addq	$32, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_eap_server_tls_encrypt
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_wpabuf_free
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_eap_peap_derive_cmk
	testq	%rax, %rax
	js	LBB0_13
## %bb.12:
	movl	48(%r15), %edi
	movl	$32, %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	callq	_wpabuf_free
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)
	leaq	-68(%rbp), %rax
	movq	%rax, -56(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [60,1]
	movaps	%xmm0, -96(%rbp)
	movq	_EAP_TLV_CRYPTO_BINDING_TLV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_be16
	movq	%r13, %rdi
	movl	$56, %esi
	callq	_wpabuf_put_be16
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movl	24(%r15), %esi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
	movl	48(%r15), %esi
	movq	%r13, %rdi
	movl	$32, %edx
	callq	_wpabuf_put_data
	movq	%r13, %rdi
	movl	$20, %esi
	callq	_wpabuf_put
	movq	%rax, %r12
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	40(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$60, %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %ecx
	leaq	-68(%rbp), %rdx
	callq	_wpa_hexdump
	movq	40(%r15), %rdi
	leaq	-64(%rbp), %rcx
	leaq	-96(%rbp), %r8
	movl	$20, %esi
	movl	$2, %edx
	movq	%r12, %r9
	callq	_hmac_sha1_vector
	movl	(%rbx), %edi
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump
	movl	$1, 28(%r15)
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLV_REQ_SUCCESS,8,3            ## @TLV_REQ_SUCCESS
	.comm	_NO_BINDING,8,3                 ## @NO_BINDING
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLV,4,2               ## @EAP_TYPE_TLV
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_EAP_TLV_RESULT_TLV,4,2         ## @EAP_TLV_RESULT_TLV
	.comm	_EAP_TLV_RESULT_SUCCESS,4,2     ## @EAP_TLV_RESULT_SUCCESS
	.comm	_EAP_TLV_RESULT_FAILURE,4,2     ## @EAP_TLV_RESULT_FAILURE
	.comm	_EAP_TYPE_PEAP,4,2              ## @EAP_TYPE_PEAP
	.comm	_EAP_TLV_CRYPTO_BINDING_TLV,4,2 ## @EAP_TLV_CRYPTO_BINDING_TLV
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PEAP: Compound_MAC CMK"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: Compound_MAC data 1"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: Compound_MAC data 2"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: Compound_MAC"

	.comm	_SHA1_MAC_LEN,8,3               ## @SHA1_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: Encrypting Phase 2 TLV data"

	.no_dead_strip	_eap_peap_build_phase2_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function eap_peap_build_phase2_tlv
lCPI0_0:
	.quad	60                              ; 0x3c
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_eap_peap_build_phase2_tlv:             ; @eap_peap_build_phase2_tlv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x4, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w8, [x1]
Lloh3:
	adrp	x22, _TLV_REQ_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TLV_REQ_SUCCESS@GOTPAGEOFF]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _NO_BINDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NO_BINDING@GOTPAGEOFF]
	ldr	x9, [x20, #16]
Lloh7:
	ldr	x8, [x8]
	mov	w10, #66
	mov	w11, #6
	cmp	x9, x8
	csel	x2, x11, x10, eq
	b	LBB0_4
LBB0_3:
	mov	w2, #6
LBB0_4:
Lloh8:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EAP_TYPE_TLV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_TYPE_TLV@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_eap_msg_alloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	mov	w1, #128
	bl	_wpabuf_put_u8
Lloh17:
	adrp	x8, _EAP_TLV_RESULT_TLV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_TLV_RESULT_TLV@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	mov	x0, x21
	mov	w1, #2
	bl	_wpabuf_put_be16
	ldr	x8, [x20, #8]
Lloh20:
	adrp	x9, _EAP_TLV_RESULT_SUCCESS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EAP_TLV_RESULT_SUCCESS@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh22:
	adrp	x11, _EAP_TLV_RESULT_FAILURE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _EAP_TLV_RESULT_FAILURE@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_be16
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x20, #16]
Lloh24:
	adrp	x9, _NO_BINDING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NO_BINDING@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump_buf_key
	add	x1, x20, #32
	mov	x0, x19
	mov	x2, x21
	bl	_eap_server_tls_encrypt
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_13
LBB0_9:
Lloh32:
	adrp	x8, _EAP_TYPE_PEAP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EAP_TYPE_PEAP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	x0, x19
	mov	x1, x20
	bl	_eap_peap_derive_cmk
	tbnz	x0, #63, LBB0_11
; %bb.10:
	ldr	w0, [x20, #48]
	mov	w1, #32
	bl	_random_get_bytes
	cbz	x0, LBB0_15
LBB0_11:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_12:
	mov	x19, #0
LBB0_13:
	ldr	x8, [sp, #40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	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
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x21
	mov	w1, #0
	bl	_wpabuf_put
	mov	x22, x0
	add	x8, sp, #20
	stp	x0, x8, [sp, #24]
Lloh38:
	adrp	x8, lCPI0_0@PAGE
Lloh39:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
Lloh40:
	adrp	x8, _EAP_TLV_CRYPTO_BINDING_TLV@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EAP_TLV_CRYPTO_BINDING_TLV@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_be16
	mov	x0, x21
	mov	w1, #56
	bl	_wpabuf_put_be16
	mov	x0, x21
	mov	w1, #0
	bl	_wpabuf_put_u8
	ldr	w1, [x20]
	mov	x0, x21
	bl	_wpabuf_put_u8
	ldr	w1, [x20, #24]
	mov	x0, x21
	bl	_wpabuf_put_u8
	mov	x0, x21
	mov	w1, #0
	bl	_wpabuf_put_u8
	ldr	w1, [x20, #48]
	mov	x0, x21
	mov	w2, #32
	bl	_wpabuf_put_data
	mov	x0, x21
	mov	w1, #20
	bl	_wpabuf_put
	mov	x23, x0
Lloh43:
	adrp	x24, _MSG_MSGDUMP@GOTPAGE
Lloh44:
	ldr	x24, [x24, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x2, [x20, #40]
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #20
	bl	_wpa_hexdump
	ldr	w0, [x24]
Lloh47:
	adrp	x1, l_.str.1@PAGE
Lloh48:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	w3, #60
	bl	_wpa_hexdump
	ldr	w0, [x24]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w22, #1
	add	x2, sp, #20
	mov	w3, #1
	bl	_wpa_hexdump
	ldr	x0, [x20, #40]
	add	x3, sp, #24
	mov	x4, sp
	mov	w1, #20
	mov	w2, #2
	mov	x5, x23
	bl	_hmac_sha1_vector
	ldr	w0, [x24]
Lloh51:
	adrp	x8, _SHA1_MAC_LEN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SHA1_MAC_LEN@GOTPAGEOFF]
Lloh53:
	ldr	x3, [x8]
Lloh54:
	adrp	x1, l_.str.3@PAGE
Lloh55:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump
	str	w22, [x20, #28]
	b	LBB0_8
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdrp	Lloh38, Lloh40
	.loh AdrpLdr	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_TLV_REQ_SUCCESS,8,3            ; @TLV_REQ_SUCCESS
	.comm	_NO_BINDING,8,3                 ; @NO_BINDING
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TLV,4,2               ; @EAP_TYPE_TLV
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_EAP_TLV_RESULT_TLV,4,2         ; @EAP_TLV_RESULT_TLV
	.comm	_EAP_TLV_RESULT_SUCCESS,4,2     ; @EAP_TLV_RESULT_SUCCESS
	.comm	_EAP_TLV_RESULT_FAILURE,4,2     ; @EAP_TLV_RESULT_FAILURE
	.comm	_EAP_TYPE_PEAP,4,2              ; @EAP_TYPE_PEAP
	.comm	_EAP_TLV_CRYPTO_BINDING_TLV,4,2 ; @EAP_TLV_CRYPTO_BINDING_TLV
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: Compound_MAC CMK"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: Compound_MAC data 1"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: Compound_MAC data 2"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: Compound_MAC"

	.comm	_SHA1_MAC_LEN,8,3               ; @SHA1_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: Encrypting Phase 2 TLV data"

	.no_dead_strip	_eap_peap_build_phase2_tlv
.subsections_via_symbols
