	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_keygen_configurator        ## -- Begin function dpp_keygen_configurator
	.p2align	4, 0x90
_dpp_keygen_configurator:               ## @dpp_keygen_configurator
	.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	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	callq	_dpp_get_curve_name
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	testq	%r13, %r13
	je	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_dpp_set_keypair
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_3:
	movq	_dpp_curves@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	testq	%r13, %r13
	jne	LBB0_5
LBB0_8:
	movq	%rax, %rdi
	callq	_dpp_gen_keypair
LBB0_9:
	movq	%r12, %r15
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movl	$1, (%rbx)
	movl	%eax, %edi
	movl	$1, %esi
	callq	_dpp_get_pubkey_point
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_wpabuf_head
	movq	%rax, -56(%rbp)
	movq	%r12, %rdi
	callq	_wpabuf_len
	movq	%rax, -64(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$1, %edi
	movq	%r15, %rcx
	callq	_sha256_vector
	testq	%rax, %rax
	js	LBB0_15
## %bb.17:
	shll	$2, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_base64_url_encode
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_11
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_os_free
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_16:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	movq	%rbx, %rdi
	callq	_dpp_configurator_free
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_dpp_curves,8,3                 ## @dpp_curves
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Unsupported curve: %s"

L_.str.1:                               ## @.str.1
	.asciz	"DPP: Failed to extract C-sign-key"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"DPP: Failed to derive kid for C-sign-key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_keygen_configurator        ; -- Begin function dpp_keygen_configurator
	.p2align	2
_dpp_keygen_configurator:               ; @dpp_keygen_configurator
	.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, #32
	mov	x21, x2
	mov	x22, 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, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA256_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	lsl	x8, x24, #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
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	cbz	x23, LBB0_8
; %bb.2:
	mov	x0, x23
	bl	_dpp_get_curve_name
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.3:
	cbz	x22, LBB0_9
LBB0_4:
	add	x0, x19, #24
	mov	x1, x22
	mov	x2, x21
	bl	_dpp_set_keypair
	str	w0, [x19, #16]
	cbz	w0, LBB0_10
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	mov	w1, #1
	bl	_dpp_get_pubkey_point
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.6:
	mov	x0, x21
	bl	_wpabuf_head
	stur	x0, [x29, #-64]
	mov	x0, x21
	bl	_wpabuf_len
	stur	x0, [x29, #-72]
	sub	x1, x29, #64
	sub	x2, x29, #72
	mov	w0, #1
	mov	x3, x20
	bl	_sha256_vector
	tbnz	x0, #63, LBB0_13
; %bb.7:
	lsl	w1, w24, #2
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_base64_url_encode
	str	x0, [x19, #8]
	cbnz	x0, LBB0_16
	b	LBB0_15
LBB0_8:
Lloh8:
	adrp	x8, _dpp_curves@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dpp_curves@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	str	x0, [x19, #24]
	cbnz	x22, LBB0_4
LBB0_9:
	bl	_dpp_gen_keypair
	str	w0, [x19, #16]
	cbnz	w0, LBB0_5
LBB0_10:
	mov	x21, #0
	b	LBB0_15
LBB0_11:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x23, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
	b	LBB0_17
LBB0_12:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_wpa_printf
LBB0_15:
	mov	x0, x19
	bl	_dpp_configurator_free
	mov	x19, #0
LBB0_16:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_dpp_curves,8,3                 ; @dpp_curves
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Unsupported curve: %s"

l_.str.1:                               ; @.str.1
	.asciz	"DPP: Failed to extract C-sign-key"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"DPP: Failed to derive kid for C-sign-key"

.subsections_via_symbols
