	.file	"extr_ct_oct.c_o2i_SCT.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	o2i_SCT
	.type	o2i_SCT, @function
o2i_SCT:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	je	.L2
	cmp	QWORD PTR MAX_SCT_SIZE[rip], rdx
	mov	rbx, rdx
	jb	.L2
	xor	eax, eax
	mov	r12, rdi
	mov	rbp, rsi
	call	SCT_new@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR 0[rbp]
	mov	QWORD PTR [rsp], rdi
	movzx	eax, BYTE PTR [rdi]
	mov	BYTE PTR 0[r13], al
	cmp	al, BYTE PTR SCT_VERSION_V1[rip]
	jne	.L5
	cmp	rbx, 42
	jbe	.L35
	mov	rsi, QWORD PTR CT_V1_HASHLEN[rip]
	add	rdi, 1
	sub	rbx, 43
	mov	QWORD PTR [rsp], rdi
	call	OPENSSL_memdup@PLT
	mov	QWORD PTR 56[r13], rax
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR CT_V1_HASHLEN[rip]
	mov	esi, DWORD PTR 48[r13]
	xor	r14d, r14d
	mov	QWORD PTR 8[r13], rdi
	add	rdi, QWORD PTR [rsp]
	mov	QWORD PTR [rsp], rdi
	call	n2l8@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, r14
	call	n2s@PLT
	cmp	rbx, r14
	jb	.L35
	xor	r14d, r14d
	mov	rax, QWORD PTR [rsp]
	mov	rsi, rsp
	mov	rdi, r13
	mov	QWORD PTR 16[r13], r14
	sub	rbx, r14
	add	rax, r14
	mov	rdx, rbx
	mov	QWORD PTR [rsp], rax
	call	o2i_SCT_signature@PLT
	test	eax, eax
	jle	.L35
	cdqe
	sub	rbx, rax
	add	rbx, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rbx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	mov	esi, DWORD PTR CT_R_SCT_INVALID[rip]
	mov	edi, DWORD PTR CT_F_O2I_SCT[rip]
	call	CTerr@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r13
	xor	r13d, r13d
	call	SCT_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbx
	call	OPENSSL_memdup@PLT
	mov	QWORD PTR 32[r13], rax
	test	rax, rax
	je	.L4
	mov	QWORD PTR 24[r13], rbx
	add	rbx, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rbx
.L10:
	test	r12, r12
	je	.L1
	mov	rdi, QWORD PTR [r12]
	call	SCT_free@PLT
	mov	QWORD PTR [r12], r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR CT_R_SCT_INVALID[rip]
	mov	edi, DWORD PTR CT_F_O2I_SCT[rip]
	xor	r13d, r13d
	call	CTerr@PLT
	jmp	.L4
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	o2i_SCT, .-o2i_SCT
	.comm	SCT_VERSION_V1,1,1
	.comm	MAX_SCT_SIZE,8,8
	.comm	CT_V1_HASHLEN,8,8
	.comm	CT_R_SCT_INVALID,4,4
	.comm	CT_F_O2I_SCT,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_ct_oct.c_o2i_SCT.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	o2i_SCT
	.syntax unified
	.arm
	.fpu softvfp
	.type	o2i_SCT, %function
o2i_SCT:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L38
	sub	sp, sp, #12
	subs	r4, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r3, r4
	bcc	.L2
	mov	r7, r0
	mov	r6, r1
	bl	SCT_new
	subs	r5, r0, #0
	beq	.L4
	ldr	r0, [r6]
	ldr	r2, .L38+8
	str	r0, [sp]
	ldrb	r3, [r0]	@ zero_extendqisi2
	strb	r3, [r5]
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L5
	cmp	r4, #42
	bls	.L35
	ldr	r8, .L38+12
	add	r0, r0, #1
	ldr	r1, [r8]
	str	r0, [sp]
	bl	OPENSSL_memdup
	cmp	r0, #0
	sub	r4, r4, #43
	str	r0, [r5, #28]
	beq	.L4
	mov	r9, #0
	ldr	r3, [r8]
	ldr	r0, [sp]
	ldr	r1, [r5, #24]
	add	r0, r0, r3
	str	r3, [r5, #4]
	str	r0, [sp]
	bl	n2l8
	mov	r1, r9
	ldr	r0, [sp]
	bl	n2s
	cmp	r4, r9
	bcc	.L35
	mov	r9, #0
	sub	r4, r4, r9
	mov	r2, r4
	mov	r1, sp
	mov	r0, r5
	str	r9, [r5, #8]
	bl	o2i_SCT_signature
	cmp	r0, #0
	ble	.L35
	ldr	r3, [sp]
	sub	r4, r4, r0
	add	r4, r3, r4
	str	r4, [r6]
	b	.L10
.L35:
	ldr	r2, .L38+16
	ldr	r3, .L38+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CTerr
.L4:
	mov	r0, r5
	bl	SCT_free
	mov	r5, #0
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r1, r4
	bl	OPENSSL_memdup
	cmp	r0, #0
	str	r0, [r5, #16]
	beq	.L4
	ldr	r2, [sp]
	str	r4, [r5, #12]
	add	r4, r2, r4
	str	r4, [r6]
.L10:
	cmp	r7, #0
	beq	.L1
	ldr	r0, [r7]
	bl	SCT_free
	str	r5, [r7]
	b	.L1
.L2:
	ldr	r2, .L38+16
	ldr	r3, .L38+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CTerr
	mov	r5, #0
	b	.L4
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	MAX_SCT_SIZE
	.word	SCT_VERSION_V1
	.word	CT_V1_HASHLEN
	.word	CT_R_SCT_INVALID
	.word	CT_F_O2I_SCT
	.size	o2i_SCT, .-o2i_SCT
	.comm	SCT_VERSION_V1,1,1
	.comm	MAX_SCT_SIZE,4,4
	.comm	CT_V1_HASHLEN,4,4
	.comm	CT_R_SCT_INVALID,4,4
	.comm	CT_F_O2I_SCT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
