	.file	"extr_mime.c_mime_global_b64.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mime_global_b64, @function
mime_global_b64:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	mov	esi, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rax, 24[rsp]
	mov	QWORD PTR 24[rsp], 0
	mov	rcx, rax
	mov	QWORD PTR 8[rsp], rax
	call	luaL_optlstring@PLT
	test	rax, rax
	je	.L15
	mov	rbx, rax
	mov	rax, QWORD PTR 24[rsp]
	mov	esi, 2
	mov	rdi, rbp
	lea	r15, 20[rsp]
	xor	r12d, r12d
	lea	r14, 44[rsp]
	lea	r13, [rbx+rax*4]
	call	lua_settop@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	luaL_buffinit@PLT
	cmp	rbx, r13
	jnb	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, rbx
	mov	rdx, r12
	mov	rcx, r15
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	add	rbx, 4
	call	b64encode@PLT
	mov	r12, rax
	cmp	r13, rbx
	ja	.L5
.L4:
	mov	rcx, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbp
	call	luaL_optlstring@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR 24[rsp]
	lea	r13, [rbx+rax*4]
	cmp	rbx, r13
	jnb	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, rbx
	mov	rdx, r12
	mov	rcx, r15
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	add	rbx, 4
	call	b64encode@PLT
	mov	r12, rax
	cmp	r13, rbx
	ja	.L9
.L8:
	mov	rdi, r15
	call	luaL_pushresult@PLT
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	call	lua_pushlstring@PLT
.L3:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 2
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, r14
	mov	QWORD PTR 32[rsp], 0
	call	b64pad@PLT
	mov	rdi, r15
	call	luaL_pushresult@PLT
	lea	rdx, 32[rsp]
	mov	esi, -1
	mov	rdi, rbp
	call	lua_tolstring@PLT
	cmp	QWORD PTR 32[rsp], 0
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	lua_pushnil@PLT
.L7:
	mov	rdi, rbp
	call	lua_pushnil@PLT
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mime_global_b64, .-mime_global_b64
	.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_mime.c_mime_global_b64.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mime_global_b64, %function
mime_global_b64:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #0
	sub	sp, sp, #32
	ldr	ip, .L19
	mov	r2, r4
	mov	r1, #1
	add	r3, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	mov	r7, r0
	str	r4, [sp, #4]
	bl	luaL_optlstring
	subs	r5, r0, #0
	beq	.L15
	mov	r1, #2
	ldr	r8, [sp, #4]
	mov	r0, r7
	add	r8, r5, r8, lsl r1
	bl	lua_settop
	mov	r0, r7
	add	r1, sp, #8
	bl	luaL_buffinit
	cmp	r5, r8
	add	r6, sp, #16
	bcs	.L4
.L5:
	ldr	r0, [r5]
	mov	r2, r4
	mov	r1, r6
	add	r3, sp, #8
	bl	b64encode
	add	r5, r5, #4
	cmp	r8, r5
	mov	r4, r0
	bhi	.L5
.L4:
	mov	r2, #0
	mov	r1, #2
	mov	r0, r7
	add	r3, sp, #4
	bl	luaL_optlstring
	subs	r5, r0, #0
	beq	.L17
	ldr	r8, [sp, #4]
	add	r8, r5, r8, lsl #2
	cmp	r5, r8
	bcs	.L8
.L9:
	ldr	r0, [r5]
	mov	r2, r4
	mov	r1, r6
	add	r3, sp, #8
	bl	b64encode
	add	r5, r5, #4
	cmp	r8, r5
	mov	r4, r0
	bhi	.L9
.L8:
	add	r0, sp, #8
	bl	luaL_pushresult
	mov	r2, r4
	mov	r1, r6
	mov	r0, r7
	bl	lua_pushlstring
.L3:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, #2
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r1, r4
	add	r2, sp, #8
	mov	r0, r6
	str	r5, [sp, #12]
	bl	b64pad
	add	r0, sp, #8
	bl	luaL_pushresult
	mvn	r1, #0
	mov	r0, r7
	add	r2, sp, #12
	bl	lua_tolstring
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L7
.L15:
	mov	r0, r7
	bl	lua_pushnil
.L7:
	mov	r0, r7
	bl	lua_pushnil
	b	.L3
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	mime_global_b64, .-mime_global_b64
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
