	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsa_private_key_import
_rsa_private_key_import:                ## @rsa_private_key_import
	.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
	cmpl	$128, %r8d
	jne	LBB0_4
## %bb.1:
	movq	%r9, %r15
	movl	%edi, %r14d
	movq	%rdx, -32(%rbp)
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	movq	%rcx, %rdx
	callq	_d2i_RSAPrivateKey
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_4:
	movq	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_HX509_PARSING_KEY_FAILED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_PARSING_KEY_FAILED,4,2   ## @HX509_PARSING_KEY_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse RSA key"

	.comm	_ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION,4,2 ## @ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION
	.comm	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED,4,2 ## @HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED
	.no_dead_strip	_rsa_private_key_import
.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_import
_rsa_private_key_import:                ; @rsa_private_key_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w4, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x5
	mov	x20, x0
	str	x2, [sp, #8]
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x3
	bl	_d2i_RSAPrivateKey
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x8, _ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x19, _HX509_PARSING_KEY_FAILED@GOTPAGE
Lloh7:
	ldr	x19, [x19, _HX509_PARSING_KEY_FAILED@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_PARSING_KEY_FAILED,4,2   ; @HX509_PARSING_KEY_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse RSA key"

	.comm	_ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION,4,2 ; @ASN1_OID_ID_PKCS1_SHA1WITHRSAENCRYPTION
	.comm	_HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED,4,2 ; @HX509_CRYPTO_KEY_FORMAT_UNSUPPORTED
	.no_dead_strip	_rsa_private_key_import
.subsections_via_symbols
