	.file	"extr_lstrlib.c_packint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	packint, @function
packint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	esi, ecx
	call	luaL_prepbuffsize@PLT
	mov	esi, DWORD PTR MC[rip]
	mov	ecx, ebx
	mov	rdx, rax
	test	ebp, ebp
	jne	.L2
	lea	edx, -1[r12]
	movsx	rdx, edx
	add	rdx, rax
.L2:
	and	ecx, esi
	mov	BYTE PTR [rdx], cl
	cmp	r12d, 1
	jle	.L8
	lea	edx, -2[r12]
	mov	r9d, 1
	lea	esi, -1[r12]
	add	rdx, 2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR NB[rip]
	sar	ebx, cl
	mov	ecx, esi
	sub	ecx, r9d
	test	ebp, ebp
	mov	r10d, ebx
	movsx	rcx, ecx
	cmovne	rcx, r9
	and	r10b, BYTE PTR MC[rip]
	add	r9, 1
	mov	BYTE PTR [rax+rcx], r10b
	cmp	r9, rdx
	jne	.L7
.L8:
	test	r14d, r14d
	je	.L5
	mov	edx, DWORD PTR SZINT[rip]
	cmp	edx, r12d
	jge	.L5
	movsx	rcx, edx
	mov	esi, edx
	not	esi
	mov	ebx, ecx
	add	esi, r12d
	sub	ebx, edx
	lea	r8, 1[rcx+rsi]
	lea	edi, -1[r12+rbx]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, edi
	mov	esi, DWORD PTR MC[rip]
	sub	edx, ecx
	test	ebp, ebp
	movsx	rdx, edx
	cmovne	rdx, rcx
	add	rcx, 1
	mov	BYTE PTR [rax+rdx], sil
	cmp	rcx, r8
	jne	.L10
.L5:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	luaL_addsize@PLT
	.cfi_endproc
.LFE0:
	.size	packint, .-packint
	.comm	SZINT,4,4
	.comm	NB,4,4
	.comm	MC,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_lstrlib.c_packint.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	packint, %function
packint:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	mov	r4, r1
	mov	r1, r3
	mov	r5, r3
	mov	r7, r0
	ldr	r8, [sp, #32]
	bl	luaL_prepbuffsize
	cmp	r6, #0
	movne	r1, r0
	ldr	r2, .L18
	subeq	r1, r5, #1
	ldr	r3, [r2]
	addeq	r1, r0, r1
	and	r3, r3, r4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r5, #1
	strb	r3, [r1]
	ble	.L8
	mov	lr, #1
	ldr	r1, .L18+4
	sub	r9, r5, #1
.L3:
	ldr	r3, [r1]
	cmp	r6, #0
	asr	r4, r4, r3
	movne	r3, lr
	ldr	ip, [r2]
	subeq	r3, r9, lr
	and	ip, ip, r4
	lsl	ip, ip, #24
	add	lr, lr, #1
	asr	ip, ip, #24
	cmp	r5, lr
	strb	ip, [r0, r3]
	bne	.L3
.L8:
	cmp	r8, #0
	beq	.L5
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, r5
	bge	.L5
	sub	lr, r5, #1
.L11:
	cmp	r6, #0
	movne	r1, r3
	subeq	r1, lr, r3
	ldr	ip, [r2]
	add	r3, r3, #1
	cmp	r5, r3
	strb	ip, [r0, r1]
	bne	.L11
.L5:
	mov	r1, r5
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	luaL_addsize
.L19:
	.align	2
.L18:
	.word	MC
	.word	NB
	.word	SZINT
	.size	packint, .-packint
	.comm	SZINT,4,4
	.comm	NB,4,4
	.comm	MC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
