	.file	"extr_modubinascii.c_mod_binascii_b2a_base64.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mod_binascii_b2a_base64
	.type	mod_binascii_b2a_base64, @function
mod_binascii_b2a_base64:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR MP_BUFFER_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	mp_get_buffer_raise@PLT
	mov	eax, DWORD PTR [rsp]
	mov	esi, 1
	test	eax, eax
	je	.L2
	sub	eax, 1
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	edi, edx
	sub	edi, eax
	lea	esi, 5[0+rdi*4]
.L2:
	lea	rbp, 16[rsp]
	mov	rdi, rbp
	call	vstr_init_len@PLT
	mov	r8, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rsp]
	mov	rax, QWORD PTR 8[rsp]
	mov	r9, r8
	mov	rcx, r8
	cmp	edi, 2
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR [rax]
	sub	edi, 3
	add	rax, 12
	sar	edx, 2
	and	edx, 63
	mov	DWORD PTR [rcx], edx
	mov	edx, DWORD PTR -12[rax]
	mov	esi, DWORD PTR -8[rax]
	sal	edx, 4
	sar	esi, 4
	and	edx, 48
	and	esi, 15
	or	edx, esi
	mov	DWORD PTR 4[rcx], edx
	mov	esi, DWORD PTR -8[rax]
	lea	edx, 0[0+rsi*4]
	mov	esi, DWORD PTR -4[rax]
	and	edx, 60
	sar	esi, 6
	and	esi, 3
	or	edx, esi
	mov	rsi, rcx
	add	rcx, 16
	mov	DWORD PTR -8[rcx], edx
	mov	edx, DWORD PTR -4[rax]
	and	edx, 63
	mov	DWORD PTR 12[rsi], edx
	cmp	edi, 2
	jg	.L4
.L3:
	test	edi, edi
	je	.L5
	mov	edx, DWORD PTR [rax]
	sar	edx, 2
	and	edx, 63
	mov	DWORD PTR [rcx], edx
	cmp	edi, 2
	je	.L31
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[rcx], 64
	sal	eax, 4
	and	eax, 48
	mov	DWORD PTR 4[rcx], eax
.L7:
	mov	DWORD PTR 12[rcx], 64
.L5:
	mov	eax, DWORD PTR 16[rsp]
	lea	esi, -2[rax]
	cmp	eax, 1
	je	.L8
	lea	rcx, 4[r8+rsi*4]
	mov	rdx, r8
	mov	r9d, 61
	mov	edi, 47
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L33:
	add	eax, 65
	mov	DWORD PTR [rdx], eax
.L10:
	add	rdx, 4
	cmp	rdx, rcx
	je	.L32
.L15:
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 25
	jle	.L33
	cmp	eax, 51
	jg	.L11
	add	eax, 71
	add	rdx, 4
	mov	DWORD PTR -4[rdx], eax
	cmp	rdx, rcx
	jne	.L15
.L32:
	lea	r9, 4[r8+rsi*4]
