	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_fast_validate_crypto_binding
_eap_fast_validate_crypto_binding:      ## @eap_fast_validate_crypto_binding
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	16(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	24(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %ecx
	callq	_wpa_hexdump
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	_EAP_FAST_VERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	cmpq	%rdx, %rcx
	jne	LBB0_2
## %bb.3:
	movq	16(%rbx), %rdx
	movq	_EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	movq	(%r13), %rdi
	movq	24(%rbx), %rsi
	movl	$31, %edx
	callq	_os_memcmp_const
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r13), %rax
	movl	124(%rax), %eax
	orl	$1, %eax
	movq	24(%rbx), %rcx
	cmpl	124(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movq	32(%rbx), %rsi
	shll	$2, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_os_memcpy
	movq	32(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_os_memset
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movl	8(%r13), %edi
	movq	_EAP_FAST_CMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %r8
	movq	%rbx, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_hmac_sha1
	movq	32(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	(%r12), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %ecx
	callq	_wpa_hexdump
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movl	$-1, %r15d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	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-FAST: Reply Crypto-Binding TLV: Version %d Received Version %d SubType %d"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-FAST: NONCE"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-FAST: Compound MAC"

	.comm	_EAP_FAST_VERSION,8,3           ## @EAP_FAST_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"EAP-FAST: Unexpected version in Crypto-Binding: version %d received_version %d"

	.comm	_EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE,8,3 ## @EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE
L_.str.4:                               ## @.str.4
	.asciz	"EAP-FAST: Unexpected subtype in Crypto-Binding: %d"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-FAST: Invalid nonce in Crypto-Binding"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-FAST: Crypto-Binding TLV for Compound MAC calculation"

	.comm	_EAP_FAST_CMK_LEN,4,2           ## @EAP_FAST_CMK_LEN
L_.str.7:                               ## @.str.7
	.asciz	"EAP-FAST: Calculated Compound MAC"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.8:                               ## @.str.8
	.asciz	"EAP-FAST: Compound MAC did not match"

	.no_dead_strip	_eap_fast_validate_crypto_binding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_fast_validate_crypto_binding
_eap_fast_validate_crypto_binding:      ; @eap_fast_validate_crypto_binding
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
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	x8, _SHA1_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA1_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	lsl	x8, x23, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	q0, [x1]
	ldr	x8, [x1, #16]
	sub	sp, sp, #32
	str	x8, [sp, #16]
	str	q0, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #32
Lloh12:
	adrp	x24, _MSG_MSGDUMP@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x2, [x19, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
	ldr	w0, [x24]
	ldr	x2, [x19, #32]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #8
	bl	_wpa_hexdump
Lloh18:
	adrp	x8, _EAP_FAST_VERSION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_FAST_VERSION@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x8]
	ldp	x8, x9, [x19]
	cmp	x8, x10
	ccmp	x9, x8, #0, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x25]
	stp	x8, x9, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x0, [x22]
	ldr	x1, [x19, #24]
	mov	w2, #31
	bl	_os_memcmp_const
	cbnz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x22]
	ldr	w8, [x8, #124]
	orr	w8, w8, #0x1
	ldr	x9, [x19, #24]
	ldr	w9, [x9, #124]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.5:
	ldr	x1, [x19, #32]
	lsl	w23, w23, #2
	mov	x0, x21
	mov	x2, x23
	bl	_os_memcpy
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	x2, x23
	bl	_os_memset
	ldr	w0, [x24]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_wpa_hexdump
	ldr	w0, [x22, #8]
Lloh28:
	adrp	x8, _EAP_FAST_CMK_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_FAST_CMK_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x4, [x19, #32]
	mov	x2, x19
	mov	x3, x20
	bl	_hmac_sha1
	ldr	x1, [x19, #32]
	mov	x0, x21
	mov	x2, x23
	bl	_os_memcmp_const
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w0, [x24]
	ldr	x2, [x19, #32]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x3, x23
	bl	_wpa_hexdump
Lloh33:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	w0, [x25]
	str	x8, [sp, #-16]!
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_8:
	bl	_wpa_printf
	add	sp, sp, #16
	b	LBB0_11
LBB0_9:
	ldr	w0, [x25]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.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-FAST: Reply Crypto-Binding TLV: Version %d Received Version %d SubType %d"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-FAST: NONCE"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-FAST: Compound MAC"

	.comm	_EAP_FAST_VERSION,8,3           ; @EAP_FAST_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"EAP-FAST: Unexpected version in Crypto-Binding: version %d received_version %d"

	.comm	_EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE,8,3 ; @EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE
l_.str.4:                               ; @.str.4
	.asciz	"EAP-FAST: Unexpected subtype in Crypto-Binding: %d"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-FAST: Invalid nonce in Crypto-Binding"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-FAST: Crypto-Binding TLV for Compound MAC calculation"

	.comm	_EAP_FAST_CMK_LEN,4,2           ; @EAP_FAST_CMK_LEN
l_.str.7:                               ; @.str.7
	.asciz	"EAP-FAST: Calculated Compound MAC"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.8:                               ; @.str.8
	.asciz	"EAP-FAST: Compound MAC did not match"

	.no_dead_strip	_eap_fast_validate_crypto_binding
.subsections_via_symbols
