	.file	"extr_msg.c_CRYPT_CopyCMSSignerInfo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%p, %d, %p)\n"
.LC1:
	.string	"returning %d\n"
	.text
	.p2align 4
	.type	CRYPT_CopyCMSSignerInfo, @function
CRYPT_CopyCMSSignerInfo:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	xor	edx, edx
	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	rdi, rdi
	je	.L2
	mov	rdx, QWORD PTR [rsi]
.L2:
	mov	rcx, rbp
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	rax, QWORD PTR CERT_ID_ISSUER_SERIAL_NUMBER[rip]
	cmp	QWORD PTR 48[rbp], rax
	je	.L24
	mov	rax, QWORD PTR 56[rbp]
	mov	rdi, QWORD PTR 40[rbp]
	lea	rbx, 88[rax]
	test	rdi, rdi
	jne	.L25
.L5:
	mov	rdi, QWORD PTR 24[rbp]
	add	rbx, QWORD PTR 32[rbp]
	test	rdi, rdi
	jne	.L26
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	add	rbx, QWORD PTR 16[rbp]
	lea	r14, 4[rbp]
	add	rdi, rbx
	call	ALIGN_DWORD_PTR@PLT
	mov	rdi, r14
	mov	rbx, rax
	call	CRYPT_SizeOfAttributes@PLT
	mov	rdi, rbp
	add	rbx, rax
	call	CRYPT_SizeOfAttributes@PLT
	add	rax, rbx
	test	r12, r12
	je	.L27
	cmp	QWORD PTR 0[r13], rax
	jl	.L28
	lea	rax, 352[r12]
	mov	r13, rsp
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 80[rbp]
	mov	DWORD PTR 80[r12], eax
	mov	rax, QWORD PTR 48[rbp]
	mov	QWORD PTR 48[r12], rax
	mov	rax, QWORD PTR CERT_ID_ISSUER_SERIAL_NUMBER[rip]
	cmp	QWORD PTR 48[rbp], rax
	je	.L29
	lea	rsi, 56[rbp]
	lea	rdi, 56[r12]
	mov	rdx, r13
	call	CRYPT_CopyBlob@PLT
.L11:
	lea	rdi, 32[r12]
	lea	rsi, 32[rbp]
	mov	rdx, r13
	call	CRYPT_CopyAlgorithmId@PLT
	lea	rdi, 16[r12]
	lea	rsi, 16[rbp]
	mov	rdx, r13
	call	CRYPT_CopyAlgorithmId@PLT
	lea	rsi, 8[rbp]
	lea	rdi, 8[r12]
	mov	rdx, r13
	call	CRYPT_CopyBlob@PLT
	mov	rdi, QWORD PTR [rsp]
	call	POINTER_ALIGN_DWORD_PTR@PLT
	lea	rdi, 4[r12]
	mov	rdx, r13
	mov	rsi, r14
	mov	QWORD PTR [rsp], rax
	call	CRYPT_CopyAttributes@PLT
	mov	rdi, r12
	mov	rdx, r13
	mov	rsi, rbp
	call	CRYPT_CopyAttributes@PLT
	mov	r12d, DWORD PTR TRUE[rip]
