	.file	"extr_9549.c_base64_encode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	base64_encode
	.type	base64_encode, @function
base64_encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 272
	.cfi_def_cfa_offset 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 264[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 65
	movabs	rax, 287762808898
	mov	QWORD PTR 8[rsp], rax
	movabs	rax, 296352743492
	mov	QWORD PTR 16[rsp], rax
	movabs	rax, 304942678086
	mov	QWORD PTR 24[rsp], rax
	movabs	rax, 313532612680
	mov	QWORD PTR 32[rsp], rax
	movabs	rax, 322122547274
	mov	QWORD PTR 40[rsp], rax
	movabs	rax, 330712481868
	mov	QWORD PTR 48[rsp], rax
	movabs	rax, 339302416462
	mov	QWORD PTR 56[rsp], rax
	movabs	rax, 347892351056
	mov	QWORD PTR 64[rsp], rax
	movabs	rax, 356482285650
	mov	QWORD PTR 72[rsp], rax
	movabs	rax, 365072220244
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 373662154838
	mov	QWORD PTR 88[rsp], rax
	movabs	rax, 382252089432
	mov	QWORD PTR 96[rsp], rax
	movabs	rax, 416611827802
	mov	QWORD PTR 104[rsp], rax
	movabs	rax, 425201762402
	mov	QWORD PTR 112[rsp], rax
	movabs	rax, 433791696996
	mov	QWORD PTR 120[rsp], rax
	movabs	rax, 442381631590
	mov	QWORD PTR 128[rsp], rax
	movabs	rax, 450971566184
	mov	QWORD PTR 136[rsp], rax
	movabs	rax, 459561500778
	mov	QWORD PTR 144[rsp], rax
	movabs	rax, 468151435372
	mov	QWORD PTR 152[rsp], rax
	movabs	rax, 481036337263
	mov	QWORD PTR 160[rsp], rax
	movabs	rax, 489626271857
	mov	QWORD PTR 168[rsp], rax
	movabs	rax, 498216206451
	mov	QWORD PTR 176[rsp], rax
	movabs	rax, 506806141045
	mov	QWORD PTR 184[rsp], rax
	movabs	rax, 515396075639
	mov	QWORD PTR 192[rsp], rax
	movabs	rax, 523986010233
	mov	QWORD PTR 200[rsp], rax
	movabs	rax, 210453397552
	mov	QWORD PTR 208[rsp], rax
	movabs	rax, 219043332146
	mov	QWORD PTR 216[rsp], rax
	movabs	rax, 227633266740
	mov	QWORD PTR 224[rsp], rax
	movabs	rax, 236223201334
	mov	QWORD PTR 232[rsp], rax
	movabs	rax, 244813135928
	mov	QWORD PTR 240[rsp], rax
	movabs	rax, 188978561067
	mov	QWORD PTR 248[rsp], rax
	test	rsi, rsi
	je	.L2
	mov	ebp, DWORD PTR [rsi]
	test	ebp, ebp
	js	.L2
.L3:
	movsx	rax, ebp
	mov	edx, ebp
	imul	rax, rax, 1431655766
	sar	edx, 31
	shr	rax, 32
	sub	eax, edx
	lea	edi, 6[0+rax*4]
	call	malloc@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rbx]
	sub	ebp, 3
	add	rbx, 12
	mov	esi, DWORD PTR -4[rbx]
	mov	r8d, ecx
	sal	ecx, 4
	sar	r8d, 2
	and	ecx, 48
	and	r8d, 63
	mov	r8d, DWORD PTR [rsp+r8*4]
	mov	DWORD PTR [rdi], r8d
	mov	r8d, edx
	sal	edx, 2
	sar	r8d, 4
	and	edx, 60
	and	r8d, 15
	or	ecx, r8d
	movsx	rcx, ecx
	mov	ecx, DWORD PTR [rsp+rcx*4]
	mov	DWORD PTR 4[rdi], ecx
	mov	ecx, esi
	and	esi, 63
	sar	ecx, 6
	and	ecx, 3
	or	edx, ecx
	mov	rcx, rdi
	add	rdi, 16
	movsx	rdx, edx
	mov	edx, DWORD PTR [rsp+rdx*4]
	mov	DWORD PTR -8[rdi], edx
	mov	edx, DWORD PTR [rsp+rsi*4]
	mov	DWORD PTR -4[rdi], edx
	test	ebp, ebp
	jg	.L5
	mov	DWORD PTR 16[rcx], 0
	je	.L6
	movsx	rsi, ebp
	not	ebp
	add	rbp, rsi
	lea	rdx, [rdi+rsi*4]
	lea	rcx, 20[rcx+rbp*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rdx], 61
	add	rdx, 4
	cmp	rcx, rdx
	jne	.L7
.L6:
	test	r12, r12
	je	.L1
	sub	rdi, rax
	sar	rdi, 2
	mov	DWORD PTR [r12], edi
