	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_generate_private_key_init ## -- Begin function _hx509_generate_private_key_init
	.p2align	4, 0x90
__hx509_generate_private_key_init:      ## @_hx509_generate_private_key_init
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	$0, (%rdx)
	movq	_ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
LBB0_2:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, (%rax)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ## @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"private key not an RSA key"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_generate_private_key_init ; -- Begin function _hx509_generate_private_key_init
	.p2align	2
__hx509_generate_private_key_init:      ; @_hx509_generate_private_key_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x2]
Lloh0:
	adrp	x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x20, _EINVAL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x20]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	str	x20, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ; @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"private key not an RSA key"

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

.subsections_via_symbols
