	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_rsn_derive_aek
_mesh_rsn_derive_aek:                   ## @mesh_rsn_derive_aek
	.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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	16(%rsi), %r12
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rcx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	addl	%ebx, %ebx
	addl	(%rcx), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_RSN_AUTH_KEY_MGMT_SAE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RSN_SELECTOR_PUT
	movq	_RSN_SELECTOR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	movq	%r14, %r13
	cmovsq	%r12, %r13
	cmovsq	%r14, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,4), %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_os_memcpy
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	(%r14,%rdx,4), %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	shll	$2, %ebx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	pushq	$4
	callq	_sha256_prf
	addq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RSN_SELECTOR_LEN,4,2           ## @RSN_SELECTOR_LEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_RSN_AUTH_KEY_MGMT_SAE,4,2      ## @RSN_AUTH_KEY_MGMT_SAE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AEK Derivation"

	.no_dead_strip	_mesh_rsn_derive_aek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_rsn_derive_aek
_mesh_rsn_derive_aek:                   ; @mesh_rsn_derive_aek
	.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	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x21, [x1, #16]
Lloh3:
	adrp	x23, _RSN_SELECTOR_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RSN_SELECTOR_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x24]
	add	w25, w8, w9, lsl #1
	lsl	x9, x25, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
Lloh9:
	adrp	x8, _RSN_AUTH_KEY_MGMT_SAE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSN_AUTH_KEY_MGMT_SAE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_RSN_SELECTOR_PUT
	ldrsw	x26, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_os_memcmp
	cmp	x0, #0
	csel	x23, x21, x20, lt
	csel	x1, x20, x21, lt
	add	x20, x22, x26, lsl #2
	ldr	w2, [x24]
	mov	x0, x20
	bl	_os_memcpy
	ldrsw	x2, [x24]
	add	x0, x20, x2, lsl #2
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	lsl	w4, w25, #2
	ldr	w5, [x19]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x22
	mov	w6, #4
	bl	_sha256_prf
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSN_SELECTOR_LEN,4,2           ; @RSN_SELECTOR_LEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_RSN_AUTH_KEY_MGMT_SAE,4,2      ; @RSN_AUTH_KEY_MGMT_SAE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AEK Derivation"

	.no_dead_strip	_mesh_rsn_derive_aek
.subsections_via_symbols
