	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_pkey
_create_pkey:                           ## @create_pkey
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, 8(%rax)
	movq	%r13, (%rax)
	movl	(%r12), %edi
	callq	_RSA_new_method
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_RSA_set_ex_data
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_BN_hex2bn
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_BN_hex2bn
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_RSA_set0_key
	movq	_RSA_FLAG_EXT_PKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_RSA_set_flags
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_EVP_PKEY_set1_RSA
	movq	%r12, %rdi
	callq	_RSA_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	jmp	LBB0_3
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
LBB0_3:
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to parse e:%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to parse n:%s\n"

	.comm	_RSA_FLAG_EXT_PKEY,4,2          ## @RSA_FLAG_EXT_PKEY
	.no_dead_strip	_create_pkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_pkey
_create_pkey:                           ; @create_pkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	stp	x23, x20, [x0]
	ldr	w0, [x20]
	bl	_RSA_new_method
	mov	x20, x0
	mov	w1, #0
	mov	x2, x22
	bl	_RSA_set_ex_data
	add	x0, sp, #24
	mov	x1, x21
	bl	_BN_hex2bn
	cbz	x0, LBB0_5
; %bb.2:
	add	x0, sp, #16
	mov	x1, x19
	bl	_BN_hex2bn
	cbz	x0, LBB0_6
; %bb.3:
	ldp	x1, x2, [sp, #16]
	mov	x0, x20
	mov	x3, #0
	bl	_RSA_set0_key
Lloh0:
	adrp	x8, _RSA_FLAG_EXT_PKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSA_FLAG_EXT_PKEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RSA_set_flags
	bl	_EVP_PKEY_new
	mov	x19, x0
	mov	x1, x20
	bl	_EVP_PKEY_set1_RSA
	mov	x0, x20
	bl	_RSA_free
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_4:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	bl	_abort
LBB0_5:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	bl	_abort
LBB0_6:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to parse e:%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to parse n:%s\n"

	.comm	_RSA_FLAG_EXT_PKEY,4,2          ; @RSA_FLAG_EXT_PKEY
	.no_dead_strip	_create_pkey
.subsections_via_symbols
