	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_key
_get_key:                               ## @get_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$65537, %esi                    ## imm = 0x10001
	callq	_BN_set_word
	testl	%r12d, %r12d
	movl	$1024, %ebx                     ## imm = 0x400
	cmovnel	%r12d, %ebx
	xorl	%eax, %eax
	callq	_RSA_new
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_RSA_generate_key_ex
	cmpl	$1, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	movq	%r13, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_i2d_RSAPrivateKey
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_11:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_i2d_RSAPrivateKey
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_rk_dumpdata
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_memset
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_RSA_free
	jmp	LBB0_14
LBB0_12:
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_private_key
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_16:
	addq	$8, %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	"no key argument, don't know here to store key"

L_.str.1:                               ## @.str.1
	.asciz	"rsa"

L_.str.2:                               ## @.str.2
	.asciz	"can only handle rsa keys for now"

L_.str.3:                               ## @.str.3
	.asciz	"RSA_new failed"

L_.str.4:                               ## @.str.4
	.asciz	"out of memory"

L_.str.5:                               ## @.str.5
	.asciz	"no private key"

L_.str.6:                               ## @.str.6
	.asciz	"read_private_key"

	.no_dead_strip	_get_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_key
_get_key:                               ; @get_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	cbz	x1, LBB0_12
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	cbnz	x20, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	bl	_BN_new
	mov	x22, x0
	mov	w1, #65537
	bl	_BN_set_word
	mov	w8, #1024
	cmp	w21, #0
	csel	w23, w8, w21, eq
	bl	_RSA_new
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_7:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, #0
	bl	_RSA_generate_key_ex
	cmp	w0, #1
	b.eq	LBB0_9
; %bb.8:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_9:
	mov	x0, x22
	bl	_BN_free
	mov	x0, x21
	mov	x1, #0
	bl	_i2d_RSAPrivateKey
	mov	x22, x0
	bl	_malloc
	mov	x23, x0
	str	x0, [sp, #8]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_11:
	add	x1, sp, #8
	mov	x0, x21
	bl	_i2d_RSAPrivateKey
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_rk_dumpdata
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	mov	x0, x23
	bl	_free
	mov	x0, x21
	bl	_RSA_free
	b	LBB0_14
LBB0_12:
	cbnz	x20, LBB0_14
; %bb.13:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_read_private_key
	cbz	w0, LBB0_16
; %bb.15:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no key argument, don't know here to store key"

l_.str.1:                               ; @.str.1
	.asciz	"rsa"

l_.str.2:                               ; @.str.2
	.asciz	"can only handle rsa keys for now"

l_.str.3:                               ; @.str.3
	.asciz	"RSA_new failed"

l_.str.4:                               ; @.str.4
	.asciz	"out of memory"

l_.str.5:                               ; @.str.5
	.asciz	"no private key"

l_.str.6:                               ; @.str.6
	.asciz	"read_private_key"

	.no_dead_strip	_get_key
.subsections_via_symbols
