	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_shared_secret          ## -- Begin function eap_eke_shared_secret
	.p2align	4, 0x90
_eap_eke_shared_secret:                 ## @eap_eke_shared_secret
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_EKE_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_EAP_EKE_MAX_DH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r13), %edi
	callq	_eap_eke_dh_group
	movq	%rax, %rbx
	movq	(%r13), %rdx
	movq	_EAP_EKE_ENCR_AES128_CBC@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_10
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rsi
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	callq	_os_memcpy
	movq	(%rbx), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_aes_128_cbc_decrypt
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	subq	$8, %rsp
	leaq	-64(%rbp), %rax
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rdx
	pushq	%r15
	pushq	%rdx
	callq	_crypto_dh_derive_secret
	addq	$48, %rsp
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	-64(%rbp), %rdx
	movq	(%rbx), %r14
	subq	%rdx, %r14
	jbe	LBB0_6
## %bb.5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%r14,4), %rdi
	movq	%r15, %rsi
	callq	_os_memmove
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_os_memset
LBB0_6:
	movq	8(%r13), %rdx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	movl	24(%r13), %edi
	movq	(%rbx), %r8
	movq	8(%r13), %rdx
	movq	%r14, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	pushq	16(%r13)
	pushq	$0
	callq	_eap_eke_prf
	addq	$16, %rsp
	testq	%rax, %rax
	movl	$-1, %eax
	js	LBB0_10
## %bb.7:
	movl	(%r12), %edi
	movq	8(%r13), %rcx
	movq	16(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ## @EAP_EKE_MAX_HASH_LEN
	.comm	_EAP_EKE_MAX_DH_LEN,4,2         ## @EAP_EKE_MAX_DH_LEN
	.comm	_EAP_EKE_ENCR_AES128_CBC,8,3    ## @EAP_EKE_ENCR_AES128_CBC
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-EKE: Failed to decrypt DHComponent"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: Decrypted peer DH pubkey"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-EKE: SharedSecret"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_shared_secret          ; -- Begin function eap_eke_shared_secret
	.p2align	2
_eap_eke_shared_secret:                 ; @eap_eke_shared_secret
	.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	x25, x3
	mov	x22, x2
	mov	x26, x1
	mov	x19, 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, _EAP_EKE_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_EKE_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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
Lloh8:
	adrp	x8, _EAP_EKE_MAX_DH_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_EKE_MAX_DH_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	ldr	w0, [x0, #28]
	bl	_eap_eke_dh_group
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _EAP_EKE_ENCR_AES128_CBC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAP_EKE_ENCR_AES128_CBC@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_8
; %bb.1:
	mov	x23, x0
Lloh18:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh20:
	ldrsw	x8, [x8]
	add	x1, x25, x8, lsl #2
	ldr	x2, [x0]
	mov	x0, x24
	bl	_os_memcpy
	ldr	x3, [x23]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	bl	_aes_128_cbc_decrypt
	tbnz	x0, #63, LBB0_7
; %bb.2:
Lloh21:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	x3, [x23]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump_key
	ldr	x8, [x23]
	stur	x8, [x29, #-80]
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	ldr	w1, [x23, #8]
	ldr	x2, [x23]
	sub	sp, sp, #32
	sub	x8, x29, #80
	stp	x21, x8, [sp, #8]
	str	x2, [sp]
	mov	x3, #0
	mov	w4, #0
	mov	x5, x22
	mov	x6, x2
	mov	x7, x24
	bl	_crypto_dh_derive_secret
	add	sp, sp, #32
	tbnz	x0, #63, LBB0_8
; %bb.3:
	ldur	x2, [x29, #-80]
	ldr	x8, [x23]
	subs	x22, x8, x2
	b.ls	LBB0_5
; %bb.4:
	add	x0, x21, x22, lsl #2
	mov	x1, x21
	bl	_os_memmove
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_os_memset
LBB0_5:
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_os_memset
	ldr	w0, [x19, #24]
	ldr	x4, [x23]
	ldp	x2, x7, [x19, #8]
	mov	x1, x20
	mov	x3, x21
	mov	x5, #0
	mov	w6, #0
	bl	_eap_eke_prf
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	w0, [x25]
	ldp	x3, x2, [x19, #8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ; @EAP_EKE_MAX_HASH_LEN
	.comm	_EAP_EKE_MAX_DH_LEN,4,2         ; @EAP_EKE_MAX_DH_LEN
	.comm	_EAP_EKE_ENCR_AES128_CBC,8,3    ; @EAP_EKE_ENCR_AES128_CBC
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE: Failed to decrypt DHComponent"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: Decrypted peer DH pubkey"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-EKE: SharedSecret"

.subsections_via_symbols
