	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_derive_ke
_dpp_derive_ke:                         ## @dpp_derive_ke
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DPP_MAX_NONCE_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, %r13
	movq	_DPP_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, %r12
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.4:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	80(%rbx), %rax
	movq	(%rax), %r14
	movl	76(%rbx), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_os_memcpy
	leaq	(,%r14,4), %rdi
	addq	%r13, %rdi
	movl	72(%rbx), %esi
	movq	%r14, %rdx
	callq	_os_memcpy
	movdqu	56(%rbx), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqa	%xmm0, -80(%rbp)
	movups	(%rbx), %xmm0
	movaps	%xmm0, -112(%rbp)
	movl	$2, %ecx
	cmpq	$0, 48(%rbx)
	je	LBB0_9
## %bb.5:
	cmpq	$0, 40(%rbx)
	je	LBB0_9
## %bb.6:
	cmpl	$0, 32(%rbx)
	je	LBB0_7
## %bb.8:
	movq	24(%rbx), %rax
	movq	%rax, -64(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -96(%rbp)
	movl	$3, %ecx
LBB0_9:
	addl	%r14d, %r14d
	subq	$8, %rsp
	leaq	-80(%rbp), %r8
	leaq	-112(%rbp), %r9
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	pushq	%r12
	callq	_dpp_hmac_vector
	addq	$16, %rsp
	movl	$-1, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_wpa_hexdump_key
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	movl	%r15d, %r9d
	callq	_dpp_hkdf_expand
	movl	%eax, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_os_memset
	testl	%r14d, %r14d
	js	LBB0_12
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_wpa_hexdump_key
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_MAX_NONCE_LEN,4,2          ## @DPP_MAX_NONCE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP Key"

	.comm	_DPP_MAX_HASH_LEN,4,2           ## @DPP_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: Mx/Nx not available - cannot derive ke"

L_.str.2:                               ## @.str.2
	.asciz	"DPP: Lx not available - cannot derive ke"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: PRK = HKDF-Extract(<>, IKM)"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: ke = HKDF-Expand(PRK, info, L)"

	.no_dead_strip	_dpp_derive_ke
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_derive_ke
_dpp_derive_ke:                         ; @dpp_derive_ke
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #64
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DPP_MAX_NONCE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPP_MAX_NONCE_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	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _DPP_MAX_HASH_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPP_MAX_HASH_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	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x23, #80]
	ldr	x24, [x8]
	ldr	w1, [x23, #76]
	mov	x0, x22
	mov	x2, x24
	bl	_os_memcpy
	add	x0, x22, x24, lsl #2
	ldr	w1, [x23, #72]
	mov	x2, x24
	bl	_os_memcpy
	ldp	x9, x8, [x23, #56]
	ldr	x10, [x23, #48]
	stp	x8, x9, [x29, #-80]
	ldr	q0, [x23]
	stur	q0, [x29, #-112]
	cbz	x10, LBB0_11
; %bb.3:
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	w8, [x23, #32]
	cbz	w8, LBB0_15
; %bb.5:
	ldp	x9, x8, [x23, #16]
	stur	x8, [x29, #-64]
	stur	x9, [x29, #-96]
	mov	w3, #3
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w3, #2
LBB0_12:
	lsl	w2, w24, #1
	sub	x4, x29, #80
	sub	x5, x29, #112
	mov	x0, x19
	mov	x1, x22
	mov	x6, x21
	bl	_dpp_hmac_vector
	tbnz	w0, #31, LBB0_8
; %bb.13:
Lloh21:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_wpa_hexdump_key
Lloh25:
	adrp	x3, l_.str@PAGE
Lloh26:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x2, x19
	mov	x4, x20
	mov	x5, x19
	bl	_dpp_hkdf_expand
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	bl	_os_memset
	tbnz	w22, #31, LBB0_8
; %bb.14:
	ldr	w0, [x23]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_9
LBB0_15:
Lloh29:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_MAX_NONCE_LEN,4,2          ; @DPP_MAX_NONCE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP Key"

	.comm	_DPP_MAX_HASH_LEN,4,2           ; @DPP_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: Mx/Nx not available - cannot derive ke"

l_.str.2:                               ; @.str.2
	.asciz	"DPP: Lx not available - cannot derive ke"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: PRK = HKDF-Extract(<>, IKM)"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: ke = HKDF-Expand(PRK, info, L)"

	.no_dead_strip	_dpp_derive_ke
.subsections_via_symbols
