	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_collector_private_key_add ## -- Begin function _hx509_collector_private_key_add
	.p2align	4, 0x90
__hx509_collector_private_key_add:      ## @_hx509_collector_private_key_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rdi
	movl	(%r15), %eax
	leal	8(,%rax,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, 8(%r15)
	leaq	16(%r13), %rsi
	movq	%r12, %rdi
	callq	_copy_AlgorithmIdentifier
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rcx
LBB0_6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
LBB0_7:
	movq	%r13, %rdi
	callq	_free_private_key
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	%r13, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %ebx
	jmp	LBB0_16
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r14, 8(%r13)
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	movq	%r13, %rsi
	callq	_der_copy_octet_string
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	_HX509_KEY_FORMAT_DER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %r9
	addq	$8, %r9
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_hx509_parse_private_key
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_11
LBB0_14:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_15:
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movq	%r13, (%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to copy AlgorithmIdentifier"

	.comm	_HX509_KEY_FORMAT_DER,4,2       ## @HX509_KEY_FORMAT_DER
L_.str.2:                               ## @.str.2
	.asciz	"Failed to copy localKeyId"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__hx509_collector_private_key_add ; -- Begin function _hx509_collector_private_key_add
	.p2align	2
__hx509_collector_private_key_add:      ; @_hx509_collector_private_key_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x21, #8]
	ldr	w8, [x21]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_realloc
	cbz	x0, LBB0_7
; %bb.2:
	str	x0, [x21, #8]
	add	x1, x19, #16
	mov	x0, x24
	bl	_copy_AlgorithmIdentifier
	cbz	w0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh0:
	adrp	x3, l_.str.1@PAGE
Lloh1:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_hx509_set_error_string
LBB0_5:
	mov	x0, x19
	bl	_free_private_key
	b	LBB0_16
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_16
LBB0_7:
	mov	x0, x19
	bl	_free
Lloh5:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w23, [x19]
	b	LBB0_16
LBB0_8:
	cbz	x26, LBB0_13
; %bb.9:
	str	x26, [x19, #8]
LBB0_10:
	cbz	x22, LBB0_14
; %bb.11:
	mov	x0, x22
	mov	x1, x19
	bl	_der_copy_octet_string
	cbz	w0, LBB0_15
; %bb.12:
	mov	x23, x0
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	ldp	w3, w2, [x25]
Lloh11:
	adrp	x8, _HX509_KEY_FORMAT_DER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HX509_KEY_FORMAT_DER@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x5, x19, #8
	mov	x0, x20
	mov	x1, x24
	bl	_hx509_parse_private_key
	mov	x23, x0
	cbnz	w0, LBB0_5
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_15:
	mov	w23, #0
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	str	x19, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x21]
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to copy AlgorithmIdentifier"

	.comm	_HX509_KEY_FORMAT_DER,4,2       ; @HX509_KEY_FORMAT_DER
l_.str.2:                               ; @.str.2
	.asciz	"Failed to copy localKeyId"

.subsections_via_symbols
