	.file	"extr_ocb128.c_CRYPTO_ocb128_copy_ctx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CRYPTO_ocb128_copy_ctx
	.type	CRYPTO_ocb128_copy_ctx, @function
CRYPTO_ocb128_copy_ctx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	mov	edx, 32
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	memcpy@PLT
	test	r13, r13
	je	.L2
	mov	QWORD PTR 24[rbp], r13
.L2:
	test	r12, r12
	je	.L3
	mov	QWORD PTR 16[rbp], r12
.L3:
	cmp	QWORD PTR 8[rbx], 0
	mov	r12d, 1
	je	.L1
	mov	edi, DWORD PTR [rbx]
	sal	edi, 4
	call	OPENSSL_malloc@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	lea	edx, 1[rax]
	sal	edx, 4
	call	memcpy@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR CRYPTO_F_CRYPTO_OCB128_COPY_CTX[rip]
	xor	r12d, r12d
	call	CRYPTOerr@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	CRYPTO_ocb128_copy_ctx, .-CRYPTO_ocb128_copy_ctx
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	CRYPTO_F_CRYPTO_OCB128_COPY_CTX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ocb128.c_CRYPTO_ocb128_copy_ctx.c"
	.text
	.align	2
	.global	CRYPTO_ocb128_copy_ctx
	.syntax unified
	.arm
	.fpu softvfp
	.type	CRYPTO_ocb128_copy_ctx, %function
CRYPTO_ocb128_copy_ctx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r4, r1
	mov	r6, r3
	mov	r5, r0
	mov	r2, #20
	bl	memcpy
	cmp	r7, #0
	ldr	r3, [r4, #8]
	strne	r7, [r5, #16]
	cmp	r6, #0
	strne	r6, [r5, #12]
	cmp	r3, #0
	beq	.L6
	ldr	r0, [r4]
	lsl	r0, r0, #4
	bl	OPENSSL_malloc
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r5, #8]
	beq	.L15
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	add	r2, r2, #1
	lsl	r2, r2, #4
	bl	memcpy
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r2, .L16
	ldr	r3, .L16+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CRYPTOerr
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	ERR_R_MALLOC_FAILURE
	.word	CRYPTO_F_CRYPTO_OCB128_COPY_CTX
	.size	CRYPTO_ocb128_copy_ctx, .-CRYPTO_ocb128_copy_ctx
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	CRYPTO_F_CRYPTO_OCB128_COPY_CTX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
