	.file	"extr_drbg_lib.c_RAND_DRBG_bytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RAND_DRBG_bytes
	.type	RAND_DRBG_bytes, @function
RAND_DRBG_bytes:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	test	rdi, rdi
	je	.L20
.L2:
	mov	rsi, rsp
	call	rand_drbg_get_additional_data@PLT
	mov	r14, rax
	test	rbx, rbx
	jne	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	add	r13, rbp
	sub	rbx, rbp
	je	.L7
.L5:
	cmp	QWORD PTR 8[r12], rbx
	mov	rbp, rbx
	mov	r8, QWORD PTR [rsp]
	mov	r9, r14
	cmovbe	rbp, QWORD PTR 8[r12]
	mov	rsi, r13
	xor	ecx, ecx
	mov	rdi, r12
	mov	rdx, rbp
	call	RAND_DRBG_generate@PLT
	test	rax, rax
	jne	.L21
.L6:
	xor	r14d, r14d
.L4:
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L1
	mov	rdi, QWORD PTR 16[r12]
	call	rand_drbg_cleanup_additional_data@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r14d
	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
.L20:
	.cfi_restore_state
	xor	r14d, r14d
	cmp	QWORD PTR [r12], 0
	je	.L1
	mov	ecx, DWORD PTR 24[r12]
	xor	edx, edx
	xor	esi, esi
	call	rand_pool_new@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rdi, rax
	test	rax, rax
	jne	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r14d, 1
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	RAND_DRBG_bytes, .-RAND_DRBG_bytes
	.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_drbg_lib.c_RAND_DRBG_bytes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RAND_DRBG_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	RAND_DRBG_bytes, %function
RAND_DRBG_bytes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r0, #8]
	mov	r5, r2
	ldr	r2, .L25
	sub	sp, sp, #16
	cmp	r0, r3
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r1
	str	r3, [sp, #8]
	beq	.L22
.L2:
	add	r1, sp, #8
	bl	rand_drbg_get_additional_data
	cmp	r5, #0
	mov	r8, r0
	bne	.L5
	b	.L7
.L23:
	subs	r5, r5, r4
	add	r6, r6, r4
	beq	.L7
.L5:
	ldr	r4, [r7, #4]
	ldr	r3, [sp, #8]
	cmp	r5, r4
	movcc	r4, r5
	str	r3, [sp]
	mov	r2, r4
	mov	r3, #0
	mov	r1, r6
	mov	r0, r7
	str	r8, [sp, #4]
	bl	RAND_DRBG_generate
	cmp	r0, #0
	bne	.L23
.L6:
	mov	r4, #0
.L4:
	ldr	r1, [sp, #8]
	cmp	r1, #0
	beq	.L1
	ldr	r0, [r7, #8]
	bl	rand_drbg_cleanup_additional_data
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r4, [r7]
	cmp	r4, r3
	beq	.L1
	mov	r2, r0
	mov	r1, r0
	ldr	r3, [r7, #12]
	bl	rand_pool_new
	cmp	r0, #0
	str	r0, [r7, #8]
	bne	.L2
	b	.L6
.L7:
	mov	r4, #1
	b	.L4
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.size	RAND_DRBG_bytes, .-RAND_DRBG_bytes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
