	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_private_key_export
_rsa_private_key_export:                ## @rsa_private_key_export
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rcx)
	movl	$0, 8(%rcx)
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	(%rsi), %edi
	xorl	%esi, %esi
	callq	_i2d_RSAPrivateKey
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%r12d, 8(%rbx)
	movq	%rax, -40(%rbp)
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_i2d_RSAPrivateKey
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rcx
LBB0_3:
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Private key is not exportable"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"malloc out of memory"

	.comm	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED,4,2 ## @HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED
	.no_dead_strip	_rsa_private_key_export
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsa_private_key_export
_rsa_private_key_export:                ; @rsa_private_key_export
	.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
	str	xzr, [x3]
	str	wzr, [x3, #8]
	cmp	w2, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	mov	x1, #0
	bl	_i2d_RSAPrivateKey
	cmp	w0, #0
	b.le	LBB0_5
; %bb.2:
	mov	x22, x0
	bl	_malloc
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.3:
	str	w22, [x21, #8]
	str	x0, [sp, #8]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_i2d_RSAPrivateKey
	mov	w20, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_hx509_set_error_string
LBB0_8:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Private key is not exportable"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"malloc out of memory"

	.comm	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED,4,2 ; @HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED
	.no_dead_strip	_rsa_private_key_export
.subsections_via_symbols
