	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_private_key2SPKI
_rsa_private_key2SPKI:                  ## @rsa_private_key2SPKI
	.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	%rdx, %r13
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_i2d_RSAPublicKey
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	shll	$3, %ebx
	movl	%ebx, 8(%r13)
	leaq	16(%r13), %rdi
	movq	_ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_.str.1(%rip), %rdx
	movl	$2, %ecx
	callq	_set_digest_alg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_hx509_set_error_string
	movq	(%r13), %rdi
	callq	_free
	movq	$0, (%r13)
	movl	$0, 8(%r13)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %r12d
	jmp	LBB0_5
LBB0_4:
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_i2d_RSAPublicKey
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc - out of memory"

	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ## @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"\005\000"

	.no_dead_strip	_rsa_private_key2SPKI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_private_key2SPKI
_rsa_private_key2SPKI:                  ; @rsa_private_key2SPKI
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [x21]
	mov	x1, #0
	bl	_i2d_RSAPublicKey
	mov	x22, x0
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	lsl	w8, w22, #3
	str	w8, [x19, #8]
	add	x0, x19, #16
Lloh0:
	adrp	x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w3, #2
	bl	_set_digest_alg
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_hx509_set_error_string
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	str	wzr, [x19, #8]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w22, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	str	x8, [sp, #8]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_i2d_RSAPublicKey
LBB0_5:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc - out of memory"

	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ; @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"\005\000"

	.no_dead_strip	_rsa_private_key2SPKI
.subsections_via_symbols
