	.file	"extr_g_eli_hmac.c_g_eli_crypto_ivgen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	g_eli_crypto_ivgen
	.type	g_eli_crypto_ivgen, @function
g_eli_crypto_ivgen:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	lea	r14, -128[rbp]
	push	r13
	.cfi_offset 13, -40
	mov	r13, rcx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 136
	mov	QWORD PTR -152[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR G_ELI_FLAG_NATIVE_BYTE_ORDER[rip], eax
	je	.L2
	lea	rdi, -152[rbp]
	mov	edx, 64
	mov	rsi, r14
	call	bcopy@PLT
	cmp	DWORD PTR 4[rbx], 128
	je	.L15
.L4:
	movsx	rax, DWORD PTR SHA256_DIGEST_LENGTH[rip]
	mov	rsi, rsp
	mov	rcx, rsp
	mov	r15, rax
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L7
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L7:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L8
	or	QWORD PTR -8[rsp+rdx], 0
.L8:
	lea	r9, -136[rbp]
	mov	r8, rsp
	lea	rdi, 8[rbx]
	mov	edx, 8
	mov	rsi, r9
	mov	QWORD PTR -176[rbp], rcx
	mov	QWORD PTR -168[rbp], r8
	mov	QWORD PTR -160[rbp], r9
	call	bcopy@PLT
	mov	r9, QWORD PTR -160[rbp]
	mov	edx, 64
	mov	rsi, r14
	mov	rdi, r9
	call	SHA256_Update@PLT
	mov	r9, QWORD PTR -160[rbp]
	mov	r8, QWORD PTR -168[rbp]
	mov	rsi, r9
	mov	rdi, r8
	mov	QWORD PTR -160[rbp], r8
	call	SHA256_Final@PLT
	lea	edi, 0[0+r15*8]
	mov	rsi, r13
	call	MIN@PLT
	mov	r8, QWORD PTR -160[rbp]
	mov	rsi, r12
	mov	edx, eax
	mov	rdi, r8
	call	bcopy@PLT
	mov	rcx, QWORD PTR -176[rbp]
	mov	rsp, rcx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR -152[rbp]
	mov	rdi, r14
	call	le64enc@PLT
	cmp	DWORD PTR 4[rbx], 128
	jne	.L4
.L15:
	mov	rsi, r12
	mov	rdi, r14
	mov	edx, 64
	call	bcopy@PLT
	lea	rsi, -64[r13]
	lea	rdi, 512[r12]
	call	bzero@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	g_eli_crypto_ivgen, .-g_eli_crypto_ivgen
	.comm	SHA256_DIGEST_LENGTH,4,4
	.comm	G_ELI_FLAG_NATIVE_BYTE_ORDER,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_g_eli_hmac.c_g_eli_crypto_ivgen.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	g_eli_crypto_ivgen
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_eli_crypto_ivgen, %function
g_eli_crypto_ivgen:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	mov	r4, r0
	ldr	r0, .L11
	ldr	ip, [r4]
	ldr	r0, [r0]
	mov	r6, r3
	ldr	r3, .L11+4
	str	r1, [fp, #-72]
	tst	ip, r0
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r7, fp, #64
	beq	.L2
	mov	r1, r7
	mov	r2, #32
	sub	r0, fp, #72
	bl	bcopy
	ldr	r3, [r4, #4]
	cmp	r3, #128
	beq	.L9
.L4:
	ldr	r3, .L11+8
	add	r0, r4, #8
	ldr	r3, [r3]
	mov	r8, sp
	lsl	r4, r3, #2
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r9, sp
	mov	r2, #4
	sub	r1, fp, #68
	bl	bcopy
	mov	r2, #32
	mov	r1, r7
	sub	r0, fp, #68
	bl	SHA256_Update
	sub	r1, fp, #68
	mov	r0, r9
	bl	SHA256_Final
	mov	r1, r6
	mov	r0, r4
	bl	MIN
	mov	r1, r5
	mov	r2, r0
	mov	r0, r9
	bl	bcopy
	mov	sp, r8
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	mov	r0, r7
	bl	le64enc
	ldr	r3, [r4, #4]
	cmp	r3, #128
	bne	.L4
.L9:
	mov	r1, r5
	mov	r0, r7
	mov	r2, #32
	bl	bcopy
	sub	r1, r6, #32
	add	r0, r5, #128
	bl	bzero
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	G_ELI_FLAG_NATIVE_BYTE_ORDER
	.word	.LC0
	.word	SHA256_DIGEST_LENGTH
	.size	g_eli_crypto_ivgen, .-g_eli_crypto_ivgen
	.comm	SHA256_DIGEST_LENGTH,4,4
	.comm	G_ELI_FLAG_NATIVE_BYTE_ORDER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