.L1:
	mov	rbx, QWORD PTR 264[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 272
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	call	strlen@PLT
	mov	ebp, eax
	jmp	.L3
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	base64_encode, .-base64_encode
	.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_9549.c_base64_encode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encode, %function
base64_encode:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #73
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, #0
	sub	sp, sp, #276
	str	r1, [sp]
	ldr	r1, .L23
	mov	fp, #65
	ldr	r1, [r1]
	str	r1, [sp, #268]
	mov	r1,#0
	str	r3, [sp, #48]
	mov	r3, #79
	str	r3, [sp, #72]
	mov	r3, #85
	str	r3, [sp, #96]
	mov	r3, #68
	str	r3, [sp, #28]
	mov	r3, #74
	str	r3, [sp, #52]
	mov	r3, #80
	str	r3, [sp, #76]
	mov	r3, #86
	str	r3, [sp, #100]
	mov	r3, #69
	str	r3, [sp, #32]
	mov	r3, #75
	str	r3, [sp, #56]
	mov	r3, #81
	str	r3, [sp, #80]
	mov	r3, #87
	str	r3, [sp, #104]
	mov	r3, #70
	str	r3, [sp, #36]
	mov	r3, #76
	str	r3, [sp, #60]
	mov	r3, #82
	str	r3, [sp, #84]
	mov	r3, #88
	str	r3, [sp, #108]
	mov	r3, #97
	mov	r10, #71
	mov	r9, #77
	mov	r8, #83
	mov	r7, #89
	mov	r6, #66
	mov	r5, #72
	mov	r4, #78
	mov	lr, #84
	mov	ip, #90
	mov	r2, #67
	str	r3, [sp, #120]
	mov	r3, #98
	str	r0, [sp, #4]
	str	fp, [sp, #16]
	str	r10, [sp, #40]
	str	r9, [sp, #64]
	str	r8, [sp, #88]
	str	r7, [sp, #112]
	str	r6, [sp, #20]
	str	r5, [sp, #44]
	str	r4, [sp, #68]
	str	lr, [sp, #92]
	str	ip, [sp, #116]
	str	r2, [sp, #24]
	str	r3, [sp, #124]
	mov	r3, #99
	str	r3, [sp, #128]
	mov	r3, #100
	str	r3, [sp, #132]
	mov	r3, #101
	str	r3, [sp, #136]
	mov	r3, #102
	str	r3, [sp, #140]
	mov	r3, #103
	str	r3, [sp, #144]
	mov	r3, #104
	str	r3, [sp, #148]
	mov	r3, #105
	str	r3, [sp, #152]
	mov	r3, #106
	str	r3, [sp, #156]
	mov	r3, #107
	str	r3, [sp, #160]
	mov	r3, #108
	str	r3, [sp, #164]
	mov	r3, #109
	str	r3, [sp, #168]
	mov	r3, #111
	str	r3, [sp, #172]
	mov	r3, #112
	str	r3, [sp, #176]
	mov	r3, #113
	str	r3, [sp, #180]
	mov	r3, #114
	str	r3, [sp, #184]
	mov	r3, #115
	str	r3, [sp, #188]
	mov	r3, #116
	str	r3, [sp, #192]
	mov	r3, #117
	str	r3, [sp, #196]
	mov	r3, #118
	str	r3, [sp, #200]
	mov	r3, #119
	str	r3, [sp, #204]
	mov	r3, #120
	mov	fp, #121
	str	r3, [sp, #208]
	mov	r10, #122
	mov	r9, #48
	mov	r8, #49
	mov	r7, #50
	mov	r6, #51
	mov	r5, #52
	mov	r4, #53
	mov	lr, #54
	mov	ip, #55
	mov	r0, #56
	mov	r1, #57
	mov	r2, #43
	mov	r3, #44
	str	fp, [sp, #212]
	str	r10, [sp, #216]
	str	r9, [sp, #220]
	str	r8, [sp, #224]
	str	r7, [sp, #228]
	str	r6, [sp, #232]
	str	r5, [sp, #236]
	str	r4, [sp, #240]
	str	lr, [sp, #244]
	str	ip, [sp, #248]
	str	r0, [sp, #252]
	str	r1, [sp, #256]
	str	r2, [sp, #260]
	str	r3, [sp, #264]
	beq	.L2
	ldr	r1, [sp]
	ldr	r4, [r1]
	cmp	r4, #0
	blt	.L2
.L3:
	ldr	r0, .L23+4
	umull	r3, r0, r4, r0
	lsr	r0, r0, #1
	lsl	r0, r0, #2
	add	r0, r0, #6
	bl	malloc
	cmp	r0, #0
	beq	.L1
	mov	r3, r0
	ldr	r2, [sp, #4]
	add	lr, r2, #12
.L5:
	ldmdb	lr, {r5, r6, ip}
	lsl	r1, r5, #4
	lsl	r2, r6, #2
	lsl	r7, ip, #24
	lsl	r6, r6, #24
	and	r1, r1, #48
	and	r2, r2, #60
	orr	r1, r1, r6, lsr #28
	orr	r2, r2, r7, lsr #30
	add	r6, sp, #272
	and	r5, r5, #252
	and	ip, ip, #63
	add	r2, r6, r2, lsl #2
	add	r5, r6, r5
	add	ip, r6, ip, lsl #2
	add	r1, r6, r1, lsl #2
	ldr	r7, [r5, #-260]
	ldr	r6, [r1, #-260]
	ldr	r5, [r2, #-260]
	ldr	r1, [ip, #-260]
	sub	r4, r4, #3
	add	r2, r3, #16
	cmp	r4, #0
	str	r7, [r3]
	str	r6, [r3, #4]
	str	r5, [r3, #8]
	mov	ip, r3
	add	lr, lr, #12
	mov	r3, r2
	str	r1, [r2, #-4]
	bgt	.L5
	mov	r1, #0
	str	r1, [ip, #16]
	beq	.L6
	mov	r1, #61
	add	r3, r2, r4, lsl #2
.L7:
	str	r1, [r3], #4
	cmp	r2, r3
	bne	.L7
.L6:
	ldr	r3, [sp]
	cmp	r3, #0
	subne	r2, r2, r0
	asrne	r2, r2, #2
	strne	r2, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #268]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #276
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [sp, #4]
	bl	strlen
	mov	r4, r0
	b	.L3
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	-1431655765
	.size	base64_encode, .-base64_encode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
