	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_gen_keypair
_dpp_gen_keypair:                       ## @dpp_gen_keypair
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	callq	_OBJ_txt2nid
	movq	_NID_undef@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_2:
	movl	%eax, %edi
	callq	_EC_KEY_new_by_curve_name
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_OPENSSL_EC_NAMED_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EC_KEY_set_asn1_flag
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_set1_EC_KEY
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_EVP_PKEY_keygen_init
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_EVP_PKEY_keygen
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.11:
	movq	_wpa_debug_show_keys@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	-32(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_dpp_debug_print_key
	jmp	LBB0_13
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$0, -32(%rbp)
LBB0_13:
	movq	%rbx, %rdi
	callq	_EC_KEY_free
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	-32(%rbp), %rbx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Generating a keypair"

	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"DPP: Unsupported curve %s"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"DPP: Failed to generate EC_KEY parameters"

	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ## @OPENSSL_EC_NAMED_CURVE
L_.str.3:                               ## @.str.3
	.asciz	"DPP: Failed to generate EVP_PKEY parameters"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: Failed to generate EC key"

	.comm	_wpa_debug_show_keys,8,3        ## @wpa_debug_show_keys
L_.str.5:                               ## @.str.5
	.asciz	"Own generated key"

	.no_dead_strip	_dpp_gen_keypair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_gen_keypair
_dpp_gen_keypair:                       ; @dpp_gen_keypair
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	bl	_OBJ_txt2nid
Lloh5:
	adrp	x8, _NID_undef@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_14
LBB0_2:
	bl	_EC_KEY_new_by_curve_name
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.3:
Lloh13:
	adrp	x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EC_KEY_set_asn1_flag
	bl	_EVP_PKEY_new
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_EVP_PKEY_set1_EC_KEY
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.6:
	mov	x0, x21
	bl	_EVP_PKEY_keygen_init
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.7:
	add	x1, sp, #8
	mov	x0, x21
	bl	_EVP_PKEY_keygen
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.8:
Lloh16:
	adrp	x8, _wpa_debug_show_keys@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wpa_debug_show_keys@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x1, [sp, #8]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dpp_debug_print_key
	b	LBB0_13
LBB0_10:
Lloh21:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
	mov	x20, #0
	b	LBB0_13
LBB0_12:
Lloh31:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	str	xzr, [sp, #8]
LBB0_13:
	mov	x0, x19
	bl	_EC_KEY_free
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	x0, x21
	bl	_EVP_PKEY_CTX_free
	ldr	x0, [sp, #8]
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Generating a keypair"

	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"DPP: Unsupported curve %s"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"DPP: Failed to generate EC_KEY parameters"

	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ; @OPENSSL_EC_NAMED_CURVE
l_.str.3:                               ; @.str.3
	.asciz	"DPP: Failed to generate EVP_PKEY parameters"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: Failed to generate EC key"

	.comm	_wpa_debug_show_keys,8,3        ; @wpa_debug_show_keys
l_.str.5:                               ; @.str.5
	.asciz	"Own generated key"

	.no_dead_strip	_dpp_gen_keypair
.subsections_via_symbols
