	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_generate_private_key    ## -- Begin function _hx509_generate_private_key
	.p2align	4, 0x90
__hx509_generate_private_key:           ## @_hx509_generate_private_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	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	$0, (%rdx)
	movl	(%rsi), %edi
	callq	_hx509_find_private_alg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_hx509_private_key_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_hx509_set_error_string
	movl	%r14d, %r13d
	jmp	LBB0_6
LBB0_1:
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	movq	_HX509_SIG_ALG_NO_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_4:
	movq	(%r15), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_hx509_private_key_free
	movl	%ebx, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_SIG_ALG_NO_SUPPORTED,4,2 ## @HX509_SIG_ALG_NO_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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    ; -- Begin function _hx509_generate_private_key
	.p2align	2
__hx509_generate_private_key:           ; @_hx509_generate_private_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [x2]
	ldr	w0, [x1]
	bl	_hx509_find_private_alg
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_hx509_private_key_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_hx509_set_error_string
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_hx509_clear_error_string
Lloh2:
	adrp	x8, _HX509_SIG_ALG_NO_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HX509_SIG_ALG_NO_SUPPORTED@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x23]
	ldr	x2, [x19]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_hx509_private_key_free
LBB0_6:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_SIG_ALG_NO_SUPPORTED,4,2 ; @HX509_SIG_ALG_NO_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

.subsections_via_symbols
