	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_pubkey_info
_add_pubkey_info:                       ## @add_pubkey_info
	.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	_CKK_RSA@GOTPCREL(%rip), %rax
	movq	_CKR_OK@GOTPCREL(%rip), %r14
	cmpq	%rdx, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	%ecx, %r12d
	movq	%rsi, %r15
	movl	%ecx, %edi
	callq	__hx509_cert_private_key
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	__hx509_cert_private_key
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	__hx509_private_key_get_internal
	movq	_CKR_GENERAL_ERROR@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BN_num_bits
	movl	%eax, -44(%rbp)
	movq	%rbx, %rdi
	callq	_BN_num_bytes
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_BN_bn2bin
	movq	%rbx, %rdi
	callq	_BN_free
	movq	_CKA_MODULUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_add_object_attribute
	movq	_CKA_MODULUS_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_add_object_attribute
	movq	%r15, %rdi
	callq	_free
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	__hx509_cert_private_key
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	__hx509_private_key_get_internal
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BN_num_bytes
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_BN_bn2bin
	movq	%rbx, %rdi
	callq	_BN_free
	movq	_CKA_PUBLIC_EXPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_add_object_attribute
	movq	%r12, %rdi
	callq	_free
	movq	_CKR_OK@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CKK_RSA,8,3                    ## @CKK_RSA
	.comm	_CKR_OK,4,2                     ## @CKR_OK
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rsa-modulus"

	.comm	_CKR_GENERAL_ERROR,4,2          ## @CKR_GENERAL_ERROR
	.comm	_CKA_MODULUS,4,2                ## @CKA_MODULUS
	.comm	_CKA_MODULUS_BITS,4,2           ## @CKA_MODULUS_BITS
L_.str.1:                               ## @.str.1
	.asciz	"rsa-exponent"

	.comm	_CKA_PUBLIC_EXPONENT,4,2        ## @CKA_PUBLIC_EXPONENT
	.no_dead_strip	_add_pubkey_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_pubkey_info
_add_pubkey_info:                       ; @add_pubkey_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x8, _CKK_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CKK_RSA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	mov	x0, x3
	bl	__hx509_cert_private_key
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x24, _context@GOTPAGE
Lloh4:
	ldr	x24, [x24, _context@GOTPAGEOFF]
	ldr	w21, [x24]
	mov	x0, x20
	bl	__hx509_cert_private_key
	mov	x1, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	__hx509_private_key_get_internal
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	bl	_BN_num_bits
	str	w0, [sp, #12]
	mov	x0, x21
	bl	_BN_num_bytes
	mov	x22, x0
	bl	_malloc
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_BN_bn2bin
	mov	x0, x21
	bl	_BN_free
Lloh7:
	adrp	x8, _CKA_MODULUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CKA_MODULUS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
	mov	x4, x22
	bl	_add_object_attribute
Lloh10:
	adrp	x8, _CKA_MODULUS_BITS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CKA_MODULUS_BITS@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w4, #4
	bl	_add_object_attribute
	mov	x0, x23
	bl	_free
	ldr	w21, [x24]
	mov	x0, x20
	bl	__hx509_cert_private_key
	mov	x1, x0
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	__hx509_private_key_get_internal
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	bl	_BN_num_bytes
	mov	x21, x0
	bl	_malloc
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_BN_bn2bin
	mov	x0, x20
	bl	_BN_free
Lloh15:
	adrp	x8, _CKA_PUBLIC_EXPONENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CKA_PUBLIC_EXPONENT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	mov	x4, x21
	bl	_add_object_attribute
	mov	x0, x22
	bl	_free
LBB0_5:
Lloh18:
	adrp	x8, _CKR_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CKR_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_7:
Lloh20:
	adrp	x8, _CKR_GENERAL_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CKR_GENERAL_ERROR@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CKK_RSA,8,3                    ; @CKK_RSA
	.comm	_CKR_OK,4,2                     ; @CKR_OK
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rsa-modulus"

	.comm	_CKR_GENERAL_ERROR,4,2          ; @CKR_GENERAL_ERROR
	.comm	_CKA_MODULUS,4,2                ; @CKA_MODULUS
	.comm	_CKA_MODULUS_BITS,4,2           ; @CKA_MODULUS_BITS
l_.str.1:                               ; @.str.1
	.asciz	"rsa-exponent"

	.comm	_CKA_PUBLIC_EXPONENT,4,2        ; @CKA_PUBLIC_EXPONENT
	.no_dead_strip	_add_pubkey_info
.subsections_via_symbols
