	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_rsa_copy
_pkey_rsa_copy:                         ## @pkey_rsa_copy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_pkey_rsa_init
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%r15), %r15
	movq	(%rbx), %rbx
	movl	40(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_BN_dup
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	20(%r15), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 16(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_OPENSSL_free
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	callq	_OPENSSL_memdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pkey_rsa_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_rsa_copy
_pkey_rsa_copy:                         ; @pkey_rsa_copy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_pkey_rsa_init
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x20, [x20]
	ldr	x19, [x19]
	ldr	w8, [x20, #40]
	str	w8, [x19, #40]
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_BN_dup
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
LBB0_3:
	ldr	w8, [x20, #24]
	str	w8, [x19, #24]
	ldr	d0, [x20, #16]
	str	d0, [x19, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
	bl	_OPENSSL_free
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_OPENSSL_memdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pkey_rsa_copy
.subsections_via_symbols
