	.file	"extr_crmf_lib.c_OSSL_CRMF_MSG_create_popo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	OSSL_CRMF_MSG_create_popo
	.type	OSSL_CRMF_MSG_create_popo, @function
OSSL_CRMF_MSG_create_popo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	je	.L2
	mov	rbp, rdi
	mov	r12, rsi
	mov	r13d, edx
	mov	ebx, ecx
	cmp	ecx, 128
	jne	.L3
	test	rsi, rsi
	jne	.L3
.L2:
	mov	esi, DWORD PTR CRMF_R_NULL_ARGUMENT[rip]
	mov	edi, DWORD PTR CRMF_F_OSSL_CRMF_MSG_CREATE_POPO[rip]
	call	CRMFerr@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	DWORD PTR OSSL_CRMF_POPO_NONE[rip], ebx
	je	.L14
	xor	eax, eax
	call	OSSL_CRMF_POPO_new@PLT
	mov	r14, rax
	test	rax, rax
	je	.L12
	mov	DWORD PTR [rax], ebx
	cmp	ebx, 129
	je	.L7
	cmp	ebx, 130
	je	.L8
	cmp	ebx, 128
	je	.L45
	mov	esi, DWORD PTR CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO[rip]
	mov	edi, DWORD PTR CRMF_F_OSSL_CRMF_MSG_CREATE_POPO[rip]
	call	CRMFerr@PLT
.L12:
	mov	rdi, r14
	call	OSSL_CRMF_POPO_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	r14d, r14d
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	call	OSSL_CRMF_POPO_free@PLT
	mov	QWORD PTR 0[rbp], r14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	ASN1_NULL_new@PLT
	mov	QWORD PTR 24[r14], rax
	test	rax, rax
	jne	.L5
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L45:
	xor	eax, eax
	call	OSSL_CRMF_POPOSIGNINGKEY_new@PLT
	mov	r15, rax
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR 8[rbp]
	mov	ecx, r13d
	mov	rdx, r12
	mov	rdi, rax
	call	CRMF_poposigningkey_init@PLT
	test	eax, eax
	je	.L13
	mov	QWORD PTR 16[r14], r15
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	call	OSSL_CRMF_POPOPRIVKEY_new@PLT
	mov	QWORD PTR 8[r14], rax
	test	rax, rax
	je	.L12
	xor	eax, eax
	call	ASN1_INTEGER_new@PLT
	mov	edx, DWORD PTR OSSL_CRMF_POPOPRIVKEY_SUBSEQUENTMESSAGE[rip]
	mov	rdi, rax
	mov	rax, QWORD PTR 8[r14]
	mov	DWORD PTR 8[rax], edx
	mov	QWORD PTR [rax], rdi
	test	rdi, rdi
	je	.L12
	mov	esi, DWORD PTR OSSL_CRMF_SUBSEQUENTMESSAGE_ENCRCERT[rip]
	call	ASN1_INTEGER_set@PLT
	test	eax, eax
	jne	.L5
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r15
	call	OSSL_CRMF_POPOSIGNINGKEY_free@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	OSSL_CRMF_MSG_create_popo, .-OSSL_CRMF_MSG_create_popo
	.comm	OSSL_CRMF_SUBSEQUENTMESSAGE_ENCRCERT,4,4
	.comm	OSSL_CRMF_POPO_NONE,4,4
	.comm	OSSL_CRMF_POPOPRIVKEY_SUBSEQUENTMESSAGE,4,4
	.comm	CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO,4,4
	.comm	CRMF_R_NULL_ARGUMENT,4,4
	.comm	CRMF_F_OSSL_CRMF_MSG_CREATE_POPO,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_crmf_lib.c_OSSL_CRMF_MSG_create_popo.c"
	.text
	.align	2
	.global	OSSL_CRMF_MSG_create_popo
	.syntax unified
	.arm
	.fpu softvfp
	.type	OSSL_CRMF_MSG_create_popo, %function
OSSL_CRMF_MSG_create_popo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r8, r0, #0
	beq	.L2
	cmp	r3, #128
	cmpeq	r1, #0
	mov	r5, r1
	mov	r4, r3
	moveq	r6, #1
	movne	r6, #0
	beq	.L2
	ldr	r3, .L40
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L5
	mov	r7, r2
	bl	OSSL_CRMF_POPO_new
	subs	r6, r0, #0
	beq	.L12
	cmp	r4, #129
	str	r4, [r6]
	beq	.L7
	cmp	r4, #130
	beq	.L8
	cmp	r4, #128
	beq	.L39
	ldr	r2, .L40+4
	ldr	r3, .L40+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CRMFerr
.L12:
	mov	r0, r6
	bl	OSSL_CRMF_POPO_free
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	ASN1_NULL_new
	cmp	r0, #0
	str	r0, [r6, #12]
	beq	.L12
.L5:
	ldr	r0, [r8]
	bl	OSSL_CRMF_POPO_free
	mov	r0, #1
	str	r6, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L40+12
	ldr	r3, .L40+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CRMFerr
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	bl	OSSL_CRMF_POPOSIGNINGKEY_new
	subs	r4, r0, #0
	beq	.L13
	mov	r3, r7
	mov	r2, r5
	ldr	r1, [r8, #4]
	bl	CRMF_poposigningkey_init
	cmp	r0, #0
	strne	r4, [r6, #8]
	bne	.L5
.L13:
	mov	r0, r4
	bl	OSSL_CRMF_POPOSIGNINGKEY_free
	b	.L12
.L8:
	bl	OSSL_CRMF_POPOPRIVKEY_new
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L12
	bl	ASN1_INTEGER_new
	ldr	r1, .L40+16
	ldr	r2, [r6, #4]
	ldr	r1, [r1]
	cmp	r0, #0
	str	r0, [r2]
	str	r1, [r2, #4]
	beq	.L12
	ldr	r3, .L40+20
	ldr	r1, [r3]
	bl	ASN1_INTEGER_set
	cmp	r0, #0
	bne	.L5
	b	.L12
.L41:
	.align	2
.L40:
	.word	OSSL_CRMF_POPO_NONE
	.word	CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO
	.word	CRMF_F_OSSL_CRMF_MSG_CREATE_POPO
	.word	CRMF_R_NULL_ARGUMENT
	.word	OSSL_CRMF_POPOPRIVKEY_SUBSEQUENTMESSAGE
	.word	OSSL_CRMF_SUBSEQUENTMESSAGE_ENCRCERT
	.size	OSSL_CRMF_MSG_create_popo, .-OSSL_CRMF_MSG_create_popo
	.comm	OSSL_CRMF_SUBSEQUENTMESSAGE_ENCRCERT,4,4
	.comm	OSSL_CRMF_POPO_NONE,4,4
	.comm	OSSL_CRMF_POPOPRIVKEY_SUBSEQUENTMESSAGE,4,4
	.comm	CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO,4,4
	.comm	CRMF_R_NULL_ARGUMENT,4,4
	.comm	CRMF_F_OSSL_CRMF_MSG_CREATE_POPO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
