	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_collector_collect_private_keys ## -- Begin function _hx509_collector_collect_private_keys
	.p2align	4, 0x90
__hx509_collector_collect_private_keys: ## @_hx509_collector_collect_private_keys
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	$0, (%rdx)
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	8(%r12), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	movl	$1, %edi
	jmp	LBB0_10
LBB0_4:
	andq	$-4, %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rbx
	movq	8(%rcx,%rsi,8), %rax
	cmpq	$1, (%rbx)
	sbbq	$-1, %rdi
	cmpq	$1, (%rax)
	sbbq	$-1, %rdi
	movq	16(%rcx,%rsi,8), %rax
	cmpq	$1, (%rax)
	sbbq	$-1, %rdi
	movq	24(%rcx,%rsi,8), %rax
	cmpq	$1, (%rax)
	sbbq	$-1, %rdi
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rax
	cmpq	$1, (%rax)
	sbbq	$-1, %rdi
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_8
LBB0_9:
	incq	%rdi
LBB0_10:
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rax, %rcx
	movq	(%r12), %r8
	xorl	%eax, %eax
	testq	%r8, %r8
	je	LBB0_12
## %bb.13:
	movq	8(%r12), %rdi
	cmpq	$1, %r8
	jne	LBB0_16
## %bb.14:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_22:
	testb	$1, %r8b
	je	LBB0_25
## %bb.23:
	movq	(%rdi,%rcx,8), %rsi
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.24:
	movq	(%r14), %rdi
	movq	%rsi, (%rdi,%rdx,8)
	incq	%rdx
	movq	8(%r12), %rsi
	movq	(%rsi,%rcx,8), %rcx
	movq	$0, (%rcx)
LBB0_25:
	movq	(%r14), %rcx
	jmp	LBB0_26
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %eax
	jmp	LBB0_27
LBB0_12:
	xorl	%edx, %edx
LBB0_26:
	movq	$0, (%rcx,%rdx,8)
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rbx
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rdi
	movq	%rbx, (%rdi,%rdx,8)
	incq	%rdx
	movq	8(%r12), %rdi
	movq	(%rdi,%rcx,8), %rbx
	movq	$0, (%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rdi,%rcx,8), %rbx
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r14), %rdi
	movq	%rbx, (%rdi,%rdx,8)
	incq	%rdx
	movq	8(%r12), %rdi
	movq	8(%rdi,%rcx,8), %rbx
	movq	$0, (%rbx)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc - out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_collector_collect_private_keys ; -- Begin function _hx509_collector_collect_private_keys
	.p2align	2
__hx509_collector_collect_private_keys: ; @_hx509_collector_collect_private_keys
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [x2]
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	x10, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #1
	b	LBB0_10
LBB0_4:
	mov	x13, #0
	mov	x14, #0
	mov	x12, #0
	mov	x11, #0
	and	x10, x8, #0xfffffffffffffffc
	add	x15, x9, #16
	mov	x16, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x17, x0, [x15, #-16]
	ldp	x1, x2, [x15], #32
	ldr	x17, [x17]
	ldr	x0, [x0]
	ldr	x1, [x1]
	ldr	x2, [x2]
	cmp	x17, #0
	cinc	x13, x13, ne
	cmp	x0, #0
	cinc	x14, x14, ne
	cmp	x1, #0
	cinc	x12, x12, ne
	cmp	x2, #0
	cinc	x11, x11, ne
	subs	x16, x16, #4
	b.ne	LBB0_5
; %bb.6:
	add	x13, x14, x13
	add	x12, x12, x13
	add	x11, x11, x12
	cmp	x8, x10
	b.eq	LBB0_9
LBB0_7:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	x10, [x10]
	cmp	x10, #0
	cinc	x11, x11, ne
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	add	x0, x11, #1
LBB0_10:
	mov	w1, #8
	bl	_calloc
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.11:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.12:
	mov	x9, #0
	mov	x10, #0
	ldr	x11, [x20, #8]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x10, lsl #3]
	ldr	x12, [x12]
	cbz	x12, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x19]
	str	x12, [x11, x9, lsl #3]
	add	x9, x9, #1
	ldr	x11, [x20, #8]
	ldr	x12, [x11, x10, lsl #3]
	str	xzr, [x12]
	b	LBB0_13
LBB0_16:
	ldr	x0, [x19]
	b	LBB0_19
LBB0_17:
Lloh0:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w8, [x19]
	b	LBB0_20
LBB0_18:
	mov	x9, #0
LBB0_19:
	mov	w8, #0
	str	xzr, [x0, x9, lsl #3]
LBB0_20:
	mov	x0, x8
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc - out of memory"

.subsections_via_symbols
