	.file	"122345.c"
	.intel_syntax noprefix
	.text
	.globl	VaruintEnc
	.type	VaruintEnc, @function
VaruintEnc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	mov	BYTE PTR -9[rbp], 0
.L4:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 127
	mov	BYTE PTR -9[rbp], al
	shr	DWORD PTR -20[rbp], 7
	cmp	DWORD PTR -20[rbp], 0
	je	.L2
	mov	edx, -128
	jmp	.L3
.L2:
	mov	edx, 0
.L3:
	movzx	eax, BYTE PTR -9[rbp]
	or	eax, edx
	mov	BYTE PTR -9[rbp], al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -8[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	VaruintEnc, .-VaruintEnc
	.globl	VaruintDec
	.type	VaruintDec, @function
VaruintDec:
.LFB1:
	.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	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -10[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	BYTE PTR -10[rbp], 0
	jmp	.L7
.L10:
	movzx	edx, BYTE PTR -10[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	and	eax, 127
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 7
	movzx	eax, BYTE PTR -9[rbp]
	test	al, al
	js	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, BYTE PTR -10[rbp]
	add	eax, 1
	cdqe
	jmp	.L9
.L8:
	movzx	eax, BYTE PTR -10[rbp]
	add	eax, 1
	mov	BYTE PTR -10[rbp], al
.L7:
	cmp	BYTE PTR -10[rbp], 4
	jbe	.L10
	mov	eax, 0
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	VaruintDec, .-VaruintDec
	.section	.rodata
.LC0:
	.string	"%02X"
	.text
	.globl	printBuffer
	.type	printBuffer, @function
printBuffer:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -1[rbp], 0
	mov	BYTE PTR -1[rbp], 0
	jmp	.L12
.L13:
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L12:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	QWORD PTR -32[rbp], rax
	ja	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	printBuffer, .-printBuffer
	.section	.rodata
.LC1:
	.string	"test = %05X \r\n"
.LC2:
	.string	"buffer = "
.LC3:
	.string	"\r"
.LC4:
	.string	"result = %05X\r\n \r\n"
.LC5:
	.string	"decoder error\r\n\r"
	.text
	.globl	testValue
	.type	testValue, @function
testValue:
.LFB3:
	.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	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -13[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	VaruintEnc
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -13[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	printBuffer
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdx, -13[rbp]
	lea	rax, -28[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	VaruintDec
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L15:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	testValue, .-testValue
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edi, 165
	call	testValue
	mov	edi, 255
	call	testValue
	mov	edi, 42495
	call	testValue
	mov	edi, 65535
	call	testValue
	mov	edi, 16777215
	call	testValue
	mov	edi, -1
	call	testValue
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.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	"122345.c"
	.text
	.align	2
	.global	VaruintEnc
	.syntax unified
	.arm
	.fpu softvfp
	.type	VaruintEnc, %function
VaruintEnc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-9]
.L4:
	ldr	r3, [fp, #-16]
	and	r3, r3, #255
	and	r3, r3, #127
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #7
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	mvn	r2, #127
	b	.L3
.L2:
	mov	r2, #0
.L3:
	ldrsb	r3, [fp, #-9]
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-9]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	VaruintEnc, .-VaruintEnc
	.align	2
	.global	VaruintDec
	.syntax unified
	.arm
	.fpu softvfp
	.type	VaruintDec, %function
VaruintDec:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-14]
	b	.L7
.L10:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r2, r3, #127
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	str	r3, [fp, #-8]
	ldrsb	r3, [fp, #-13]
	cmp	r3, #0
	blt	.L8
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	add	r3, r3, #1
	b	.L9
.L8:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-14]
.L7:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #4
	bls	.L10
	mov	r3, #0
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	VaruintDec, .-VaruintDec
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%02X\000"
	.text
	.align	2
	.global	printBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	printBuffer, %function
printBuffer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L12
.L13:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L14
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L12:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	printBuffer, .-printBuffer
	.section	.rodata
	.align	2
.LC2:
	.ascii	"test = %05X \015\012\000"
	.align	2
.LC3:
	.ascii	"buffer = \000"
	.align	2
.LC4:
	.ascii	"\015\000"
	.align	2
.LC5:
	.ascii	"result = %05X\015\012 \015\012\000"
	.align	2
.LC6:
	.ascii	"decoder error\015\012\015\000"
	.align	2
.LC1:
	.ascii	"\000\000\000\000\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	testValue, %function
testValue:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r2, .L21+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	ldr	r0, .L21+8
	bl	printf
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	VaruintEnc
	str	r0, [fp, #-20]
	ldr	r0, .L21+12
	bl	printf
	sub	r3, fp, #16
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	printBuffer
	ldr	r0, .L21+16
	bl	puts
	sub	r2, fp, #16
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	VaruintDec
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L21+20
	bl	printf
	b	.L20
.L17:
	ldr	r0, .L21+24
	bl	puts
.L20:
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	testValue, .-testValue
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r0, #165
	bl	testValue
	mov	r0, #255
	bl	testValue
	ldr	r0, .L25
	bl	testValue
	ldr	r0, .L25+4
	bl	testValue
	mvn	r0, #-16777216
	bl	testValue
	mvn	r0, #0
	bl	testValue
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	42495
	.word	65535
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
