	.file	"extr_drbg_hash.c_drbg_hash_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.globl	drbg_hash_init
	.type	drbg_hash_init, @function
drbg_hash_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 64[rdi]
	call	ossl_prov_util_nid_to_name@PLT
	mov	edi, DWORD PTR 68[rbx]
	lea	rdx, .LC0[rip]
	mov	esi, eax
	call	EVP_MD_fetch@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rax
	mov	rbp, rax
	call	EVP_MD_flags@PLT
	and	eax, DWORD PTR EVP_MD_FLAG_XOF[rip]
	mov	r12d, eax
	jne	.L4
	lea	rax, drbg_hash_meth[rip]
	cmp	QWORD PTR 88[rbx], 0
	mov	QWORD PTR 56[rbx], rax
	je	.L12
.L5:
	mov	rdi, QWORD PTR 80[rbx]
	call	EVP_MD_free@PLT
	mov	QWORD PTR 80[rbx], rbp
	mov	rdi, rbp
	call	EVP_MD_size@PLT
	mov	edx, eax
	mov	DWORD PTR 72[rbx], eax
	sar	edx, 3
	sal	edx, 6
	cmp	edx, 256
	jg	.L6
	test	edx, edx
	lea	esi, 7[rdx]
	lea	ecx, 15[rdx]
	mov	DWORD PTR [rbx], edx
	cmovns	esi, edx
	sar	esi, 3
	test	edx, edx
	cmovs	edx, ecx
	sar	edx, 4
.L7:
	cmp	eax, DWORD PTR MAX_BLOCKLEN_USING_SMALL_SEEDLEN[rip]
	mov	ecx, DWORD PTR HASH_PRNG_SMALL_SEEDLEN[rip]
	jle	.L9
	mov	ecx, DWORD PTR HASH_PRNG_MAX_SEEDLEN[rip]
.L9:
	mov	rax, QWORD PTR DRBG_MAX_LENGTH[rip]
	mov	r12d, 1
	mov	DWORD PTR 48[rbx], ecx
	mov	DWORD PTR 4[rbx], esi
	mov	QWORD PTR 40[rbx], rax
	mov	QWORD PTR 32[rbx], rax
	mov	QWORD PTR 24[rbx], rax
	mov	QWORD PTR 16[rbx], rax
	mov	eax, r12d
	mov	DWORD PTR 8[rbx], edx
	mov	DWORD PTR 12[rbx], 65536
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 256
	mov	edx, 16
	mov	esi, 32
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	call	EVP_MD_CTX_new@PLT
	mov	QWORD PTR 88[rbx], rax
	test	rax, rax
	jne	.L5
	mov	rdi, rbp
	call	EVP_MD_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	drbg_hash_init, .-drbg_hash_init
	.comm	drbg_hash_meth,4,4
	.comm	MAX_BLOCKLEN_USING_SMALL_SEEDLEN,4,4
	.comm	HASH_PRNG_SMALL_SEEDLEN,4,4
	.comm	HASH_PRNG_MAX_SEEDLEN,4,4
	.comm	EVP_MD_FLAG_XOF,4,4
	.comm	DRBG_MAX_LENGTH,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_drbg_hash.c_drbg_hash_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.global	drbg_hash_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	drbg_hash_init, %function
drbg_hash_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #40]
	ldr	r5, [r4, #44]
	bl	ossl_prov_util_nid_to_name
	ldr	r2, .L13
	mov	r1, r0
	mov	r0, r5
	bl	EVP_MD_fetch
	subs	r6, r0, #0
	beq	.L4
	bl	EVP_MD_flags
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ands	r5, r0, r3
	bne	.L4
	ldr	r2, [r4, #56]
	ldr	r3, .L13+8
	cmp	r2, #0
	str	r3, [r4, #36]
	beq	.L12
.L5:
	ldr	r0, [r4, #52]
	bl	EVP_MD_free
	mov	r0, r6
	str	r6, [r4, #52]
	bl	EVP_MD_size
	asr	r3, r0, #3
	lsl	r3, r3, #6
	cmp	r3, #256
	str	r0, [r4, #48]
	bgt	.L6
	cmp	r3, #0
	add	r1, r3, #7
	add	r2, r3, #15
	movge	r1, r3
	movge	r2, r3
	str	r3, [r4]
	asr	r1, r1, #3
	asr	r2, r2, #4
.L7:
	ldr	r3, .L13+12
	mov	r5, #1
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, #65536
	ldrgt	r3, .L13+16
	ldrle	r3, .L13+20
	ldr	ip, [r3]
	ldr	r3, .L13+24
	str	r0, [r4, #12]
	ldr	r3, [r3]
	mov	r0, r5
	stmib	r4, {r1, r2}
	str	ip, [r4, #32]
	str	r3, [r4, #28]
	str	r3, [r4, #24]
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	mov	r3, #256
	mov	r2, #16
	mov	r1, #32
	str	r3, [r4]
	b	.L7
.L12:
	bl	EVP_MD_CTX_new
	cmp	r0, #0
	str	r0, [r4, #56]
	bne	.L5
	mov	r0, r6
	bl	EVP_MD_free
	b	.L1
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	EVP_MD_FLAG_XOF
	.word	drbg_hash_meth
	.word	MAX_BLOCKLEN_USING_SMALL_SEEDLEN
	.word	HASH_PRNG_MAX_SEEDLEN
	.word	HASH_PRNG_SMALL_SEEDLEN
	.word	DRBG_MAX_LENGTH
	.size	drbg_hash_init, .-drbg_hash_init
	.comm	drbg_hash_meth,4,4
	.comm	MAX_BLOCKLEN_USING_SMALL_SEEDLEN,4,4
	.comm	HASH_PRNG_SMALL_SEEDLEN,4,4
	.comm	HASH_PRNG_MAX_SEEDLEN,4,4
	.comm	EVP_MD_FLAG_XOF,4,4
	.comm	DRBG_MAX_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
