	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_fast_process_crypto_binding
_eap_fast_process_crypto_binding:       ## @eap_fast_process_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_FAST_CMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rdi
	callq	_eap_fast_validate_crypto_binding
	testq	%rax, %rax
	js	LBB0_16
## %bb.1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_eap_fast_get_cmk
	testq	%rax, %rax
	js	LBB0_16
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rsi
	shll	$2, %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_os_memcpy
	movq	(%r14), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_os_memset
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_wpa_hexdump
	movq	_EAP_FAST_CMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_hmac_sha1
	movq	(%r14), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_os_memcmp_const
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	(%r14), %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_os_memcpy
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	$8, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, 32(%rbx)
	je	LBB0_6
LBB0_13:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_wpabuf_put
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_eap_fast_write_crypto_binding
	jmp	LBB0_17
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.7:
	movq	%rbx, %rdi
	callq	_eap_fast_derive_msk
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	cmpl	$0, 32(%rbx)
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.11:
	movq	8(%rbx), %rdi
	callq	_os_free
	leaq	16(%rbx), %rsi
	movq	_EAP_TYPE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_eap_peer_tls_derive_session_id
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_13
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	$0, 24(%rbx)
LBB0_15:
	movq	%r13, %rdi
	callq	_wpabuf_clear_free
	jmp	LBB0_16
LBB0_14:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_FAST_CMK_LEN,4,2           ## @EAP_FAST_CMK_LEN
	.comm	_SHA1_MAC_LEN,4,2               ## @SHA1_MAC_LEN
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-FAST: Crypto-Binding TLV for Compound MAC calculation"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"EAP-FAST: Failed to generate MSK"

	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
	.comm	_EAP_TYPE_FAST,4,2              ## @EAP_TYPE_FAST
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.5:                               ## @.str.5
	.asciz	"EAP-FAST: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"EAP-FAST: Failed to derive Session-Id"

	.no_dead_strip	_eap_fast_process_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_process_crypto_binding
_eap_fast_process_crypto_binding:       ; @eap_fast_process_crypto_binding
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x25, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, 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, #-88]
Lloh3:
	adrp	x27, _EAP_FAST_CMK_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EAP_FAST_CMK_LEN@GOTPAGEOFF]
	ldr	w8, [x27]
	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	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _SHA1_MAC_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SHA1_MAC_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w26, [x8]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x3
	bl	_eap_fast_validate_crypto_binding
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_eap_fast_get_cmk
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	x1, [x19]
	lsl	w26, w26, #2
	mov	x0, x24
	mov	x2, x26
	bl	_os_memcpy
	ldr	x0, [x19]
	mov	w1, #0
	mov	x2, x26
	bl	_os_memset
Lloh12:
	adrp	x28, _MSG_MSGDUMP@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x25
	bl	_wpa_hexdump
	ldr	w1, [x27]
	ldr	x4, [x19]
	mov	x0, x21
	mov	x2, x19
	mov	x3, x25
	bl	_hmac_sha1
	ldr	x1, [x19]
	mov	x0, x24
	mov	x2, x26
	bl	_os_memcmp_const
	mov	x25, x0
	ldr	w0, [x28]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x26
	bl	_wpa_hexdump
	ldr	w0, [x28]
	ldr	x2, [x19]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x26
	bl	_wpa_hexdump
	cbz	w25, LBB0_7
; %bb.3:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19]
	mov	x1, x24
	mov	x2, x26
	bl	_os_memcpy
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.6:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #8
	bl	_wpabuf_alloc
	mov	x24, x0
	cbz	x0, LBB0_5
; %bb.8:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_10
LBB0_9:
	mov	x0, x24
	mov	w1, #8
	bl	_wpabuf_put
	mov	x1, x19
	mov	x2, x21
	bl	_eap_fast_write_crypto_binding
	b	LBB0_5
LBB0_10:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.11:
	mov	x0, x20
	bl	_eap_fast_derive_msk
	tbnz	x0, #63, LBB0_16
; %bb.12:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_9
; %bb.13:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.14:
	ldr	x0, [x20, #8]
	bl	_os_free
	add	x1, x20, #16
Lloh28:
	adrp	x8, _EAP_TYPE_FAST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_TYPE_FAST@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_eap_peer_tls_derive_session_id
	str	x0, [x20, #8]
	cbz	x0, LBB0_18
; %bb.15:
	mov	x2, x0
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump
	b	LBB0_9
LBB0_16:
Lloh36:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh41:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	stp	w9, w8, [x23]
	str	xzr, [x20, #24]
LBB0_17:
	mov	x0, x24
	bl	_wpabuf_clear_free
	b	LBB0_4
LBB0_18:
Lloh47:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_FAST_CMK_LEN,4,2           ; @EAP_FAST_CMK_LEN
	.comm	_SHA1_MAC_LEN,4,2               ; @SHA1_MAC_LEN
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-FAST: Crypto-Binding TLV for Compound MAC calculation"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"EAP-FAST: Failed to generate MSK"

	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
	.comm	_EAP_TYPE_FAST,4,2              ; @EAP_TYPE_FAST
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.5:                               ; @.str.5
	.asciz	"EAP-FAST: Derived Session-Id"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"EAP-FAST: Failed to derive Session-Id"

	.no_dead_strip	_eap_fast_process_crypto_binding
.subsections_via_symbols
