	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crl_sign                       ## -- Begin function crl_sign
	.p2align	4, 0x90
_crl_sign:                              ## @crl_sign
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	$0, -72(%rbp)
	movq	_context@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-56(%rbp), %rsi
	callq	_hx509_lock_init
	movl	-56(%rbp), %edi
	leaq	24(%rbx), %rsi
	callq	_lock_strings
	movl	(%r13), %edi
	leaq	-52(%rbp), %rsi
	callq	_hx509_crl_alloc
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	(%rbx), %rsi
LBB0_4:
	movq	$0, -48(%rbp)
	movl	(%r13), %edi
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	movq	(%rbx), %r8
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_6:
	movl	(%r13), %edi
	leaq	-64(%rbp), %rsi
	callq	_hx509_query_alloc
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_8:
	movq	-64(%rbp), %rdi
	movq	_HX509_QUERY_OPTION_PRIVATE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hx509_query_match_option
	movl	(%r13), %edi
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_hx509_certs_find
	movl	%eax, %r12d
	movl	(%r13), %edi
	movq	-64(%rbp), %rsi
	callq	_hx509_query_free
	leaq	-48(%rbp), %rdi
	callq	_hx509_certs_free
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	callq	_parse_time
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movq	16(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movl	(%r13), %edi
	movl	-52(%rbp), %esi
	movl	%r12d, %edx
	callq	_hx509_crl_lifetime
LBB0_14:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movl	(%r13), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	(%r13), %edi
	leaq	L_.str.8(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_16:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.17:
	movl	%r15d, %r12d
	leaq	L_.str.9(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	-48(%rbp), %rsi
	movl	-56(%rbp), %edx
	movq	(%r14,%rbx,8), %rcx
	callq	_hx509_certs_append
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %edi
	movq	(%r14,%rbx,8), %r8
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_hx509_err
	jmp	LBB0_20
LBB0_21:
	movl	(%r13), %edi
	movl	-52(%rbp), %esi
	movq	-48(%rbp), %rdx
	callq	_hx509_crl_add_revoked_certs
	leaq	-48(%rbp), %rdi
	callq	_hx509_certs_free
	movl	(%r13), %edi
	movq	-72(%rbp), %rsi
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %rcx
	callq	_hx509_crl_sign
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	callq	_rk_dumpdata
LBB0_23:
	movl	-48(%rbp), %edi
	callq	_free
	movl	(%r13), %edi
	leaq	-52(%rbp), %rsi
	callq	_hx509_crl_free
	movq	-72(%rbp), %rdi
	callq	_hx509_cert_free
	movl	-56(%rbp), %edi
	callq	_hx509_lock_free
	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	"crl alloc"

L_.str.1:                               ## @.str.1
	.asciz	"signer missing"

L_.str.2:                               ## @.str.2
	.asciz	"hx509_certs_init: %s"

L_.str.3:                               ## @.str.3
	.asciz	"hx509_query_alloc: %d"

	.comm	_HX509_QUERY_OPTION_PRIVATE_KEY,4,2 ## @HX509_QUERY_OPTION_PRIVATE_KEY
L_.str.4:                               ## @.str.4
	.asciz	"no signer certificate found"

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

L_.str.6:                               ## @.str.6
	.asciz	"Invalid lifetime: %s"

L_.str.7:                               ## @.str.7
	.asciz	"MEMORY:revoked-certs"

L_.str.8:                               ## @.str.8
	.asciz	"hx509_certs_init: MEMORY cert"

L_.str.9:                               ## @.str.9
	.asciz	"hx509_certs_append: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crl_sign                       ; -- Begin function crl_sign
	.p2align	2
_crl_sign:                              ; @crl_sign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x23, _context@GOTPAGE
Lloh1:
	ldr	x23, [x23, _context@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #20
	bl	_hx509_lock_init
	ldr	w0, [sp, #20]
	add	x1, x19, #24
	bl	_lock_strings
	ldr	w0, [x23]
	add	x1, sp, #44
	bl	_hx509_crl_alloc
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	x1, [x19]
	cbnz	x1, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x1, [x19]
LBB0_4:
	str	xzr, [sp, #32]
	ldr	w0, [x23]
	add	x4, sp, #32
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	w0, [x23]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_6:
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_hx509_query_alloc
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	w0, [x23]
	str	x2, [sp]
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w1, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hx509_err
LBB0_8:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x8, _HX509_QUERY_OPTION_PRIVATE_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HX509_QUERY_OPTION_PRIVATE_KEY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_hx509_query_match_option
	ldr	w0, [x23]
	ldr	x1, [sp, #32]
	ldr	x2, [sp, #8]
	add	x3, sp, #24
	bl	_hx509_certs_find
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x1, [sp, #8]
	bl	_hx509_query_free
	add	x0, sp, #32
	bl	_hx509_certs_free
	cbz	w22, LBB0_10
; %bb.9:
	ldr	w0, [x23]
Lloh13:
	adrp	x3, l_.str.4@PAGE
Lloh14:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w1, #1
	mov	x2, x22
	bl	_hx509_err
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.11:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_parse_time
	mov	x22, x0
	tbz	w0, #31, LBB0_13
; %bb.12:
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldr	w0, [x23]
	ldr	w1, [sp, #44]
	mov	x2, x22
	bl	_hx509_crl_lifetime
LBB0_14:
	str	xzr, [sp, #32]
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x4, sp, #32
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_16
; %bb.15:
	mov	x2, x0
	ldr	w0, [x23]
Lloh21:
	adrp	x3, l_.str.8@PAGE
Lloh22:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_16:
	cmp	w21, #1
	b.lt	LBB0_21
; %bb.17:
	mov	w22, w21
Lloh23:
	adrp	x21, l_.str.9@PAGE
Lloh24:
	add	x21, x21, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x20, x20, #8
	subs	x22, x22, #1
	b.eq	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #20]
	ldr	x3, [x20]
	bl	_hx509_certs_append
	cbz	w0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x2, x0
	ldr	w0, [x23]
	ldr	x8, [x20]
	str	x8, [sp]
	mov	w1, #1
	mov	x3, x21
	bl	_hx509_err
	b	LBB0_18
LBB0_21:
	ldr	w0, [x23]
	ldr	w1, [sp, #44]
	ldr	x2, [sp, #32]
	bl	_hx509_crl_add_revoked_certs
	add	x0, sp, #32
	bl	_hx509_certs_free
	ldr	w0, [x23]
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #44]
	add	x3, sp, #32
	bl	_hx509_crl_sign
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_23
; %bb.22:
	ldp	w1, w2, [sp, #32]
	bl	_rk_dumpdata
LBB0_23:
	ldr	w0, [sp, #32]
	bl	_free
	ldr	w0, [x23]
	add	x1, sp, #44
	bl	_hx509_crl_free
	ldr	x0, [sp, #24]
	bl	_hx509_cert_free
	ldr	w0, [sp, #20]
	bl	_hx509_lock_free
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crl alloc"

l_.str.1:                               ; @.str.1
	.asciz	"signer missing"

l_.str.2:                               ; @.str.2
	.asciz	"hx509_certs_init: %s"

l_.str.3:                               ; @.str.3
	.asciz	"hx509_query_alloc: %d"

	.comm	_HX509_QUERY_OPTION_PRIVATE_KEY,4,2 ; @HX509_QUERY_OPTION_PRIVATE_KEY
l_.str.4:                               ; @.str.4
	.asciz	"no signer certificate found"

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

l_.str.6:                               ; @.str.6
	.asciz	"Invalid lifetime: %s"

l_.str.7:                               ; @.str.7
	.asciz	"MEMORY:revoked-certs"

l_.str.8:                               ; @.str.8
	.asciz	"hx509_certs_init: MEMORY cert"

l_.str.9:                               ; @.str.9
	.asciz	"hx509_certs_append: %s"

.subsections_via_symbols
