	.file	"extr_pack.c_pack_m.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pack_m, @function
pack_m:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	edi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movsx	r13, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	RSTRING_PTR@PLT
	mov	edi, r12d
	mov	rbx, rax
	call	RSTRING_LEN@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	lea	eax, 2[rax]
	movsx	rcx, eax
	sar	eax, 31
	imul	rcx, rcx, 1431655766
	shr	rcx, 32
	sub	ecx, eax
	sal	ecx, 2
	test	rbp, rbp
	je	.L16
	cmp	rbp, 2
	jg	.L24
	mov	ebp, 45
.L3:
	movsx	rax, r12d
	cqo
	idiv	rbp
	test	rdx, rdx
	setne	dl
	add	eax, ecx
	movzx	edx, dl
	lea	ecx, [rdx+rax]
.L6:
	lea	edx, [rcx+r13]
	mov	esi, r15d
	mov	rdi, r14
	call	str_len_ensure@PLT
	mov	edi, eax
	call	RSTRING_PTR@PLT
	add	rax, r13
	mov	rcx, rax
	cmp	r12d, 2
	jle	.L7
	mov	edi, 3
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	sub	r12d, 3
	add	rcx, 4
	add	edi, 3
	cmp	r12d, 2
	jle	.L7
.L10:
	movzx	edx, BYTE PTR [rbx]
	mov	r8, QWORD PTR base64chars[rip]
	add	rbx, 3
	sal	edx, 16
	movsx	rsi, edx
	movzx	edx, BYTE PTR -2[rbx]
	sal	edx, 8
	movsx	rdx, edx
	add	rdx, rsi
	movzx	esi, BYTE PTR -1[rbx]
	mov	r9, rdx
	shr	r9, 18
	add	rsi, rdx
	shr	rdx, 12
	mov	r8, QWORD PTR [r8+r9*8]
	and	edx, 63
	mov	BYTE PTR [rcx], r8b
	mov	r8, QWORD PTR base64chars[rip]
	mov	rdx, QWORD PTR [r8+rdx*8]
	mov	BYTE PTR 1[rcx], dl
	mov	rdx, rsi
	mov	r8, QWORD PTR base64chars[rip]
	and	esi, 63
	shr	rdx, 6
	and	edx, 63
	mov	rdx, QWORD PTR [r8+rdx*8]
	mov	BYTE PTR 2[rcx], dl
	mov	rdx, QWORD PTR base64chars[rip]
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	BYTE PTR 3[rcx], dl
	movsx	rdx, edi
	cmp	rdx, rbp
	jne	.L27
	sub	r12d, 3
	mov	BYTE PTR 4[rcx], 10
	mov	edi, 3
	add	rcx, 5
	cmp	r12d, 2
	jg	.L10
.L7:
	cmp	r12d, 1
	je	.L28
	cmp	r12d, 2
	jne	.L12
	movzx	edx, BYTE PTR [rbx]
	movzx	esi, BYTE PTR 1[rbx]
	add	rcx, 4
	mov	rdi, QWORD PTR base64chars[rip]
	sal	edx, 16
	sal	esi, 8
	movsx	rdx, edx
	movsx	rsi, esi
	add	rsi, rdx
	shr	rdx, 18
	mov	rdx, QWORD PTR [rdi+rdx*8]
	mov	BYTE PTR -4[rcx], dl
	mov	rdx, rsi
	mov	rdi, QWORD PTR base64chars[rip]
	shr	rsi, 6
	shr	rdx, 12
	and	esi, 63
	and	edx, 63
	mov	rdx, QWORD PTR [rdi+rdx*8]
	mov	BYTE PTR -3[rcx], dl
	mov	rdx, QWORD PTR base64chars[rip]
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	BYTE PTR -1[rcx], 61
	mov	BYTE PTR -2[rcx], dl
.L12:
	test	rbp, rbp
	jle	.L13
	mov	BYTE PTR [rcx], 10
	add	rcx, 1
.L13:
	mov	r12d, ecx
	sub	r12d, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L28:
	.cfi_restore_state
	movzx	edx, BYTE PTR [rbx]
	mov	rsi, QWORD PTR base64chars[rip]
	add	rcx, 4
	sal	edx, 16
	movsx	rdx, edx
	mov	rdi, rdx
	shr	rdx, 12
	shr	rdi, 18
	and	edx, 63
	mov	rsi, QWORD PTR [rsi+rdi*8]
	mov	BYTE PTR -4[rcx], sil
	mov	rsi, QWORD PTR base64chars[rip]
	mov	rdx, QWORD PTR [rsi+rdx*8]
	mov	BYTE PTR -3[rcx], dl
	mov	edx, 15677
	mov	WORD PTR -2[rcx], dx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	rbp, 2
	jg	.L24
	test	rbp, rbp
	jle	.L6
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	movabs	rdx, 6148914691236517206
	mov	rax, rbp
	sar	rbp, 63
	imul	rdx
	sub	rdx, rbp
	lea	rbp, [rdx+rdx*2]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pack_m, .-pack_m
	.comm	base64chars,8,8
	.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_pack.c_pack_m.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pack_m, %function
