	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sake_compute_mic           ## -- Begin function eap_sake_compute_mic
	.p2align	4, 0x90
_eap_sake_compute_mic:                  ## @eap_sake_compute_mic
	.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	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	40(%rbp), %r13
	movq	16(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_SAKE_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rax
	leaq	(%rax,%r13), %rdi
	addq	$2, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	cmpl	$0, 24(%rbp)
	je	LBB0_8
## %bb.3:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	16(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_os_memcpy
	leaq	(,%rbx,4), %rbx
	addq	%r13, %rbx
LBB0_5:
	movl	$0, (%rbx)
	addq	$4, %rbx
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	leaq	(%rbx,%r14,4), %rbx
LBB0_7:
	movq	_EAP_SAKE_RAND_LEN@GOTPCREL(%rip), %r15
	movl	$0, (%rbx)
	movslq	(%r15), %rdx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r15), %rdx
	leaq	(%r12,%rdx,4), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	leaq	L_.str(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	leaq	(,%r14,4), %rbx
	addq	%r13, %rbx
LBB0_10:
	movl	$0, (%rbx)
	addq	$4, %rbx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	16(%rbp), %r14
	movq	%r14, %rdx
	callq	_os_memcpy
	leaq	(%rbx,%r14,4), %rbx
LBB0_12:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	$0, (%rbx)
	movq	_EAP_SAKE_RAND_LEN@GOTPCREL(%rip), %r15
	movslq	(%r15), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r15), %rdx
	leaq	(%r12,%rdx,4), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	leaq	L_.str.1(%rip), %rax
LBB0_13:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rdi
	movq	32(%rbp), %r14
	movq	%r14, %rsi
	movq	40(%rbp), %rdx
	callq	_os_memcpy
	movq	48(%rbp), %rax
	subq	%r14, %rax
	leaq	(%rbx,%rax), %rdi
	addq	$4, %rdi
	movq	_EAP_SAKE_MIC_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movq	_EAP_SAKE_TEK_AUTH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	addl	%r8d, %r8d
	movl	(%rbx), %eax
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r13, %r9
	pushq	%rax
	pushq	56(%rbp)
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_eap_sake_kdf
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_os_free
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SAKE_RAND_LEN,4,2          ## @EAP_SAKE_RAND_LEN
	.comm	_EAP_SAKE_MIC_LEN,4,2           ## @EAP_SAKE_MIC_LEN
	.comm	_EAP_SAKE_TEK_AUTH_LEN,4,2      ## @EAP_SAKE_TEK_AUTH_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Peer MIC"

L_.str.1:                               ## @.str.1
	.asciz	"Server MIC"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sake_compute_mic           ; -- Begin function eap_sake_compute_mic
	.p2align	2
_eap_sake_compute_mic:                  ; @eap_sake_compute_mic
	.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, #48
	mov	x28, x7
	mov	x23, x6
	mov	x26, x5
	mov	x19, x4
	mov	x27, x3
	stp	x1, x2, [x29, #-104]            ; 16-byte Folded Spill
	mov	x25, x0
	ldr	x24, [x29, #24]
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	x8, _EAP_SAKE_RAND_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_SAKE_RAND_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x8, x8, #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	x20, x9, x8
	mov	sp, x20
	add	x8, x4, x6
	add	x8, x8, x24
	add	x22, x8, #2
	mov	x0, x22
	bl	_os_malloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x8, [x29, #40]
	stp	x8, x25, [x29, #-120]           ; 16-byte Folded Spill
	ldr	x8, [x29, #32]
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	ldr	x25, [x29, #16]
	cbz	w28, LBB0_8
; %bb.2:
	mov	x28, x21
	cbz	x26, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x23
	bl	_os_memcpy
	add	x28, x21, x23, lsl #2
LBB0_4:
	str	wzr, [x28], #4
	cbz	x27, LBB0_6
; %bb.5:
	mov	x0, x28
	mov	x1, x27
	mov	x2, x19
	bl	_os_memcpy
	add	x28, x28, x19, lsl #2
LBB0_6:
Lloh8:
	adrp	x26, _EAP_SAKE_RAND_LEN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EAP_SAKE_RAND_LEN@GOTPAGEOFF]
	str	wzr, [x28]
	ldrsw	x2, [x26]
	mov	x0, x20
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_os_memcpy
	ldrsw	x2, [x26]
	add	x0, x20, x2, lsl #2
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_os_memcpy
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
	mov	w19, #-1
	b	LBB0_14
LBB0_8:
	mov	x28, x21
	cbz	x27, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x27
	mov	x2, x19
	bl	_os_memcpy
	add	x28, x21, x19, lsl #2
LBB0_10:
	str	wzr, [x28], #4
	cbz	x26, LBB0_12
; %bb.11:
	mov	x0, x28
	mov	x1, x26
	mov	x2, x23
	bl	_os_memcpy
	add	x28, x28, x23, lsl #2
LBB0_12:
	str	wzr, [x28]
Lloh12:
	adrp	x26, _EAP_SAKE_RAND_LEN@GOTPAGE
Lloh13:
	ldr	x26, [x26, _EAP_SAKE_RAND_LEN@GOTPAGEOFF]
	ldrsw	x2, [x26]
	mov	x0, x20
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_os_memcpy
	ldrsw	x2, [x26]
	add	x0, x20, x2, lsl #2
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_os_memcpy
Lloh14:
	adrp	x19, l_.str.1@PAGE
Lloh15:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_13:
	add	x23, x28, #4
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_os_memcpy
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	sub	x8, x8, x25
	add	x0, x23, x8
Lloh16:
	adrp	x23, _EAP_SAKE_MIC_LEN@GOTPAGE
Lloh17:
	ldr	x23, [x23, _EAP_SAKE_MIC_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_os_memset
Lloh18:
	adrp	x8, _EAP_SAKE_TEK_AUTH_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_SAKE_TEK_AUTH_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x26]
	lsl	w4, w8, #1
	ldr	w8, [x23]
	str	w8, [sp, #-16]!
	ldp	x7, x0, [x29, #-120]            ; 16-byte Folded Reload
	mov	x2, x19
	mov	x3, x20
	mov	x5, x21
	mov	x6, x22
	bl	_eap_sake_kdf
	add	sp, sp, #16
	mov	x19, x0
	mov	x0, x21
	bl	_os_free
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SAKE_RAND_LEN,4,2          ; @EAP_SAKE_RAND_LEN
	.comm	_EAP_SAKE_MIC_LEN,4,2           ; @EAP_SAKE_MIC_LEN
	.comm	_EAP_SAKE_TEK_AUTH_LEN,4,2      ; @EAP_SAKE_TEK_AUTH_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Peer MIC"

l_.str.1:                               ; @.str.1
	.asciz	"Server MIC"

.subsections_via_symbols
