	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cert
_add_cert:                              ## @add_cert
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_CK_TRUE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -42(%rbp)
	movq	_CK_FALSE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)
	movq	_CKC_X_509@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -54(%rbp)
	movq	_CKR_GENERAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_st_logf
	movq	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	movups	-96(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -112(%rbp)
	leaq	-112(%rbp), %rdx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_hx509_cert_binary
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_hx509_cert_get_issuer
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movl	-48(%rbp), %edi
	leaq	-96(%rbp), %rsi
	callq	_hx509_name_binary
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_hx509_name_free
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.3:
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	callq	_hx509_cert_get_subject
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movl	-48(%rbp), %edi
	leaq	-80(%rbp), %rsi
	callq	_hx509_name_binary
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_hx509_name_free
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.5:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	%r13d, %esi
	callq	_hx509_cert_get_SPKI_AlgorithmIdentifier
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movq	_CKR_DEVICE_MEMORY@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rbx
LBB0_14:
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_st_logf
LBB0_16:
	movq	-112(%rbp), %rdi
	callq	_hx509_xfree
	xorl	%edi, %edi
	callq	_hx509_xfree
	movq	-96(%rbp), %rdi
	callq	_hx509_xfree
	movq	-80(%rbp), %rdi
	callq	_hx509_xfree
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CKK_RSA@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -43(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_free_AlgorithmIdentifier
	movq	_CKO_CERTIFICATE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -48(%rbp)
	xorl	%eax, %eax
	callq	_add_st_object
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_hx509_cert_ref
	movq	%rax, (%r12)
	movq	_CKA_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-42(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-41(%rbp), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_MODIFIABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_CERTIFICATE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-54(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_SUBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rcx
	movl	-72(%rbp), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	_CKA_ISSUER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rcx
	movl	-88(%rbp), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	_CKA_SERIAL_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_add_object_attribute
	movq	_CKA_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-112(%rbp), %rcx
	movl	-104(%rbp), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	_CKA_TRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-41(%rbp), %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	%r12, %rdi
	callq	_OBJECT_ID
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_st_logf
	movq	_CKO_PUBLIC_KEY@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -48(%rbp)
	xorl	%eax, %eax
	callq	_add_st_object
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_hx509_cert_ref
	movq	%rax, (%r12)
	movq	_CKA_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-42(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-41(%rbp), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_MODIFIABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_KEY_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-43(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_START_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_add_cert.empty(%rip), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_END_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_DERIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-41(%rbp), %rbx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKM_RSA_X_509@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -44(%rbp)
	movq	_CKA_KEY_GEN_MECHANISM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_SUBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rcx
	movl	-72(%rbp), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	_CKA_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-42(%rbp), %rbx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_VERIFY_RECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-41(%rbp), %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_TRUSTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movsbl	-43(%rbp), %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	callq	_add_pubkey_info
	movq	%r12, %rdi
	callq	_OBJECT_ID
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_st_logf
	movl	%r13d, %edi
	callq	_hx509_cert_have_private_key
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_CKO_PRIVATE_KEY@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -48(%rbp)
	xorl	%eax, %eax
	callq	_add_st_object
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	%rax, %r12
	movl	%r13d, %edi
	callq	_hx509_cert_ref
	movq	%rax, (%r12)
	movq	_CKA_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-42(%rbp), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_MODIFIABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-41(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_LABEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_KEY_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-43(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_add_object_attribute
	movq	_CKA_START_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_add_cert.empty(%rip), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_END_DATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_DERIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-41(%rbp), %r15
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKM_RSA_X_509@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -44(%rbp)
	movq	_CKA_KEY_GEN_MECHANISM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_SUBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rcx
	movl	-72(%rbp), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	_CKA_SENSITIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	leaq	-42(%rbp), %rbx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_SECONDARY_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movb	$0, -53(%rbp)
	movq	_CKA_AUTH_PIN_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-53(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_SIGN_RECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_UNWRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_EXTRACTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movq	_CKA_NEVER_EXTRACTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_add_object_attribute
	movsbl	-43(%rbp), %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	callq	_add_pubkey_info
LBB0_12:
	movq	_CKR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_add_cert.empty,1,0 ## @add_cert.empty
	.comm	_CK_TRUE,1,0                    ## @CK_TRUE
	.comm	_CK_FALSE,1,0                   ## @CK_FALSE
	.comm	_CKC_X_509,1,0                  ## @CKC_X_509
	.comm	_CKR_GENERAL_ERROR,8,3          ## @CKR_GENERAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding certificate\n"

	.comm	_context,4,2                    ## @context
	.comm	_CKR_DEVICE_MEMORY,8,3          ## @CKR_DEVICE_MEMORY
	.comm	_CKK_RSA,1,0                    ## @CKK_RSA
	.comm	_CKO_CERTIFICATE,1,0            ## @CKO_CERTIFICATE
	.comm	_CKA_CLASS,4,2                  ## @CKA_CLASS
	.comm	_CKA_TOKEN,4,2                  ## @CKA_TOKEN
	.comm	_CKA_PRIVATE,4,2                ## @CKA_PRIVATE
	.comm	_CKA_MODIFIABLE,4,2             ## @CKA_MODIFIABLE
	.comm	_CKA_LABEL,4,2                  ## @CKA_LABEL
	.comm	_CKA_CERTIFICATE_TYPE,4,2       ## @CKA_CERTIFICATE_TYPE
	.comm	_CKA_ID,4,2                     ## @CKA_ID
	.comm	_CKA_SUBJECT,4,2                ## @CKA_SUBJECT
	.comm	_CKA_ISSUER,4,2                 ## @CKA_ISSUER
	.comm	_CKA_SERIAL_NUMBER,4,2          ## @CKA_SERIAL_NUMBER
	.comm	_CKA_VALUE,4,2                  ## @CKA_VALUE
	.comm	_CKA_TRUSTED,4,2                ## @CKA_TRUSTED
L_.str.1:                               ## @.str.1
	.asciz	"add cert ok: %lx\n"

	.comm	_CKO_PUBLIC_KEY,1,0             ## @CKO_PUBLIC_KEY
	.comm	_CKA_KEY_TYPE,4,2               ## @CKA_KEY_TYPE
	.comm	_CKA_START_DATE,4,2             ## @CKA_START_DATE
	.comm	_CKA_END_DATE,4,2               ## @CKA_END_DATE
	.comm	_CKA_DERIVE,4,2                 ## @CKA_DERIVE
	.comm	_CKA_LOCAL,4,2                  ## @CKA_LOCAL
	.comm	_CKM_RSA_X_509,1,0              ## @CKM_RSA_X_509
	.comm	_CKA_KEY_GEN_MECHANISM,4,2      ## @CKA_KEY_GEN_MECHANISM
	.comm	_CKA_ENCRYPT,4,2                ## @CKA_ENCRYPT
	.comm	_CKA_VERIFY,4,2                 ## @CKA_VERIFY
	.comm	_CKA_VERIFY_RECOVER,4,2         ## @CKA_VERIFY_RECOVER
	.comm	_CKA_WRAP,4,2                   ## @CKA_WRAP
L_.str.2:                               ## @.str.2
	.asciz	"add key ok: %lx\n"

	.comm	_CKO_PRIVATE_KEY,1,0            ## @CKO_PRIVATE_KEY
	.comm	_CKA_SENSITIVE,4,2              ## @CKA_SENSITIVE
	.comm	_CKA_SECONDARY_AUTH,4,2         ## @CKA_SECONDARY_AUTH
	.comm	_CKA_AUTH_PIN_FLAGS,4,2         ## @CKA_AUTH_PIN_FLAGS
	.comm	_CKA_DECRYPT,4,2                ## @CKA_DECRYPT
	.comm	_CKA_SIGN,4,2                   ## @CKA_SIGN
	.comm	_CKA_SIGN_RECOVER,4,2           ## @CKA_SIGN_RECOVER
	.comm	_CKA_UNWRAP,4,2                 ## @CKA_UNWRAP
	.comm	_CKA_EXTRACTABLE,4,2            ## @CKA_EXTRACTABLE
	.comm	_CKA_NEVER_EXTRACTABLE,4,2      ## @CKA_NEVER_EXTRACTABLE
	.comm	_CKR_OK,8,3                     ## @CKR_OK
L_.str.3:                               ## @.str.3
	.asciz	"something went wrong when adding cert!\n"

	.no_dead_strip	_add_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cert
_add_cert:                              ; @add_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CK_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CK_TRUE@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #79]
Lloh2:
	adrp	x8, _CK_FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CK_FALSE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _CKC_X_509@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CKC_X_509@GOTPAGEOFF]
	strb	w8, [sp, #78]
	ldrb	w8, [x9]
	strb	w8, [sp, #77]
Lloh6:
	adrp	x8, _CKR_GENERAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CKR_GENERAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_st_logf
	str	xzr, [sp, #16]
	str	wzr, [sp, #24]
	ldr	q0, [sp, #16]
	stp	q0, q0, [sp, #32]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	bl	_hx509_cert_binary
Lloh11:
	adrp	x25, _CKR_OK@GOTPAGE
Lloh12:
	ldr	x25, [x25, _CKR_OK@GOTPAGEOFF]
	cbnz	w0, LBB0_7
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_hx509_cert_get_issuer
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_hx509_name_binary
	mov	x22, x0
	add	x0, sp, #12
	bl	_hx509_name_free
	cbnz	w22, LBB0_7
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_hx509_cert_get_subject
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w0, [sp, #12]
	add	x1, sp, #32
	bl	_hx509_name_binary
	mov	x22, x0
	add	x0, sp, #12
	bl	_hx509_name_free
	cbnz	w22, LBB0_7
; %bb.5:
Lloh13:
	adrp	x8, _context@GOTPAGE
Lloh14:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	bl	_hx509_cert_get_SPKI_AlgorithmIdentifier
	cbz	w0, LBB0_10
LBB0_6:
Lloh16:
	adrp	x8, _CKR_DEVICE_MEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CKR_DEVICE_MEMORY@GOTPAGEOFF]
Lloh18:
	ldr	x23, [x8]
LBB0_7:
	ldr	x8, [x25]
	cmp	x23, x8
	b.eq	LBB0_9
; %bb.8:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_st_logf
LBB0_9:
	ldr	x0, [sp, #48]
	bl	_hx509_xfree
	mov	x0, #0
	bl	_hx509_xfree
	ldr	x0, [sp, #16]
	bl	_hx509_xfree
	ldr	x0, [sp, #32]
	bl	_hx509_xfree
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_10:
Lloh21:
	adrp	x8, _CKK_RSA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CKK_RSA@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #76]
	add	x0, sp, #12
	bl	_free_AlgorithmIdentifier
Lloh23:
	adrp	x8, _CKO_CERTIFICATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CKO_CERTIFICATE@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
	bl	_add_st_object
	cbz	x0, LBB0_6
; %bb.11:
	mov	x22, x0
	mov	x0, x19
	bl	_hx509_cert_ref
	str	x0, [x22]
Lloh25:
	adrp	x28, _CKA_CLASS@GOTPAGE
Lloh26:
	ldr	x28, [x28, _CKA_CLASS@GOTPAGEOFF]
	ldr	w2, [x28]
	add	x3, sp, #12
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh27:
	adrp	x26, _CKA_TOKEN@GOTPAGE
Lloh28:
	ldr	x26, [x26, _CKA_TOKEN@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh29:
	adrp	x8, _CKA_PRIVATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CKA_PRIVATE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh32:
	adrp	x8, _CKA_MODIFIABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CKA_MODIFIABLE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh35:
	adrp	x27, _CKA_LABEL@GOTPAGE
Lloh36:
	ldr	x27, [x27, _CKA_LABEL@GOTPAGEOFF]
	ldr	w23, [x27]
	ldr	x24, [x21]
	mov	x0, x24
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_add_object_attribute
Lloh37:
	adrp	x8, _CKA_CERTIFICATE_TYPE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CKA_CERTIFICATE_TYPE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x3, sp, #77
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh40:
	adrp	x8, _CKA_ID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CKA_ID@GOTPAGEOFF]
Lloh42:
	ldr	w23, [x8]
	ldr	x24, [x21, #8]
	mov	x0, x24
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_add_object_attribute
Lloh43:
	adrp	x23, _CKA_SUBJECT@GOTPAGE
Lloh44:
	ldr	x23, [x23, _CKA_SUBJECT@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	x3, [sp, #32]
	ldr	w4, [sp, #40]
	mov	x0, x22
	mov	w1, #0
	bl	_add_object_attribute
Lloh45:
	adrp	x8, _CKA_ISSUER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CKA_ISSUER@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	ldr	x3, [sp, #16]
	ldr	w4, [sp, #24]
	mov	x0, x22
	mov	w1, #0
	bl	_add_object_attribute
Lloh48:
	adrp	x8, _CKA_SERIAL_NUMBER@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CKA_SERIAL_NUMBER@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_add_object_attribute
Lloh51:
	adrp	x8, _CKA_VALUE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CKA_VALUE@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	ldr	x3, [sp, #48]
	ldr	w4, [sp, #56]
	mov	x0, x22
	mov	w1, #0
	bl	_add_object_attribute
Lloh54:
	adrp	x8, _CKA_TRUSTED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CKA_TRUSTED@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	mov	x0, x22
	bl	_OBJECT_ID
	str	x0, [sp]
Lloh57:
	adrp	x0, l_.str.1@PAGE
Lloh58:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_st_logf
Lloh59:
	adrp	x8, _CKO_PUBLIC_KEY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CKO_PUBLIC_KEY@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
	bl	_add_st_object
	cbz	x0, LBB0_6
; %bb.12:
	mov	x22, x0
	mov	x0, x19
	bl	_hx509_cert_ref
	str	x0, [x22]
	ldr	w2, [x28]
	add	x3, sp, #12
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x26]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh61:
	adrp	x26, _CKA_PRIVATE@GOTPAGE
Lloh62:
	ldr	x26, [x26, _CKA_PRIVATE@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x26]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh64:
	adrp	x26, _CKA_MODIFIABLE@GOTPAGE
Lloh65:
	ldr	x26, [x26, _CKA_MODIFIABLE@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	mov	x28, x23
	ldr	w23, [x27]
	ldr	x24, [x21]
	mov	x0, x24
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_add_object_attribute
Lloh66:
	adrp	x8, _CKA_KEY_TYPE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CKA_KEY_TYPE@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	add	x3, sp, #76
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh69:
	adrp	x27, _CKA_ID@GOTPAGE
Lloh70:
	ldr	x27, [x27, _CKA_ID@GOTPAGEOFF]
	ldr	w23, [x27]
	ldr	x24, [x21, #8]
	mov	x0, x24
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_add_object_attribute
Lloh71:
	adrp	x8, _CKA_START_DATE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CKA_START_DATE@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
Lloh74:
	adrp	x23, _add_cert.empty@PAGE
Lloh75:
	add	x23, x23, _add_cert.empty@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	x3, x23
	mov	w4, #1
	bl	_add_object_attribute
Lloh76:
	adrp	x8, _CKA_END_DATE@GOTPAGE
Lloh77:
	ldr	x8, [x8, _CKA_END_DATE@GOTPAGEOFF]
Lloh78:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x23
	mov	x23, x28
	mov	w4, #1
	bl	_add_object_attribute
Lloh79:
	adrp	x28, _CKA_DERIVE@GOTPAGE
Lloh80:
	ldr	x28, [x28, _CKA_DERIVE@GOTPAGEOFF]
	ldr	w2, [x28]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh81:
	adrp	x8, _CKA_LOCAL@GOTPAGE
Lloh82:
	ldr	x8, [x8, _CKA_LOCAL@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh84:
	adrp	x8, _CKM_RSA_X_509@GOTPAGE
Lloh85:
	ldr	x8, [x8, _CKM_RSA_X_509@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #75]
Lloh86:
	adrp	x8, _CKA_KEY_GEN_MECHANISM@GOTPAGE
Lloh87:
	ldr	x8, [x8, _CKA_KEY_GEN_MECHANISM@GOTPAGEOFF]
Lloh88:
	ldr	w2, [x8]
	add	x3, sp, #75
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x23]
	ldr	x3, [sp, #32]
	ldr	w4, [sp, #40]
	mov	x0, x22
	mov	w1, #0
	bl	_add_object_attribute
Lloh89:
	adrp	x8, _CKA_ENCRYPT@GOTPAGE
Lloh90:
	ldr	x8, [x8, _CKA_ENCRYPT@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh92:
	adrp	x8, _CKA_VERIFY@GOTPAGE
Lloh93:
	ldr	x8, [x8, _CKA_VERIFY@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh95:
	adrp	x8, _CKA_VERIFY_RECOVER@GOTPAGE
Lloh96:
	ldr	x8, [x8, _CKA_VERIFY_RECOVER@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh98:
	adrp	x8, _CKA_WRAP@GOTPAGE
Lloh99:
	ldr	x8, [x8, _CKA_WRAP@GOTPAGEOFF]
Lloh100:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh101:
	adrp	x8, _CKA_TRUSTED@GOTPAGE
Lloh102:
	ldr	x8, [x8, _CKA_TRUSTED@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldrsb	w2, [sp, #76]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_add_pubkey_info
	mov	x0, x22
	bl	_OBJECT_ID
	str	x0, [sp]
Lloh104:
	adrp	x0, l_.str.2@PAGE
Lloh105:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_st_logf
	mov	x0, x19
	bl	_hx509_cert_have_private_key
Lloh106:
	adrp	x24, _CKA_PRIVATE@GOTPAGE
Lloh107:
	ldr	x24, [x24, _CKA_PRIVATE@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.13:
Lloh108:
	adrp	x8, _CKO_PRIVATE_KEY@GOTPAGE
Lloh109:
	ldr	x8, [x8, _CKO_PRIVATE_KEY@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
	bl	_add_st_object
	cbz	x0, LBB0_6
; %bb.14:
	mov	x22, x0
	mov	x0, x19
	bl	_hx509_cert_ref
	str	x0, [x22]
Lloh110:
	adrp	x8, _CKA_CLASS@GOTPAGE
Lloh111:
	ldr	x8, [x8, _CKA_CLASS@GOTPAGEOFF]
Lloh112:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh113:
	adrp	x8, _CKA_TOKEN@GOTPAGE
Lloh114:
	ldr	x8, [x8, _CKA_TOKEN@GOTPAGEOFF]
Lloh115:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x24]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x26]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	mov	x26, x27
	mov	x27, x23
Lloh116:
	adrp	x8, _CKA_LABEL@GOTPAGE
Lloh117:
	ldr	x8, [x8, _CKA_LABEL@GOTPAGEOFF]
Lloh118:
	ldr	w23, [x8]
	ldr	x24, [x21]
	mov	x0, x24
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_add_object_attribute
Lloh119:
	adrp	x8, _CKA_KEY_TYPE@GOTPAGE
Lloh120:
	ldr	x8, [x8, _CKA_KEY_TYPE@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	add	x3, sp, #76
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w23, [x26]
	ldr	x21, [x21, #8]
	mov	x0, x21
	bl	_strlen
	mov	x4, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	x3, x21
	bl	_add_object_attribute
Lloh122:
	adrp	x8, _CKA_START_DATE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _CKA_START_DATE@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
Lloh125:
	adrp	x21, _add_cert.empty@PAGE
Lloh126:
	add	x21, x21, _add_cert.empty@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	x3, x21
	mov	w4, #1
	bl	_add_object_attribute
Lloh127:
	adrp	x8, _CKA_END_DATE@GOTPAGE
Lloh128:
	ldr	x8, [x8, _CKA_END_DATE@GOTPAGEOFF]
Lloh129:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x3, x21
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x28]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh130:
	adrp	x8, _CKA_LOCAL@GOTPAGE
Lloh131:
	ldr	x8, [x8, _CKA_LOCAL@GOTPAGEOFF]
Lloh132:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh133:
	adrp	x8, _CKM_RSA_X_509@GOTPAGE
Lloh134:
	ldr	x8, [x8, _CKM_RSA_X_509@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #75]
Lloh135:
	adrp	x8, _CKA_KEY_GEN_MECHANISM@GOTPAGE
Lloh136:
	ldr	x8, [x8, _CKA_KEY_GEN_MECHANISM@GOTPAGEOFF]
Lloh137:
	ldr	w2, [x8]
	add	x3, sp, #75
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldr	w2, [x27]
	ldr	x3, [sp, #32]
	ldr	w4, [sp, #40]
	mov	x0, x22
	mov	w1, #0
	bl	_add_object_attribute
Lloh138:
	adrp	x8, _CKA_SENSITIVE@GOTPAGE
Lloh139:
	ldr	x8, [x8, _CKA_SENSITIVE@GOTPAGEOFF]
Lloh140:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh141:
	adrp	x8, _CKA_SECONDARY_AUTH@GOTPAGE
Lloh142:
	ldr	x8, [x8, _CKA_SECONDARY_AUTH@GOTPAGEOFF]
Lloh143:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	strb	wzr, [sp, #11]
Lloh144:
	adrp	x8, _CKA_AUTH_PIN_FLAGS@GOTPAGE
Lloh145:
	ldr	x8, [x8, _CKA_AUTH_PIN_FLAGS@GOTPAGEOFF]
Lloh146:
	ldr	w2, [x8]
	add	x3, sp, #11
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh147:
	adrp	x8, _CKA_DECRYPT@GOTPAGE
Lloh148:
	ldr	x8, [x8, _CKA_DECRYPT@GOTPAGEOFF]
Lloh149:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh150:
	adrp	x8, _CKA_SIGN@GOTPAGE
Lloh151:
	ldr	x8, [x8, _CKA_SIGN@GOTPAGEOFF]
Lloh152:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh153:
	adrp	x8, _CKA_SIGN_RECOVER@GOTPAGE
Lloh154:
	ldr	x8, [x8, _CKA_SIGN_RECOVER@GOTPAGEOFF]
Lloh155:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh156:
	adrp	x8, _CKA_UNWRAP@GOTPAGE
Lloh157:
	ldr	x8, [x8, _CKA_UNWRAP@GOTPAGEOFF]
Lloh158:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh159:
	adrp	x8, _CKA_EXTRACTABLE@GOTPAGE
Lloh160:
	ldr	x8, [x8, _CKA_EXTRACTABLE@GOTPAGEOFF]
Lloh161:
	ldr	w2, [x8]
	add	x3, sp, #79
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
Lloh162:
	adrp	x8, _CKA_NEVER_EXTRACTABLE@GOTPAGE
Lloh163:
	ldr	x8, [x8, _CKA_NEVER_EXTRACTABLE@GOTPAGEOFF]
Lloh164:
	ldr	w2, [x8]
	add	x3, sp, #78
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	_add_object_attribute
	ldrsb	w2, [sp, #76]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_add_pubkey_info
LBB0_15:
	ldr	x23, [x25]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_add_cert.empty,1,0 ; @add_cert.empty
	.comm	_CK_TRUE,1,0                    ; @CK_TRUE
	.comm	_CK_FALSE,1,0                   ; @CK_FALSE
	.comm	_CKC_X_509,1,0                  ; @CKC_X_509
	.comm	_CKR_GENERAL_ERROR,8,3          ; @CKR_GENERAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding certificate\n"

	.comm	_context,4,2                    ; @context
	.comm	_CKR_DEVICE_MEMORY,8,3          ; @CKR_DEVICE_MEMORY
	.comm	_CKK_RSA,1,0                    ; @CKK_RSA
	.comm	_CKO_CERTIFICATE,1,0            ; @CKO_CERTIFICATE
	.comm	_CKA_CLASS,4,2                  ; @CKA_CLASS
	.comm	_CKA_TOKEN,4,2                  ; @CKA_TOKEN
	.comm	_CKA_PRIVATE,4,2                ; @CKA_PRIVATE
	.comm	_CKA_MODIFIABLE,4,2             ; @CKA_MODIFIABLE
	.comm	_CKA_LABEL,4,2                  ; @CKA_LABEL
	.comm	_CKA_CERTIFICATE_TYPE,4,2       ; @CKA_CERTIFICATE_TYPE
	.comm	_CKA_ID,4,2                     ; @CKA_ID
	.comm	_CKA_SUBJECT,4,2                ; @CKA_SUBJECT
	.comm	_CKA_ISSUER,4,2                 ; @CKA_ISSUER
	.comm	_CKA_SERIAL_NUMBER,4,2          ; @CKA_SERIAL_NUMBER
	.comm	_CKA_VALUE,4,2                  ; @CKA_VALUE
	.comm	_CKA_TRUSTED,4,2                ; @CKA_TRUSTED
l_.str.1:                               ; @.str.1
	.asciz	"add cert ok: %lx\n"

	.comm	_CKO_PUBLIC_KEY,1,0             ; @CKO_PUBLIC_KEY
	.comm	_CKA_KEY_TYPE,4,2               ; @CKA_KEY_TYPE
	.comm	_CKA_START_DATE,4,2             ; @CKA_START_DATE
	.comm	_CKA_END_DATE,4,2               ; @CKA_END_DATE
	.comm	_CKA_DERIVE,4,2                 ; @CKA_DERIVE
	.comm	_CKA_LOCAL,4,2                  ; @CKA_LOCAL
	.comm	_CKM_RSA_X_509,1,0              ; @CKM_RSA_X_509
	.comm	_CKA_KEY_GEN_MECHANISM,4,2      ; @CKA_KEY_GEN_MECHANISM
	.comm	_CKA_ENCRYPT,4,2                ; @CKA_ENCRYPT
	.comm	_CKA_VERIFY,4,2                 ; @CKA_VERIFY
	.comm	_CKA_VERIFY_RECOVER,4,2         ; @CKA_VERIFY_RECOVER
	.comm	_CKA_WRAP,4,2                   ; @CKA_WRAP
l_.str.2:                               ; @.str.2
	.asciz	"add key ok: %lx\n"

	.comm	_CKO_PRIVATE_KEY,1,0            ; @CKO_PRIVATE_KEY
	.comm	_CKA_SENSITIVE,4,2              ; @CKA_SENSITIVE
	.comm	_CKA_SECONDARY_AUTH,4,2         ; @CKA_SECONDARY_AUTH
	.comm	_CKA_AUTH_PIN_FLAGS,4,2         ; @CKA_AUTH_PIN_FLAGS
	.comm	_CKA_DECRYPT,4,2                ; @CKA_DECRYPT
	.comm	_CKA_SIGN,4,2                   ; @CKA_SIGN
	.comm	_CKA_SIGN_RECOVER,4,2           ; @CKA_SIGN_RECOVER
	.comm	_CKA_UNWRAP,4,2                 ; @CKA_UNWRAP
	.comm	_CKA_EXTRACTABLE,4,2            ; @CKA_EXTRACTABLE
	.comm	_CKA_NEVER_EXTRACTABLE,4,2      ; @CKA_NEVER_EXTRACTABLE
	.comm	_CKR_OK,8,3                     ; @CKR_OK
l_.str.3:                               ; @.str.3
	.asciz	"something went wrong when adding cert!\n"

	.no_dead_strip	_add_cert
.subsections_via_symbols