.L8:
	xor	eax, eax
	movsx	rsi, r12d
	lea	rdi, .LC1[rip]
	call	TRACE@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L28:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], rax
	mov	edi, DWORD PTR ERROR_MORE_DATA[rip]
	call	SetLastError@PLT
	mov	r12d, DWORD PTR FALSE[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdx, QWORD PTR 72[rbp]
	mov	rax, QWORD PTR 64[rbp]
	mov	rdi, QWORD PTR 40[rbp]
	lea	rbx, 88[rdx+rax]
	test	rdi, rdi
	je	.L5
.L25:
	call	strlen@PLT
	mov	rdi, QWORD PTR 24[rbp]
	lea	rbx, 1[rbx+rax]
	add	rbx, QWORD PTR 32[rbp]
	test	rdi, rdi
	je	.L6
.L26:
	call	strlen@PLT
	lea	rbx, 1[rbx+rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	QWORD PTR 0[r13], rax
	mov	r12d, DWORD PTR TRUE[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rsi, 72[rbp]
	lea	rdi, 72[r12]
	mov	rdx, r13
	call	CRYPT_CopyBlob@PLT
	lea	rsi, 64[rbp]
	lea	rdi, 64[r12]
	mov	rdx, r13
	call	CRYPT_CopyBlob@PLT
	jmp	.L11
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CRYPT_CopyCMSSignerInfo, .-CRYPT_CopyCMSSignerInfo
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	ERROR_MORE_DATA,4,4
	.comm	CERT_ID_ISSUER_SERIAL_NUMBER,8,8
	.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_msg.c_CRYPT_CopyCMSSignerInfo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%p, %d, %p)\012\000"
	.align	2
.LC1:
	.ascii	"returning %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CRYPT_CopyCMSSignerInfo, %function
CRYPT_CopyCMSSignerInfo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r2
	ldr	r3, .L28
	subs	r5, r0, #0
	sub	sp, sp, #12
	ldrne	r2, [r1]
	moveq	r2, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r1
	mov	r3, r4
	mov	r1, r5
	ldr	r0, .L28+4
	bl	TRACE
	ldr	r8, .L28+8
	ldr	r2, [r4, #28]
	ldr	r3, [r8]
	cmp	r2, r3
	ldreq	r6, [r4, #40]
	ldreq	r0, [r4, #36]
	addeq	r6, r6, #48
	ldrne	r6, [r4, #32]
	addeq	r6, r6, r0
	ldr	r0, [r4, #24]
	addne	r6, r6, #48
	cmp	r0, #0
	bne	.L22
.L5:
	ldr	r0, [r4, #16]
	ldr	r3, [r4, #20]
	cmp	r0, #0
	add	r6, r6, r3
	bne	.L23
.L6:
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #8]
	add	r6, r6, r3
	add	r0, r6, r0
	bl	ALIGN_DWORD_PTR
	add	r9, r4, #4
	mov	r6, r0
	mov	r0, r9
	bl	CRYPT_SizeOfAttributes
	mov	r3, r0
	mov	r0, r4
	add	r6, r6, r3
	bl	CRYPT_SizeOfAttributes
	cmp	r5, #0
	add	r0, r6, r0
	beq	.L24
	ldr	r3, [r7]
	cmp	r3, r0
	blt	.L25
	mov	r6, sp
	ldr	r3, [r4, #28]
	ldr	r2, [r4, #44]
	str	r3, [r5, #28]
	ldr	r0, [r4, #28]
	ldr	r1, [r8]
	add	r3, r5, #192
	cmp	r0, r1
	str	r2, [r5, #44]
	str	r3, [sp]
	mov	r2, r6
	beq	.L26
	add	r1, r4, #32
	add	r0, r5, #32
	bl	CRYPT_CopyBlob
.L11:
	add	r1, r4, #20
	mov	r2, r6
	add	r0, r5, #20
	bl	CRYPT_CopyAlgorithmId
	add	r1, r4, #12
	mov	r2, r6
	add	r0, r5, #12
	bl	CRYPT_CopyAlgorithmId
	add	r1, r4, #8
	mov	r2, r6
	add	r0, r5, #8
	bl	CRYPT_CopyBlob
	ldr	r0, [sp]
	bl	POINTER_ALIGN_DWORD_PTR
	mov	r3, r0
	mov	r1, r9
	mov	r2, r6
	add	r0, r5, #4
	str	r3, [sp]
	bl	CRYPT_CopyAttributes
	mov	r1, r4
	mov	r2, r6
	mov	r0, r5
	bl	CRYPT_CopyAttributes
	ldr	r3, .L28+12
	ldr	r4, [r3]
.L8:
	mov	r1, r4
	ldr	r0, .L28+16
	bl	TRACE
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	ldr	r3, .L28+20
	str	r0, [r7]
	ldr	r0, [r3]
	bl	SetLastError
	ldr	r3, .L28+24
	ldr	r4, [r3]
	b	.L8
.L23:
	bl	strlen
	add	r0, r0, #1
	add	r6, r6, r0
	b	.L6
.L22:
	bl	strlen
	add	r0, r0, #1
	add	r6, r6, r0
	b	.L5
.L24:
	ldr	r3, .L28+12
	str	r0, [r7]
	ldr	r4, [r3]
	b	.L8
.L26:
	add	r1, r4, #40
	add	r0, r5, #40
	bl	CRYPT_CopyBlob
	mov	r2, r6
	add	r1, r4, #36
	add	r0, r5, #36
	bl	CRYPT_CopyBlob
	b	.L11
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC2
	.word	.LC0
	.word	CERT_ID_ISSUER_SERIAL_NUMBER
	.word	TRUE
	.word	.LC1
	.word	ERROR_MORE_DATA
	.word	FALSE
	.size	CRYPT_CopyCMSSignerInfo, .-CRYPT_CopyCMSSignerInfo
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	ERROR_MORE_DATA,4,4
	.comm	CERT_ID_ISSUER_SERIAL_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
