	.file	"958257.c"
	.intel_syntax noprefix
	.text
	.globl	astex_codelet__1
	.type	astex_codelet__1, @function
astex_codelet__1:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
.L2:
	jmp	.L3
.L15:
	cmp	DWORD PTR 48[rbp], 0
	je	.L4
	mov	eax, DWORD PTR 40[rbp]
	and	eax, 15
	mov	DWORD PTR -8[rbp], eax
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR 40[rbp]
	sar	eax, 4
	and	eax, 15
	mov	DWORD PTR -8[rbp], eax
.L5:
	cmp	DWORD PTR 48[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR 32[rbp], eax
	cmp	DWORD PTR 32[rbp], 0
	jns	.L6
	mov	DWORD PTR 32[rbp], 0
.L6:
	cmp	DWORD PTR 32[rbp], 88
	jle	.L7
	mov	DWORD PTR 32[rbp], 88
.L7:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 8
	mov	DWORD PTR -4[rbp], eax
	and	DWORD PTR -8[rbp], 7
	mov	eax, DWORD PTR 16[rbp]
	sar	eax, 3
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 4
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR 16[rbp]
	add	DWORD PTR -12[rbp], eax
.L8:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 2
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR 16[rbp]
	sar	eax
	add	DWORD PTR -12[rbp], eax
.L9:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 1
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR 16[rbp]
	sar	eax, 2
	add	DWORD PTR -12[rbp], eax
.L10:
	cmp	DWORD PTR -4[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR 24[rbp], eax
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR 24[rbp], eax
.L12:
	cmp	DWORD PTR 24[rbp], 32767
	jle	.L13
	mov	DWORD PTR 24[rbp], 32767
	jmp	.L14
.L13:
	cmp	DWORD PTR 24[rbp], -32768
	jge	.L14
	mov	DWORD PTR 24[rbp], -32768
.L14:
	mov	eax, DWORD PTR 32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	edx, DWORD PTR 24[rbp]
	mov	WORD PTR [rax], dx
	sub	DWORD PTR -20[rbp], 1
.L3:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L15
	mov	eax, DWORD PTR 24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR 32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 2[rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
.L16:
	.cfi_endproc
.LFE0:
	.size	astex_codelet__1, .-astex_codelet__1
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"958257.c"
	.text
	.align	2
	.global	astex_codelet__1
	.syntax unified
	.arm
	.fpu softvfp
	.type	astex_codelet__1, %function
astex_codelet__1:
	@ args = 28, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
.L2:
	b	.L3
.L15:
	ldr	r3, [fp, #28]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #24]
	and	r3, r3, #15
	str	r3, [fp, #-12]
	b	.L5
.L4:
	ldr	r3, [fp, #4]
	add	r2, r3, #1
	str	r2, [fp, #4]
	ldrsb	r3, [r3]
	str	r3, [fp, #24]
	ldr	r3, [fp, #24]
	asr	r3, r3, #4
	and	r3, r3, #15
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #28]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #28]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	str	r3, [fp, #20]
	ldr	r3, [fp, #20]
	cmp	r3, #0
	bge	.L6
	mov	r3, #0
	str	r3, [fp, #20]
.L6:
	ldr	r3, [fp, #20]
	cmp	r3, #88
	ble	.L7
	mov	r3, #88
	str	r3, [fp, #20]
.L7:
	ldr	r3, [fp, #-12]
	and	r3, r3, #8
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	r3, r3, #7
	str	r3, [fp, #-12]
	ldr	r3, [fp, #12]
	asr	r3, r3, #3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L8
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #12]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-12]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #12]
	asr	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #12]
	asr	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r2, [fp, #16]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #16]
	b	.L12
.L11:
	ldr	r2, [fp, #16]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #16]
.L12:
	ldr	r3, [fp, #16]
	cmp	r3, #32768
	blt	.L13
	ldr	r3, .L17
	str	r3, [fp, #16]
	b	.L14
.L13:
	ldr	r3, [fp, #16]
	cmn	r3, #32768
	bge	.L14
	ldr	r3, .L17+4
	str	r3, [fp, #16]
.L14:
	ldr	r3, [fp, #20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #12]
	ldr	r3, [fp, #8]
	add	r2, r3, #2
	str	r2, [fp, #8]
	ldr	r2, [fp, #16]
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L15
	ldr	r3, [fp, #16]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #20]
	and	r2, r3, #255
	ldr	r3, [fp, #-28]
	strb	r2, [r3, #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	32767
	.word	-32768
.L16:
	.size	astex_codelet__1, .-astex_codelet__1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