pack_m:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	mov	r0, r1
	mov	r4, r1
	mov	r10, r2
	mov	r7, r3
	ldr	r5, [sp, #40]
	bl	RSTRING_PTR
	mov	r8, r0
	mov	r0, r4
	bl	RSTRING_LEN
	subs	r4, r0, #0
	beq	.L1
	cmp	r5, #2
	movgt	r6, #0
	movle	r6, #1
	cmp	r5, #0
	moveq	r6, #0
	ldr	r3, .L26
	add	r2, r4, #2
	smull	r1, fp, r3, r2
	cmp	r6, #0
	sub	fp, fp, r2, asr #31
	lsl	fp, fp, #2
	beq	.L24
	mov	r5, #45
.L3:
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_idivmod
	cmp	r1, #0
	addne	r0, r0, #1
	mov	r6, #1
	add	fp, fp, r0
.L5:
	add	r2, fp, r7
	mov	r1, r10
	mov	r0, r9
	bl	str_len_ensure
	bl	RSTRING_PTR
	cmp	r4, #2
	add	r0, r0, r7
	mov	r2, r0
	mov	r7, #3
	ble	.L6
	mov	r9, #10
	ldr	ip, .L26+4
	add	r1, r8, r7
.L9:
	ldrb	r3, [r1, #-2]	@ zero_extendqisi2
	ldrb	lr, [r1, #-3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r3, lr, lsl #16
	ldr	lr, [ip]
	lsr	r8, r3, #18
	ldr	lr, [lr, r8, lsl #2]
	ldrb	r8, [r1, #-1]	@ zero_extendqisi2
	strb	lr, [r2]
	ldr	r10, [ip]
	lsr	lr, r3, #12
	and	lr, lr, #63
	ldr	lr, [r10, lr, lsl #2]
	add	r3, r8, r3
	strb	lr, [r2, #1]
	ldr	r8, [ip]
	lsr	lr, r3, #6
	and	lr, lr, #63
	ldr	lr, [r8, lr, lsl #2]
	and	r3, r3, #63
	strb	lr, [r2, #2]
	ldr	lr, [ip]
	cmp	r5, r7
	ldr	r3, [lr, r3, lsl #2]
	sub	r4, r4, #3
	strb	r3, [r2, #3]
	strbeq	r9, [r2, #4]
	moveq	r7, #3
	addne	r2, r2, #4
	addne	r7, r7, #3
	addeq	r2, r2, #5
	cmp	r4, #2
	mov	r8, r1
	add	r1, r1, #3
	bgt	.L9
.L6:
	cmp	r4, #1
	beq	.L25
	cmp	r4, #2
	bne	.L11
	mov	lr, #61
	ldr	r1, .L26+4
	ldrb	ip, [r8]	@ zero_extendqisi2
	ldr	r4, [r1]
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	lsr	r5, ip, #2
	ldr	r4, [r4, r5, lsl #2]
	lsl	r3, r3, #8
	strb	r4, [r2]
	add	r3, r3, ip, lsl #16
	ldr	r4, [r1]
	lsr	ip, r3, #12
	and	ip, ip, #63
	ldr	ip, [r4, ip, lsl #2]
	lsr	r3, r3, #6
	strb	ip, [r2, #1]
	ldr	r1, [r1]
	and	r3, r3, #63
	ldr	r3, [r1, r3, lsl #2]
	add	r7, r7, #3
	strb	r3, [r2, #2]
	strb	lr, [r2, #3]
	add	r2, r2, #4
.L11:
	cmp	r7, #0
	movle	r6, #0
	andgt	r6, r6, #1
	cmp	r6, #0
	movne	r3, #10
	strbne	r3, [r2], #1
	sub	r4, r2, r0
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	cmp	r5, #2
	smullgt	r2, r3, r5, r3
	subgt	r5, r3, r5, asr #31
	addgt	r5, r5, r5, lsl #1
	bgt	.L3
.L4:
	cmp	r5, #0
	ble	.L5
	b	.L3
.L25:
	mov	r1, #61
	ldr	ip, .L26+4
	ldrb	r3, [r8]	@ zero_extendqisi2
	ldr	lr, [ip]
	lsr	r4, r3, #2
	ldr	lr, [lr, r4, lsl #2]
	lsl	r3, r3, #4
	strb	lr, [r2]
	ldr	ip, [ip]
	and	r3, r3, #63
	ldr	r3, [ip, r3, lsl #2]
	add	r7, r7, #3
	strb	r3, [r2, #1]
	strb	r1, [r2, #2]
	strb	r1, [r2, #3]
	add	r2, r2, #4
	b	.L11
.L27:
	.align	2
.L26:
	.word	1431655766
	.word	base64chars
	.size	pack_m, .-pack_m
	.comm	base64chars,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
