	.file	"extr_base64.c_test_encode_decode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed: cannot encode the input data"
	.align 8
.LC1:
	.string	"Failed: encoded string differs from reference\nEncoded:\n%s\nReference:\n%s\n"
	.align 8
.LC2:
	.string	"Failed: cannot decode the encoded string\nEncoded:\n%s\n"
	.align 8
.LC3:
	.string	"Failed: cannot decode with minimal buffer\nEncoded:\n%s\n"
	.align 8
.LC4:
	.string	"Failed: encoded/decoded data differs from original data"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"Failed: decode to NULL buffer"
.LC6:
	.string	"Failed: error detection"
.LC7:
	.string	"Passed!"
	.text
	.p2align 4
	.type	test_encode_decode, @function
test_encode_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_ENCODED_SIZE[rip]
	mov	rcx, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L35:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L35
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L36
.L4:
	movsx	rax, DWORD PTR MAX_DATA_SIZE[rip]
	mov	rbx, rsp
	mov	r15, rsp
	mov	r8, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L6
.L37:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L37
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L38
.L7:
	mov	ecx, r12d
	mov	rdx, r13
	mov	rdi, r15
	mov	DWORD PTR -68[rbp], r8d
	call	av_base64_encode@PLT
	mov	rbx, rsp
	mov	r8d, DWORD PTR -68[rbp]
	test	eax, eax
	je	.L39
	test	r14, r14
	je	.L10
	mov	rsi, r14
	mov	rdi, r15
	mov	DWORD PTR -68[rbp], r8d
	call	strcmp@PLT
	mov	r8d, DWORD PTR -68[rbp]
	test	rax, rax
	jne	.L40
.L10:
	mov	edx, r8d
	mov	rsi, r15
	mov	rdi, rbx
	call	av_base64_decode@PLT
	cmp	eax, r12d
	je	.L11
	mov	rsi, r15
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	r12d, 1
	call	printf@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbx
	call	av_base64_decode@PLT
	cmp	eax, r12d
	je	.L12
	mov	rsi, r15
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	r12d, 1
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	lea	rdi, .LC0[rip]
	mov	r12d, 1
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbx
	call	memcmp@PLT
	test	rax, rax
	jne	.L42
	xor	edx, edx
	mov	rsi, r15
	xor	edi, edi
	call	av_base64_decode@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L43
	mov	rdi, r15
	call	strlen@PLT
	test	eax, eax
	je	.L15
	mov	esi, 61
	mov	rdi, r15
	call	strchr@PLT
	test	rax, rax
	je	.L44
.L16:
	mov	BYTE PTR [rax], 37
	xor	edx, edx
	xor	edi, edi
	mov	rsi, r15
	call	av_base64_decode@PLT
	test	eax, eax
	js	.L15
	lea	rdi, .LC6[rip]
	mov	r12d, 1
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdx, r14
	mov	rsi, r15
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rdi, .LC4[rip]
	mov	r12d, 1
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rdi, .LC5[rip]
	mov	r12d, 1
	call	puts@PLT
	jmp	.L1
.L44:
	mov	rdi, r15
	call	strlen@PLT
	cdqe
	lea	rax, -1[r15+rax]
	jmp	.L16
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_encode_decode, .-test_encode_decode
	.comm	MAX_ENCODED_SIZE,4,4
	.comm	MAX_DATA_SIZE,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_base64.c_test_encode_decode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed: cannot encode the input data\000"
	.align	2
.LC1:
	.ascii	"Failed: encoded string differs from reference\012En"
	.ascii	"coded:\012%s\012Reference:\012%s\012\000"
	.align	2
.LC2:
	.ascii	"Failed: cannot decode the encoded string\012Encoded"
	.ascii	":\012%s\012\000"
	.align	2
.LC3:
	.ascii	"Failed: cannot decode with minimal buffer\012Encode"
	.ascii	"d:\012%s\012\000"
	.align	2
.LC4:
	.ascii	"Failed: encoded/decoded data differs from original "
	.ascii	"data\000"
	.align	2
.LC5:
	.ascii	"Failed: decode to NULL buffer\000"
	.align	2
.LC6:
	.ascii	"Failed: error detection\000"
	.align	2
.LC7:
	.ascii	"Passed!\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_encode_decode, %function
test_encode_decode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r3, .L31
	mov	r6, r0
	ldr	r0, [r3]
	mov	r4, r1
	add	r3, r0, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r5, sp
	ldr	r3, .L31+4
	ldr	ip, .L31+8
	ldr	r7, [r3]
	mov	r1, r0
	lsl	r3, r7, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r8, r2
	mov	r0, r5
	mov	r3, r4
	mov	r2, r6
	ldr	ip, [ip]
	str	ip, [fp, #-32]
	mov	ip,#0
	bl	av_base64_encode
	cmp	r0, #0
	beq	.L23
	cmp	r8, #0
	mov	r9, sp
	beq	.L4
	mov	r1, r8
	mov	r0, r5
	bl	strcmp
	cmp	r0, #0
	bne	.L24
.L4:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r9
	bl	av_base64_decode
	cmp	r0, r4
	beq	.L5
	mov	r1, r5
	ldr	r0, .L31+12
	bl	printf
	mov	r4, #1
.L1:
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L5:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r9
	bl	av_base64_decode
	cmp	r0, r4
	bne	.L26
	mov	r2, r4
	mov	r1, r6
	mov	r0, r9
	bl	memcmp
	subs	r2, r0, #0
	bne	.L27
	mov	r1, r5
	bl	av_base64_decode
	subs	r4, r0, #0
	bne	.L28
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	mov	r1, #61
	mov	r0, r5
	bl	strchr
	cmp	r0, #0
	beq	.L29
.L10:
	mov	r3, #37
	mov	r2, #0
	strb	r3, [r0]
	mov	r1, r5
	mov	r0, r2
	bl	av_base64_decode
	cmp	r0, #0
	bge	.L30
.L9:
	ldr	r0, .L31+16
	bl	puts
	b	.L1
.L23:
	ldr	r0, .L31+20
	bl	puts
	mov	r4, #1
	b	.L1
.L27:
	ldr	r0, .L31+24
	bl	puts
	mov	r4, #1
	b	.L1
.L24:
	mov	r2, r8
	mov	r1, r5
	ldr	r0, .L31+28
	bl	printf
	mov	r4, #1
	b	.L1
.L26:
	mov	r1, r5
	ldr	r0, .L31+32
	bl	printf
	mov	r4, #1
	b	.L1
.L29:
	mov	r0, r5
	bl	strlen
	sub	r0, r0, #1
	add	r0, r5, r0
	b	.L10
.L30:
	ldr	r0, .L31+36
	bl	puts
	mov	r4, #1
	b	.L1
.L28:
	ldr	r0, .L31+40
	bl	puts
	mov	r4, #1
	b	.L1
.L25:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MAX_ENCODED_SIZE
	.word	MAX_DATA_SIZE
	.word	.LC8
	.word	.LC2
	.word	.LC7
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.size	test_encode_decode, .-test_encode_decode
	.comm	MAX_ENCODED_SIZE,4,4
	.comm	MAX_DATA_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
