	.file	"extr_nhpoly1305.c_crypto_nhpoly1305_setkey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crypto_nhpoly1305_setkey
	.type	crypto_nhpoly1305_setkey, @function
crypto_nhpoly1305_setkey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	crypto_shash_ctx@PLT
	cmp	DWORD PTR NHPOLY1305_KEY_SIZE[rip], ebx
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 8[rax]
	mov	rsi, rbp
	mov	r12, rax
	call	poly1305_core_setkey@PLT
	movsx	rax, DWORD PTR POLY1305_BLOCK_SIZE[rip]
	mov	edx, DWORD PTR NH_KEY_WORDS[rip]
	sal	rax, 2
	test	edx, edx
	jle	.L4
	add	rbp, rax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [r12]
	mov	rdi, rbp
	add	rbp, 16
	lea	r13, [rax+rbx*4]
	add	rbx, 1
	call	get_unaligned_le32@PLT
	mov	DWORD PTR 0[r13], eax
	cmp	DWORD PTR NH_KEY_WORDS[rip], ebx
	jg	.L5
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	crypto_nhpoly1305_setkey, .-crypto_nhpoly1305_setkey
	.comm	POLY1305_BLOCK_SIZE,4,4
	.comm	NH_KEY_WORDS,4,4
	.comm	NHPOLY1305_KEY_SIZE,4,4
	.comm	EINVAL,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_nhpoly1305.c_crypto_nhpoly1305_setkey.c"
	.text
	.align	2
	.global	crypto_nhpoly1305_setkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_nhpoly1305_setkey, %function
crypto_nhpoly1305_setkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r1
	bl	crypto_shash_ctx
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L2
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r0
	mov	r1, r5
	ldr	r8, .L9+8
	add	r0, r0, #4
	bl	poly1305_core_setkey
	ldr	r3, .L9+12
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, #0
	lsl	r3, r3, #2
	ble	.L4
	mov	r4, #0
	add	r5, r5, r3
.L5:
	mov	r0, r5
	ldr	r7, [r6]
	bl	get_unaligned_le32
	str	r0, [r7, r4, lsl #2]
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #16
	bgt	.L5
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	NHPOLY1305_KEY_SIZE
	.word	EINVAL
	.word	NH_KEY_WORDS
	.word	POLY1305_BLOCK_SIZE
	.size	crypto_nhpoly1305_setkey, .-crypto_nhpoly1305_setkey
	.comm	POLY1305_BLOCK_SIZE,4,4
	.comm	NH_KEY_WORDS,4,4
	.comm	NHPOLY1305_KEY_SIZE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
