	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_configurator_add           ## -- Begin function dpp_configurator_add
	.p2align	4, 0x90
_dpp_configurator_add:                  ## @dpp_configurator_add
	.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, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_get_param
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_get_param
	movq	%rax, %r12
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_os_strlen
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %r13
	movq	%r13, %rdi
	callq	_os_malloc
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_dpp_keygen_configurator
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_dpp_next_configurator_id
	movl	%eax, (%rbx)
	movq	%rbx, %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_dl_list_add
	movl	(%rbx), %r15d
	jmp	LBB0_8
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %r15d
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	movq	%r12, %rdi
	callq	_str_clear_free
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bin_clear_free
	xorl	%edi, %edi
	callq	_dpp_configurator_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" curve="

L_.str.1:                               ## @.str.1
	.asciz	" key="

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_configurator_add           ; -- Begin function dpp_configurator_add
	.p2align	2
_dpp_configurator_add:                  ; @dpp_configurator_add
	.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
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_get_param
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_get_param
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_os_strlen
	cmp	w0, #0
	cinc	w8, w0, lt
	sbfx	x21, x8, #1, #31
	mov	x0, x21
	bl	_os_malloc
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_hexstr2bin
	tbz	x0, #63, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x22, #0
	mov	x21, #0
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_dpp_keygen_configurator
	cbz	x0, LBB0_6
; %bb.5:
	mov	x24, x0
	mov	x0, x23
	bl	_dpp_next_configurator_id
	str	w0, [x24]
	add	x1, x24, #4
	mov	x0, x23
	bl	_dl_list_add
	ldr	w23, [x24]
	b	LBB0_7
LBB0_6:
	mov	w23, #-1
LBB0_7:
	mov	x0, x19
	bl	_os_free
	mov	x0, x20
	bl	_str_clear_free
	mov	x0, x22
	mov	x1, x21
	bl	_bin_clear_free
	mov	x0, #0
	bl	_dpp_configurator_free
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" curve="

l_.str.1:                               ; @.str.1
	.asciz	" key="

.subsections_via_symbols
