	.file	"588318.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/588318.c"
.LC1:
	.string	"j==n+m+1"
	.text
	.globl	sqlite_encode_binary
	.type	sqlite_encode_binary, @function
sqlite_encode_binary:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1104
	mov	QWORD PTR -1080[rbp], rdi
	mov	DWORD PTR -1084[rbp], esi
	mov	QWORD PTR -1096[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1084[rbp], 0
	jg	.L2
	cmp	QWORD PTR -1096[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -1096[rbp]
	mov	BYTE PTR [rax], 120
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
.L3:
	mov	eax, 1
	jmp	.L18
.L2:
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -1084[rbp]
	sub	eax, 1
	mov	DWORD PTR -1060[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -1040[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -1040[rbp+rax*4], edx
	sub	DWORD PTR -1060[rbp], 1
.L5:
	cmp	DWORD PTR -1060[rbp], 0
	jns	.L6
	mov	eax, DWORD PTR -1084[rbp]
	mov	DWORD PTR -1048[rbp], eax
	mov	DWORD PTR -1060[rbp], 1
	jmp	.L7
.L11:
	cmp	DWORD PTR -1060[rbp], 39
	je	.L20
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	mov	edx, DWORD PTR -1040[rbp+rax*4]
	mov	eax, DWORD PTR -1060[rbp]
	add	eax, 1
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -1060[rbp]
	add	eax, 39
	movzx	eax, al
	cdqe
	mov	eax, DWORD PTR -1040[rbp+rax*4]
	add	eax, edx
	mov	DWORD PTR -1044[rbp], eax
	mov	eax, DWORD PTR -1044[rbp]
	cmp	eax, DWORD PTR -1048[rbp]
	jge	.L9
	mov	eax, DWORD PTR -1044[rbp]
	mov	DWORD PTR -1048[rbp], eax
	mov	eax, DWORD PTR -1060[rbp]
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1048[rbp], 0
	je	.L21
	jmp	.L9
.L20:
	nop
.L9:
	add	DWORD PTR -1060[rbp], 1
.L7:
	cmp	DWORD PTR -1060[rbp], 255
	jle	.L11
	jmp	.L10
.L21:
	nop
.L10:
	cmp	QWORD PTR -1096[rbp], 0
	jne	.L12
	mov	edx, DWORD PTR -1084[rbp]
	mov	eax, DWORD PTR -1048[rbp]
	add	eax, edx
	add	eax, 1
	jmp	.L18
.L12:
	mov	eax, DWORD PTR -1052[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -1096[rbp]
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR -1056[rbp], 1
	mov	DWORD PTR -1060[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -1052[rbp]
	sub	eax, edx
	mov	BYTE PTR -1061[rbp], al
	cmp	BYTE PTR -1061[rbp], 0
	je	.L14
	cmp	BYTE PTR -1061[rbp], 1
	je	.L14
	cmp	BYTE PTR -1061[rbp], 39
	jne	.L15
.L14:
	mov	eax, DWORD PTR -1056[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1056[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	movzx	eax, BYTE PTR -1061[rbp]
	add	eax, 1
	mov	BYTE PTR -1061[rbp], al
.L15:
	mov	eax, DWORD PTR -1056[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1056[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1096[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -1061[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -1060[rbp], 1
.L13:
	mov	eax, DWORD PTR -1060[rbp]
	cmp	eax, DWORD PTR -1084[rbp]
	jl	.L16
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edx, DWORD PTR -1084[rbp]
	mov	eax, DWORD PTR -1048[rbp]
	add	eax, edx
	add	eax, 1
	cmp	DWORD PTR -1056[rbp], eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 164
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, DWORD PTR -1056[rbp]
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sqlite_encode_binary, .-sqlite_encode_binary
	.globl	sqlite_decode_binary
	.type	sqlite_decode_binary, @function
sqlite_decode_binary:
.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	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L25:
	cmp	BYTE PTR -9[rbp], 1
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	sub	eax, 1
	mov	BYTE PTR -9[rbp], al
.L24:
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR -9[rbp]
	add	edx, ecx
	mov	BYTE PTR [rax], dl
.L23:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sqlite_decode_binary, .-sqlite_decode_binary
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 21
__PRETTY_FUNCTION__.0:
	.string	"sqlite_encode_binary"
	.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	"588318.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/588318.c\000"
	.align	2
.LC1:
	.ascii	"j==n+m+1\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite_encode_binary
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite_encode_binary, %function
sqlite_encode_binary:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	str	r2, [fp, #-1072]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-1072]
	mov	r2, #120
	strb	r2, [r3]
	ldr	r3, [fp, #-1072]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
.L3:
	mov	r3, #1
	b	.L18
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1068]
	sub	r3, r3, #1
	str	r3, [fp, #-1052]
	b	.L5
.L6:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	sub	r3, r3, #1
	str	r3, [fp, #-1052]
.L5:
	ldr	r3, [fp, #-1052]
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-1068]
	str	r3, [fp, #-1040]
	mov	r3, #1
	str	r3, [fp, #-1052]
	b	.L7
.L11:
	ldr	r3, [fp, #-1052]
	cmp	r3, #39
	beq	.L20
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r2, r2, r3
	ldr	r3, [fp, #-1052]
	add	r3, r3, #39
	and	r3, r3, #255
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r3, r2, r3
	str	r3, [fp, #-1036]
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1040]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-1036]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1052]
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	beq	.L21
	b	.L9
.L20:
	nop
.L9:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L7:
	ldr	r3, [fp, #-1052]
	cmp	r3, #255
	ble	.L11
	b	.L10
.L21:
	nop
.L10:
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bne	.L12
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	add	r3, r3, #1
	b	.L18
.L12:
	ldr	r3, [fp, #-1044]
	and	r2, r3, #255
	ldr	r3, [fp, #-1072]
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-1048]
	mov	r3, #0
	str	r3, [fp, #-1052]
	b	.L13
.L16:
	ldr	r3, [fp, #-1052]
	ldr	r2, [fp, #-1064]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1044]
	and	r3, r3, #255
	sub	r3, r2, r3
	strb	r3, [fp, #-1053]
	ldrb	r3, [fp, #-1053]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldrb	r3, [fp, #-1053]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L14
	ldrb	r3, [fp, #-1053]	@ zero_extendqisi2
	cmp	r3, #39
	bne	.L15
.L14:
	ldr	r3, [fp, #-1048]
	add	r2, r3, #1
	str	r2, [fp, #-1048]
	mov	r2, r3
	ldr	r3, [fp, #-1072]
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3]
	ldrb	r3, [fp, #-1053]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-1053]
.L15:
	ldr	r3, [fp, #-1048]
	add	r2, r3, #1
	str	r2, [fp, #-1048]
	mov	r2, r3
	ldr	r3, [fp, #-1072]
	add	r3, r3, r2
	ldrb	r2, [fp, #-1053]
	strb	r2, [r3]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
.L13:
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1068]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-1048]
	ldr	r2, [fp, #-1072]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-1068]
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-1048]
	cmp	r2, r3
	beq	.L17
	ldr	r3, .L22+4
	mov	r2, #164
	ldr	r1, .L22+8
	ldr	r0, .L22+12
	bl	__assert_fail
.L17:
	ldr	r3, [fp, #-1048]
.L18:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.4411
	.word	.LC0
	.word	.LC1
	.size	sqlite_encode_binary, .-sqlite_encode_binary
	.align	2
	.global	sqlite_decode_binary
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite_decode_binary, %function
sqlite_decode_binary:
	@ 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]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L27:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L26
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-13]
.L26:
	ldr	r3, [fp, #-8]
	and	r1, r3, #255
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldrb	r2, [fp, #-13]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
.L25:
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sqlite_decode_binary, .-sqlite_decode_binary
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4411, %object
	.size	__PRETTY_FUNCTION__.4411, 21
__PRETTY_FUNCTION__.4411:
	.ascii	"sqlite_encode_binary\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
