	.file	"extr_pvkfmt.c_write_rsa.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_rsa, @function
write_rsa:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	RSA_size@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	RSA_bits@PLT
	lea	rcx, 16[rsp]
	lea	rdx, 24[rsp]
	mov	rdi, r12
	lea	rsi, 8[rsp]
	mov	r13d, eax
	call	RSA_get0_key@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	edx, 4
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r14d
	mov	rdi, rbp
	call	write_lebn@PLT
	test	ebx, ebx
	jne	.L1
	lea	rdx, 40[rsp]
	lea	rsi, 32[rsp]
	mov	rdi, r12
	add	r13d, 15
	call	RSA_get0_factors@PLT
	lea	rcx, 48[rsp]
	lea	rdx, 64[rsp]
	mov	rdi, r12
	lea	rsi, 56[rsp]
	sar	r13d, 4
	call	RSA_get0_crt_params@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 56[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	call	write_lebn@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, r14d
	mov	rdi, rbp
	call	write_lebn@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_rsa, .-write_rsa
	.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_pvkfmt.c_write_rsa.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_rsa, %function
write_rsa:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L8
	sub	sp, sp, #40
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	RSA_size
	mov	r7, r0
	mov	r0, r6
	bl	RSA_bits
	add	r3, sp, #8
	add	r2, sp, #12
	add	r1, sp, #4
	mov	r5, r0
	mov	r0, r6
	bl	RSA_get0_key
	mov	r2, #4
	ldr	r1, [sp, #12]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [sp, #4]
	bl	write_lebn
	cmp	r8, #0
	bne	.L1
	add	r2, sp, #20
	add	r1, sp, #16
	mov	r0, r6
	add	r5, r5, #15
	bl	RSA_get0_factors
	asr	r5, r5, #4
	add	r3, sp, #24
	add	r2, sp, #32
	add	r1, sp, #28
	mov	r0, r6
	bl	RSA_get0_crt_params
	mov	r2, r5
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r5
	ldr	r1, [sp, #20]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r5
	ldr	r1, [sp, #28]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r5
	ldr	r1, [sp, #32]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r5
	ldr	r1, [sp, #24]
	mov	r0, r4
	bl	write_lebn
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	write_lebn
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	write_rsa, .-write_rsa
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