.L8:
	mov	DWORD PTR [r9], 10
	lea	rdi, mp_type_bytes[rip]
	mov	rsi, rbp
	call	mp_obj_new_str_from_vstr@PLT
	mov	rdi, QWORD PTR 40[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L34
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	eax, 61
	jg	.L12
	sub	eax, 4
	mov	DWORD PTR [rdx], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	eax, 62
	je	.L35
	cmp	eax, 63
	mov	eax, edi
	cmovne	eax, r9d
	mov	DWORD PTR [rdx], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	mov	DWORD PTR [rdx], 43
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, DWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	sal	edx, 4
	sar	esi, 4
	and	edx, 48
	and	esi, 15
	or	edx, esi
	mov	DWORD PTR 4[rcx], edx
	mov	eax, DWORD PTR 4[rax]
	sal	eax, 2
	and	eax, 60
	mov	DWORD PTR 8[rcx], eax
	jmp	.L7
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mod_binascii_b2a_base64, .-mod_binascii_b2a_base64
	.comm	mp_type_bytes,4,4
	.comm	MP_BUFFER_READ,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_modubinascii.c_mod_binascii_b2a_base64.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mod_binascii_b2a_base64
	.syntax unified
	.arm
	.fpu softvfp
	.type	mod_binascii_b2a_base64, %function
mod_binascii_b2a_base64:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L31
	sub	sp, sp, #28
	ldr	r2, [r3]
	ldr	r3, .L31+4
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	mp_get_buffer_raise
	ldr	r3, [sp, #4]
	add	r0, sp, #12
	cmp	r3, #0
	ldrne	r1, .L31+8
	subne	r3, r3, #1
	smullne	r2, r1, r3, r1
	subne	r1, r1, r3, asr #31
	lslne	r1, r1, #2
	moveq	r1, #1
	addne	r1, r1, #5
	bl	vstr_init_len
	ldmib	sp, {r0, r2}
	ldr	ip, [sp, #16]
	cmp	r0, #2
	mov	r1, ip
	ble	.L3
	add	r3, r2, #12
.L4:
	ldr	r2, [r3, #-12]
	sub	r0, r0, #3
	asr	r2, r2, #2
	and	r2, r2, #63
	str	r2, [r1]
	ldr	r2, [r3, #-12]
	ldr	r4, [r3, #-8]
	lsl	r2, r2, #4
	lsl	r4, r4, #24
	and	r2, r2, #48
	orr	r2, r2, r4, lsr #28
	str	r2, [r1, #4]
	ldmdb	r3, {r2, r4}
	lsl	r2, r2, #2
	and	r2, r2, #60
	lsl	r4, r4, #24
	orr	r2, r2, r4, lsr #30
	str	r2, [r1, #8]
	ldr	r2, [r3, #-4]
	cmp	r0, #2
	and	r2, r2, #63
	str	r2, [r1, #12]
	mov	r2, r3
	add	r1, r1, #16
	add	r3, r3, #12
	bgt	.L4
.L3:
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r2]
	cmp	r0, #2
	asr	r3, r3, #2
	and	r3, r3, #63
	str	r3, [r1]
	beq	.L29
	mov	r0, #64
	ldr	r3, [r2]
	str	r0, [r1, #8]
	lsl	r3, r3, #4
	and	r3, r3, #48
	str	r3, [r1, #4]
.L7:
	mov	r3, #64
	str	r3, [r1, #12]
.L5:
	ldr	r0, [sp, #12]
	cmp	r0, #1
	sub	r1, r0, #2
	beq	.L8
	mov	r2, ip
	mov	r4, #61
	mov	lr, #47
	mov	r5, #43
.L15:
	ldr	r3, [r2]
	cmp	r3, #25
	addle	r3, r3, #65
	strle	r3, [r2]
	ble	.L10
	cmp	r3, #51
	addle	r3, r3, #71
	strle	r3, [r2]
	ble	.L10
	cmp	r3, #61
	suble	r3, r3, #4
	strle	r3, [r2]
	ble	.L10
	cmp	r3, #62
	streq	r5, [r2]
	beq	.L10
	cmp	r3, #63
	movne	r3, r4
	moveq	r3, lr
	str	r3, [r2]
.L10:
	sub	r1, r1, #1
	cmn	r1, #1
	add	r2, r2, #4
	bne	.L15
	sub	r0, r0, #1
	add	ip, ip, r0, lsl #2
.L8:
	mov	r3, #10
	ldr	r0, .L31+12
	str	r3, [ip]
	add	r1, sp, #12
	bl	mp_obj_new_str_from_vstr
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L29:
	ldr	r3, [r2]
	ldr	r0, [r2, #4]
	lsl	r3, r3, #4
	and	r3, r3, #48
	lsl	r0, r0, #24
	orr	r3, r3, r0, lsr #28
	str	r3, [r1, #4]
	ldr	r3, [r2, #4]
	lsl	r3, r3, #2
	and	r3, r3, #60
	str	r3, [r1, #8]
	b	.L7
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MP_BUFFER_READ
	.word	.LC0
	.word	1431655766
	.word	mp_type_bytes
	.size	mod_binascii_b2a_base64, .-mod_binascii_b2a_base64
	.comm	mp_type_bytes,4,4
	.comm	MP_BUFFER_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
