	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_request_create                 ## -- Begin function request_create
	.p2align	4, 0x90
_request_create:                        ## @request_create
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdx), %r14
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	56(%r13), %edi
	movl	48(%r13), %edx
	movl	52(%r13), %esi
	leaq	-48(%rbp), %rcx
	callq	_get_key
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	_hx509_request_init
	movq	40(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	$0, -56(%rbp)
	movl	(%r12), %edi
	leaq	-56(%rbp), %rdx
	callq	_hx509_parse_name
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_3:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	-56(%rbp), %rdx
	callq	_hx509_request_set_name
	cmpq	$0, 32(%r13)
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_hx509_name_to_string
	movq	-72(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_hx509_name_free
LBB0_6:
	cmpl	$0, 16(%r13)
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	16(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	callq	__hx509_request_add_email
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_hx509_err
	jmp	LBB0_10
LBB0_11:
	cmpl	$0, (%r13)
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	callq	__hx509_request_add_dns_name
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r12), %edi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_hx509_err
	jmp	LBB0_15
LBB0_16:
	movl	(%r12), %edi
	movl	-48(%rbp), %esi
	leaq	-60(%rbp), %rdx
	callq	_hx509_private_key2SPKI
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_18:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	leaq	-60(%rbp), %r15
	movq	%r15, %rdx
	callq	_hx509_request_set_SubjectPublicKeyInfo
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_free_SubjectPublicKeyInfo
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.19:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rcx
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_hx509_err
LBB0_20:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	leaq	-56(%rbp), %rcx
	callq	__hx509_request_to_pkcs10
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_hx509_err
	leaq	-48(%rbp), %rdi
	callq	_hx509_private_key_free
	leaq	-44(%rbp), %rdi
	callq	_hx509_request_free
	jmp	LBB0_23
LBB0_22:
	leaq	-48(%rbp), %rdi
	callq	_hx509_private_key_free
	leaq	-44(%rbp), %rdi
	callq	_hx509_request_free
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	callq	_rk_dumpdata
LBB0_23:
	leaq	-56(%rbp), %rdi
	callq	_der_free_octet_string
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hx509_parse_name: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"hx509_request_add_email"

L_.str.3:                               ## @.str.3
	.asciz	"hx509_request_add_dns_name"

L_.str.4:                               ## @.str.4
	.asciz	"hx509_private_key2SPKI: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"hx509_request_set_SubjectPublicKeyInfo"

L_.str.6:                               ## @.str.6
	.asciz	"_hx509_request_to_pkcs10"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_request_create                 ; -- Begin function request_create
	.p2align	2
_request_create:                        ; @request_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	x19, [x2]
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	w1, w0, [x20, #52]
	ldr	w2, [x20, #48]
	add	x3, sp, #16
	bl	_get_key
Lloh0:
	adrp	x22, _context@GOTPAGE
Lloh1:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #20
	bl	_hx509_request_init
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_6
; %bb.1:
	str	xzr, [sp, #24]
	ldr	w0, [x22]
	add	x2, sp, #24
	bl	_hx509_parse_name
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	w0, [x22]
	ldr	w1, [sp, #20]
	ldr	x2, [sp, #24]
	bl	_hx509_request_set_name
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [sp, #24]
	mov	x1, sp
	bl	_hx509_name_to_string
	ldr	x1, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_5:
	add	x0, sp, #24
	bl	_hx509_name_free
LBB0_6:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x23, #0
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #16]
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [sp, #20]
	ldr	x8, [x20, #24]
	ldr	w2, [x8, x23, lsl #2]
	bl	__hx509_request_add_email
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x0
	ldr	w0, [x22]
	mov	w1, #1
	mov	x3, x21
	bl	_hx509_err
	b	LBB0_8
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x23, #0
Lloh8:
	adrp	x21, l_.str.3@PAGE
Lloh9:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [sp, #20]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x23, lsl #2]
	bl	__hx509_request_add_dns_name
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x2, x0
	ldr	w0, [x22]
	mov	w1, #1
	mov	x3, x21
	bl	_hx509_err
	b	LBB0_13
LBB0_16:
	ldr	w0, [x22]
	ldr	w1, [sp, #16]
	add	x2, sp, #12
	bl	_hx509_private_key2SPKI
	cbz	w0, LBB0_18
; %bb.17:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_18:
	ldr	w0, [x22]
	ldr	w1, [sp, #20]
	add	x2, sp, #12
	bl	_hx509_request_set_SubjectPublicKeyInfo
	mov	x20, x0
	add	x0, sp, #12
	bl	_free_SubjectPublicKeyInfo
	cbz	w20, LBB0_20
; %bb.19:
	ldr	w0, [x22]
Lloh12:
	adrp	x3, l_.str.5@PAGE
Lloh13:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w1, #1
	mov	x2, x20
	bl	_hx509_err
LBB0_20:
	ldr	w0, [x22]
	ldp	w2, w1, [sp, #16]
	add	x3, sp, #24
	bl	__hx509_request_to_pkcs10
	cbz	w0, LBB0_22
; %bb.21:
	mov	x2, x0
	ldr	w0, [x22]
Lloh14:
	adrp	x3, l_.str.6@PAGE
Lloh15:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
	add	x0, sp, #16
	bl	_hx509_private_key_free
	add	x0, sp, #20
	bl	_hx509_request_free
	b	LBB0_23
LBB0_22:
	add	x0, sp, #16
	bl	_hx509_private_key_free
	add	x0, sp, #20
	bl	_hx509_request_free
	ldp	w2, w1, [sp, #24]
	mov	x0, x19
	bl	_rk_dumpdata
LBB0_23:
	add	x0, sp, #24
	bl	_der_free_octet_string
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hx509_parse_name: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"hx509_request_add_email"

l_.str.3:                               ; @.str.3
	.asciz	"hx509_request_add_dns_name"

l_.str.4:                               ; @.str.4
	.asciz	"hx509_private_key2SPKI: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"hx509_request_set_SubjectPublicKeyInfo"

l_.str.6:                               ; @.str.6
	.asciz	"_hx509_request_to_pkcs10"

.subsections_via_symbols
