	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_getkeys
_mem_getkeys:                           ## @mem_getkeys
	.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	%rcx, %r13
	movq	%rdx, %r15
	movl	%edi, %r14d
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdi,8)
	leaq	1(%rdi), %rdi
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movl	$1, %edi
LBB0_4:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r13)
	movq	(%r15), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.5:
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	callq	__hx509_private_key_ref
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rcx,%rbx,8), %rdi
	leaq	1(%rbx), %rcx
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_10:
	incl	%ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	$0, (%rax,%rbx,8)
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.16:
	leal	-1(%rbx), %ecx
	leaq	(%rax,%rcx,8), %rdi
	callq	_hx509_private_key_free
	cmpl	$2, %ebx
	jl	LBB0_19
## %bb.17:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	shlq	$3, %rdi
	addq	(%r13), %rdi
	callq	_hx509_private_key_free
	decq	%rbx
	cmpl	$1, %ebx
	jg	LBB0_18
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.no_dead_strip	_mem_getkeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_getkeys
_mem_getkeys:                           ; @mem_getkeys
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x2]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x0, lsl #3]
	add	x0, x0, #1
	cbnz	x9, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #8
	bl	_calloc
	str	x0, [x20]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.6:
	mov	x9, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	mov	x0, x8
	bl	__hx509_private_key_ref
	ldr	x8, [x20]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x0, [x20]
	ldr	x8, [x0, x9]
	cbz	x8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x22, lsl #3
	ldr	x8, [x8, #8]
	add	x9, x22, #1
	cbnz	x8, LBB0_7
LBB0_10:
	add	w9, w22, #1
	b	LBB0_12
LBB0_11:
	mov	x9, #0
LBB0_12:
	mov	w8, #0
	str	xzr, [x0, x9, lsl #3]
LBB0_13:
	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
LBB0_14:
	cbz	w22, LBB0_18
; %bb.15:
	sub	w8, w22, #1
	add	x0, x0, w8, uxtw #3
	bl	_hx509_private_key_free
	cmp	w22, #2
	b.lt	LBB0_18
; %bb.16:
	and	x21, x22, #0xffffffff
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	sub	w9, w21, #2
	add	x0, x8, w9, uxtw #3
	bl	_hx509_private_key_free
	sub	x21, x21, #1
	cmp	w21, #1
	b.gt	LBB0_17
LBB0_18:
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w8, [x20]
	b	LBB0_13
	.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	"out of memory"

	.no_dead_strip	_mem_getkeys
.subsections_via_symbols
