	.file	"extr_dnssec.c_ldns_key_buf2rsa_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ldns_key_buf2rsa_raw
	.type	ldns_key_buf2rsa_raw, @function
ldns_key_buf2rsa_raw:
.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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L14
	mov	rbx, rsi
	movzx	esi, BYTE PTR [rdi]
	mov	r12, rdi
	test	sil, sil
	je	.L16
	movzx	ebp, sil
	mov	r14d, 1
.L6:
	lea	r15, [r14+rbp]
	lea	rax, 1[r15]
	cmp	rax, rbx
	ja	.L14
	xor	eax, eax
	call	BN_new@PLT
	mov	r13, rax
	test	rax, rax
	je	.L14
	mov	esi, ebp
	lea	rdi, [r12+r14]
	mov	rdx, rax
	call	BN_bin2bn@PLT
	xor	eax, eax
	call	BN_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L17
	mov	esi, ebx
	lea	rdi, [r12+r15]
	mov	rdx, rax
	sub	esi, r15d
	call	BN_bin2bn@PLT
	xor	eax, eax
	call	RSA_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L18
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR [rax], r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	BN_free@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L16:
	.cfi_restore_state
	cmp	rbx, 2
	jbe	.L14
	lea	rsi, 1[rdi]
	mov	edx, 2
	mov	rdi, rsp
	mov	r14d, 3
	call	memmove@PLT
	mov	rdi, QWORD PTR [rsp]
	call	ntohs@PLT
	mov	rbp, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r13
	call	BN_free@PLT
	mov	rdi, rbp
	call	BN_free@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ldns_key_buf2rsa_raw, .-ldns_key_buf2rsa_raw
	.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_dnssec.c_ldns_key_buf2rsa_raw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ldns_key_buf2rsa_raw
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldns_key_buf2rsa_raw, %function
ldns_key_buf2rsa_raw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L18
	sub	sp, sp, #12
	subs	r6, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L5
	ldrb	r1, [r0]	@ zero_extendqisi2
	mov	r4, r0
	cmp	r1, #0
	beq	.L15
	mov	r5, r1
	mov	r9, #1
.L6:
	add	r8, r9, r5
	add	r3, r8, #1
	cmp	r3, r6
	bhi	.L5
	bl	BN_new
	subs	r7, r0, #0
	beq	.L5
	mov	r1, r5
	mov	r2, r7
	add	r0, r4, r9
	bl	BN_bin2bn
	bl	BN_new
	subs	r5, r0, #0
	beq	.L16
	mov	r2, r5
	sub	r1, r6, r8
	add	r0, r4, r8
	bl	BN_bin2bn
	bl	RSA_new
	subs	r4, r0, #0
	strne	r5, [r4, #4]
	strne	r7, [r4]
	bne	.L1
	mov	r0, r7
	bl	BN_free
	mov	r0, r5
	bl	BN_free
	b	.L1
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	cmp	r6, #2
	bls	.L5
	add	r1, r0, #1
	mov	r2, #2
	mov	r0, sp
	bl	memcpy
	ldr	r0, [sp]
	bl	ntohs
	mov	r9, #3
	mov	r5, r0
	b	.L6
.L16:
	mov	r0, r7
	bl	BN_free
	mov	r4, r5
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	ldns_key_buf2rsa_raw, .-ldns_key_buf2rsa_raw
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
