	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tlv_validate_cryptobinding
_eap_tlv_validate_cryptobinding:        ## @eap_tlv_validate_cryptobinding
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rsp, -320(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpq	$60, %rbx
	jne	LBB0_5
## %bb.1:
	movl	20(%r13), %edx
	movl	(%r14), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_6
## %bb.2:
	movl	28(%r13), %edx
	cmpl	$1, %edx
	jne	LBB0_7
## %bb.3:
	leaq	160(%r13), %rax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	leaq	-304(%rbp), %rdi
	movq	%r13, %rsi
	movl	$60, %edx
	callq	_os_memcpy
	leaq	-144(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_os_memset
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	4(%r14), %edi
	movl	$20, %esi
	leaq	-304(%rbp), %rdx
	movl	$244, %ecx
	movq	%r15, %r8
	callq	_hmac_sha1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	-312(%rbp), %rsi                ## 8-byte Reload
	callq	_os_memcmp_const
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %edi
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$20, %ecx
	callq	_wpa_hexdump_key
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-304(%rbp), %rdx
	movl	$61, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_8
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movl	$-1, %ebx
LBB0_10:
	movq	-320(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA1_MAC_LEN,4,2               ## @SHA1_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PEAP: Invalid cryptobinding TLV length %d"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-PEAP: Cryptobinding TLV Version mismatch (was %d; expected %d)"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-PEAP: Unexpected Cryptobinding TLV SubType %d"

	.comm	_EAP_TYPE_PEAP,4,2              ## @EAP_TYPE_PEAP
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PEAP: Invalid Compound_MAC in cryptobinding TLV"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PEAP: CMK"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-PEAP: Cryptobinding seed data"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-PEAP: Valid cryptobinding TLV received"

	.no_dead_strip	_eap_tlv_validate_cryptobinding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tlv_validate_cryptobinding
_eap_tlv_validate_cryptobinding:        ; @eap_tlv_validate_cryptobinding
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #256
	mov	x19, x1
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _SHA1_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SHA1_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	x3, #60
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x2, #20]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x2, #28]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	add	x21, x2, #160
	sub	x24, x29, #316
	sub	x0, x29, #316
	mov	x1, x2
	mov	w2, #60
	bl	_os_memcpy
	add	x0, x24, #160
	mov	w1, #0
	mov	w2, #20
	bl	_os_memset
Lloh7:
	adrp	x8, _EAP_TYPE_PEAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_TYPE_PEAP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stur	w8, [x29, #-76]
	ldr	w0, [x19, #4]
	sub	x2, x29, #316
	mov	w1, #20
	mov	w3, #244
	mov	x4, x20
	bl	_hmac_sha1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_os_memcmp_const
	mov	x8, x0
Lloh10:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	x8, LBB0_12
; %bb.4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20]
	ldr	w2, [x19, #4]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w3, #20
	bl	_wpa_hexdump_key
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #316
	mov	w3, #61
	bl	_wpa_hexdump
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x3, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x10]
	stp	x8, x9, [sp, #-16]!
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh28:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x9]
	str	x8, [sp, #-16]!
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_9:
	mov	w0, #-1
LBB0_10:
	mov	sp, x22
	ldur	x8, [x29, #-72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	sub	sp, x29, #64
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA1_MAC_LEN,4,2               ; @SHA1_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PEAP: Invalid cryptobinding TLV length %d"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-PEAP: Cryptobinding TLV Version mismatch (was %d; expected %d)"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-PEAP: Unexpected Cryptobinding TLV SubType %d"

	.comm	_EAP_TYPE_PEAP,4,2              ; @EAP_TYPE_PEAP
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PEAP: Invalid Compound_MAC in cryptobinding TLV"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PEAP: CMK"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-PEAP: Cryptobinding seed data"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-PEAP: Valid cryptobinding TLV received"

	.no_dead_strip	_eap_tlv_validate_cryptobinding
.subsections_via_symbols
