	.file	"980938.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/980938.c"
.LC1:
	.string	"dst < end"
	.text
	.type	enc_int, @function
enc_int:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	mov	eax, eax
	cmp	QWORD PTR -40[rbp], rax
	jnb	.L3
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	edx, BYTE PTR [rax]
	mov	rcx, QWORD PTR -40[rbp]
	or	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	edx, BYTE PTR [rax]
	mov	edi, edx
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, 1
	mov	ecx, edx
	sal	esi, cl
	mov	edx, esi
	sub	edx, 1
	or	edx, edi
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	cdqe
	sub	QWORD PTR -40[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jnb	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	or	ecx, -128
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	shr	QWORD PTR -40[rbp], 7
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L7
.L5:
	cmp	QWORD PTR -40[rbp], 127
	ja	.L8
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jnb	.L9
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L4
.L9:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -24[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enc_int, .-enc_int
	.type	lsqpack_val2len, @function
lsqpack_val2len:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L11
	mov	edx, 2
	jmp	.L12
.L11:
	mov	edx, 1
.L12:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, -128
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16384
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2097152
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 268435456
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	movabs	rcx, 34359738368
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	movabs	rcx, 4398046511104
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	movabs	rcx, 562949953421312
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	movabs	rcx, 72057594037927936
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	edx, eax
	movabs	rcx, -9223372036854775808
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	cmp	QWORD PTR -24[rbp], rax
	setnb	al
	movzx	eax, al
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lsqpack_val2len, .-lsqpack_val2len
	.section	.rodata
.LC2:
	.string	"Usage: %s prefix_bits value\n"
.LC3:
	.string	"expected size: %u\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 3
	je	.L15
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoull@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	lsqpack_val2len
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -32[rbp], 0
	lea	rax, -32[rbp]
	add	rax, 20
	mov	ecx, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rdi, -32[rbp]
	mov	rsi, rax
	call	enc_int
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -32[rbp]
	cmp	QWORD PTR -40[rbp], rax
	jbe	.L16
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 8
__PRETTY_FUNCTION__.0:
	.string	"enc_int"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"980938.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/980938.c\000"
	.align	2
.LC1:
	.ascii	"dst < end\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enc_int, %function
enc_int:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L2
	ldr	r3, .L10
	mov	r2, #16
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	__assert_fail
.L2:
	mov	r2, #1
	ldr	r3, [fp, #4]
	lsl	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L3
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-36]	@ zero_extendqisi2
	orr	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L4
.L3:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r2, [r3]	@ zero_extendqisi2
	lsl	r2, r2, #24
	asr	r1, r2, #24
	mov	r0, #1
	ldr	r2, [fp, #4]
	lsl	r2, r0, r2
	and	r2, r2, #255
	sub	r2, r2, #1
	and	r2, r2, #255
	lsl	r2, r2, #24
	asr	r2, r2, #24
	orr	r2, r1, r2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r2, #1
	ldr	r3, [fp, #4]
	lsl	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	b	.L5
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L6
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	add	r1, r2, #1
	str	r1, [fp, #-24]
	mvn	r3, r3, lsl #25
	mvn	r3, r3, lsr #25
	and	r3, r3, #255
	strb	r3, [r2]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #7
	orr	r2, r2, r1, lsl #25
	lsr	r3, r1, #7
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	b	.L7
.L5:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #127
	bhi	.L8
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcs	.L9
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r2, [fp, #-36]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L4
.L9:
	ldr	r3, [fp, #-16]
	b	.L7
.L4:
	ldr	r3, [fp, #-24]
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	__PRETTY_FUNCTION__.5765
	.word	.LC0
	.word	.LC1
	.size	enc_int, .-enc_int
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsqpack_val2len, %function
lsqpack_val2len:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #92
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-48]
	mov	r2, #1
	mov	r3, #0
	ldr	r1, [fp, #-48]
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r5, r3, r1
	orr	r5, r5, r2, lsl ip
	orr	r5, r5, r2, lsr r0
	lsl	r4, r2, r1
	subs	r6, r4, #1
	sbc	r7, r5, #0
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L13
	mov	r1, #2
	b	.L14
.L13:
	mov	r1, #1
.L14:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r8, r2, #128
	adc	r9, r3, #0
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, r9
	cmpeq	r2, r8
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #16384
	str	r0, [fp, #-60]
	adc	r3, r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #60
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #2097152
	str	r0, [fp, #-68]
	adc	r3, r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #268435456
	str	r0, [fp, #-76]
	adc	r3, r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #76
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #0
	str	r0, [fp, #-84]
	adc	r3, r3, #8
	str	r3, [fp, #-80]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #84
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #0
	str	r0, [fp, #-92]
	adc	r3, r3, #1024
	str	r3, [fp, #-88]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #92
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #0
	str	r0, [fp, #-100]
	adc	r3, r3, #131072
	str	r3, [fp, #-96]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #100
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #0
	str	r0, [fp, #-108]
	adc	r3, r3, #16777216
	str	r3, [fp, #-104]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #108
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r0, r2, #0
	str	r0, [fp, #-116]
	adc	r3, r3, #-2147483648
	str	r3, [fp, #-112]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r5, fp, #116
	ldmia	r5, {r4-r5}
	cmp	r3, r5
	cmpeq	r2, r4
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	add	r3, r1, r3
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	lsqpack_val2len, .-lsqpack_val2len
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: %s prefix_bits value\012\000"
	.align	2
.LC3:
	.ascii	"expected size: %u\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #3
	beq	.L17
	ldr	r3, .L20+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoull
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, .L20+4
	ldr	r4, [r3]
	ldr	r2, [fp, #-52]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	lsqpack_val2len
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L20+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-36]
	sub	r1, fp, #36
	add	r1, r1, #20
	sub	r0, fp, #36
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	enc_int
	str	r0, [fp, #-48]
	sub	r3, fp, #36
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bls	.L18
	sub	r3, fp, #36
	ldr	r2, [fp, #-48]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #36
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r0, #0
	bl	exit
.L18:
	mov	r0, #1
	bl	exit
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	stderr
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5765, %object
	.size	__PRETTY_FUNCTION__.5765, 8
__PRETTY_FUNCTION__.5765:
	.ascii	"enc_int\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
