	.file	"extr_utils.c_sodium_pad.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sodium_pad
	.type	sodium_pad, @function
sodium_pad:
.LFB0:
	.cfi_startproc
	endbr64
	test	rcx, rcx
	je	.L17
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rax, rdx
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	rbp, -1[rcx]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	rcx, rbp
	je	.L22
	xor	edx, edx
	div	rcx
	mov	rax, QWORD PTR SIZE_MAX[rip]
	sub	rax, r12
	sub	rbp, rdx
	cmp	rax, rbp
	jbe	.L23
.L5:
	lea	rdi, 0[rbp+r12]
	cmp	rdi, r13
	jnb	.L2
	test	r14, r14
	je	.L6
	lea	rax, 1[rdi]
	mov	QWORD PTR [r14], rax
.L6:
	mov	BYTE PTR 15[rsp], 0
	lea	r8, [rbx+rdi]
	sub	rbx, r15
	add	rdi, rbx
	mov	rdx, r8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, r8
	movzx	ecx, BYTE PTR 15[rsp]
	and	cl, BYTE PTR [rdx]
	sub	rax, rdx
	sub	rdx, 1
	xor	rax, rbp
	sub	rax, 1
	shr	rax, 8
	mov	esi, eax
	and	esi, -128
	or	ecx, esi
	mov	BYTE PTR 1[rdx], cl
	movzx	ecx, BYTE PTR 15[rsp]
	or	eax, ecx
	mov	BYTE PTR 15[rsp], al
	cmp	rdx, rdi
	jne	.L7
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L22:
	.cfi_restore_state
	not	rax
	and	rbp, rax
	mov	rax, QWORD PTR SIZE_MAX[rip]
	sub	rax, r12
	cmp	rax, rbp
	ja	.L5
.L23:
	xor	eax, eax
	call	sodium_misuse@PLT
	jmp	.L5
.L2:
	mov	eax, -1
	jmp	.L1
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	or	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	sodium_pad, .-sodium_pad
	.comm	SIZE_MAX,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_utils.c_sodium_pad.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	sodium_pad
	.syntax unified
	.arm
	.fpu softvfp
	.type	sodium_pad, %function
sodium_pad:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r3, #0
	sub	sp, sp, #8
	beq	.L2
	sub	r4, r6, #1
	tst	r6, r4
	mov	r8, r0
	mov	r7, r1
	mov	r5, r2
	biceq	r4, r4, r2
	bne	.L18
.L4:
	ldr	r3, .L20
	ldr	r3, [r3]
	sub	r3, r3, r5
	cmp	r3, r4
	bls	.L19
.L5:
	ldr	r3, [sp, #32]
	add	r2, r4, r5
	cmp	r2, r3
	bcs	.L2
	cmp	r8, #0
	addne	r3, r2, #1
	strne	r3, [r8]
	add	lr, r7, r2
	mov	r3, #0
	mov	r0, lr
	sub	ip, r7, r6
	add	ip, ip, r2
	strb	r3, [sp, #7]
.L7:
	sub	r3, lr, r0
	eor	r3, r3, r4
	ldrb	r5, [sp, #7]	@ zero_extendqisi2
	ldrb	r2, [r0]	@ zero_extendqisi2
	sub	r3, r3, #1
	lsr	r3, r3, #8
	and	r1, r3, #128
	and	r2, r2, r5
	orr	r2, r2, r1
	ldrb	r1, [sp, #7]	@ zero_extendqisi2
	and	r3, r3, #255
	strb	r2, [r0], #-1
	orr	r3, r1, r3
	cmp	r0, ip
	strb	r3, [sp, #7]
	bne	.L7
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r1, r6
	mov	r0, r2
	bl	__aeabi_uidivmod
	sub	r4, r4, r1
	b	.L4
.L19:
	bl	sodium_misuse
	b	.L5
.L2:
	mvn	r0, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	SIZE_MAX
	.size	sodium_pad, .-sodium_pad
	.comm	SIZE_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
