	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_pkex_derive_z
_dpp_pkex_derive_z:                     ## @dpp_pkex_derive_z
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %r14d
	movq	24(%rbp), %r12
	movq	32(%rbp), %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DPP_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_os_memset
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_dpp_hmac
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	movq	16(%rbp), %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_wpa_hexdump_key
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_os_strlen
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rcx
	addq	%rcx, %rax
	leaq	(%rax,%rbx,2), %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r13), %rdx
	movq	%rax, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r13), %rdx
	movl	%r14d, %r15d
	movq	%r12, %r14
	addq	%rdx, %r14
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r13), %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_os_memcpy
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_os_memcpy
	addq	%r14, %rbx
	movq	16(%rbp), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_os_memcpy
	cmpl	$64, %r15d
	je	LBB0_7
## %bb.3:
	cmpl	$48, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	movl	$-1, %r14d
	cmpl	$32, %r15d
	movq	40(%rbp), %r13
	jne	LBB0_9
## %bb.5:
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	pushq	$32
	callq	_hmac_sha256_kdf
	jmp	LBB0_8
LBB0_7:
	subq	$8, %rsp
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$64, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	40(%rbp), %r13
	movq	%r13, %r9
	pushq	$64
	callq	_hmac_sha512_kdf
	jmp	LBB0_8
LBB0_6:
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	$48, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	40(%rbp), %r13
	movq	%r13, %r9
	pushq	$48
	callq	_hmac_sha384_kdf
LBB0_8:
	addq	$16, %rsp
	movl	%eax, %r14d
LBB0_9:
	movq	%r12, %rdi
	callq	_os_free
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	48(%rbp), %ebx
	movl	%ebx, %edx
	callq	_os_memset
	testl	%r14d, %r14d
	js	LBB0_10
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump_key
	jmp	LBB0_12
LBB0_10:
	movl	$-1, %r15d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_MAX_HASH_LEN,4,2           ## @DPP_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: PRK = HKDF-Extract(<>, IKM)"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.1:                               ## @.str.1
	.asciz	"DPP: z = HKDF-Expand(PRK, info, L)"

	.no_dead_strip	_dpp_pkex_derive_z
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_pkex_derive_z
_dpp_pkex_derive_z:                     ; @dpp_pkex_derive_z
	.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, #32
	mov	x23, x7
	mov	x22, x6
	mov	x24, x5
	stp	x2, x4, [x29, #-104]            ; 16-byte Folded Spill
	mov	x26, x3
	mov	x21, x1
	mov	x25, x0
	ldr	w19, [x29, #32]
	ldr	x28, [x29, #16]
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, _DPP_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPP_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x27, x9, x12
	mov	sp, x27
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
	mov	x0, x27
	mov	w1, #0
	mov	x2, x19
	bl	_os_memset
	mov	x0, x19
	mov	x1, x27
	mov	x2, x19
	mov	x3, x23
	mov	x4, x28
	mov	x5, x20
	bl	_dpp_hmac
	tbnz	x0, #63, LBB0_12
; %bb.1:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump_key
Lloh15:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
	ldrsw	x23, [x27]
	mov	x0, x22
	bl	_os_strlen
	add	x8, x24, x26
	add	x8, x8, x0
	add	x28, x8, x23, lsl #1
	mov	x0, x28
	bl	_os_malloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x23, x0
	ldr	x8, [x29, #24]
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	ldrsw	x2, [x27]
	mov	x1, x25
	bl	_os_memcpy
	ldrsw	x2, [x27]
	add	x25, x23, x2
	mov	x0, x25
	mov	x1, x21
	bl	_os_memcpy
	ldrsw	x8, [x27]
	add	x21, x25, x8
	mov	x0, x21
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x26
	bl	_os_memcpy
	add	x21, x21, x26
	mov	x0, x21
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x2, x24
	bl	_os_memcpy
	add	x21, x21, x24
	mov	x0, x22
	bl	_os_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_os_memcpy
	cmp	w19, #64
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #48
	b.eq	LBB0_7
; %bb.4:
	cmp	w19, #32
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	mov	w1, #32
	mov	x2, #0
	mov	x3, x23
	mov	x4, x28
	ldur	x22, [x29, #-112]               ; 8-byte Folded Reload
	mov	x5, x22
	mov	w6, #32
	bl	_hmac_sha256_kdf
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	w1, #64
	mov	x2, #0
	mov	x3, x23
	mov	x4, x28
	ldur	x22, [x29, #-112]               ; 8-byte Folded Reload
	mov	x5, x22
	mov	w6, #64
	bl	_hmac_sha512_kdf
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	w1, #48
	mov	x2, #0
	mov	x3, x23
	mov	x4, x28
	ldur	x22, [x29, #-112]               ; 8-byte Folded Reload
	mov	x5, x22
	mov	w6, #48
	bl	_hmac_sha384_kdf
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	w21, #-1
	ldur	x22, [x29, #-112]               ; 8-byte Folded Reload
LBB0_10:
	mov	x0, x23
	bl	_os_free
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_os_memset
	tbnz	w21, #31, LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_MAX_HASH_LEN,4,2           ; @DPP_MAX_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: PRK = HKDF-Extract(<>, IKM)"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.1:                               ; @.str.1
	.asciz	"DPP: z = HKDF-Expand(PRK, info, L)"

	.no_dead_strip	_dpp_pkex_derive_z
.subsections_via_symbols
