	.file	"139462.c"
	.intel_syntax noprefix
	.text
	.globl	tonccpy
	.type	tonccpy, @function
tonccpy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	cmp	DWORD PTR -68[rbp], 0
	je	.L2
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
.L2:
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	or	eax, edx
	and	eax, 3
	test	eax, eax
	jne	.L5
	cmp	DWORD PTR -68[rbp], 3
	jbe	.L5
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	shr	eax, 2
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 3
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	shr	eax, 2
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -40[rbp], 3
	je	.L6
	cmp	DWORD PTR -40[rbp], 3
	ja	.L7
	cmp	DWORD PTR -40[rbp], 2
	je	.L8
	cmp	DWORD PTR -40[rbp], 2
	ja	.L7
	cmp	DWORD PTR -40[rbp], 0
	je	.L9
	cmp	DWORD PTR -40[rbp], 1
	je	.L10
	jmp	.L7
.L11:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 4[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	QWORD PTR -8[rbp], rcx
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
.L6:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 4[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	QWORD PTR -8[rbp], rcx
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
.L8:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 4[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	QWORD PTR -8[rbp], rcx
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
.L10:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, 4[rdx]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	QWORD PTR -8[rbp], rcx
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
.L9:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -44[rbp], edx
	test	eax, eax
	jne	.L11
.L7:
	and	DWORD PTR -68[rbp], 3
	cmp	DWORD PTR -68[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L4
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L13
.L5:
	mov	rax, QWORD PTR -56[rbp]
	and	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -36[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	add	QWORD PTR -32[rbp], 2
	sub	DWORD PTR -68[rbp], 1
	cmp	DWORD PTR -68[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -56[rbp]
	jmp	.L4
.L13:
	mov	eax, DWORD PTR -68[rbp]
	shr	eax
	mov	DWORD PTR -44[rbp], eax
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	WORD PTR [rax], dx
	add	QWORD PTR -24[rbp], 2
.L14:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -44[rbp], edx
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 1
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR [rax]
	mov	al, 0
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
.L16:
	mov	rax, QWORD PTR -56[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tonccpy, .-tonccpy
	.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	"139462.c"
	.text
	.align	2
	.global	tonccpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	tonccpy, %function
tonccpy:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [fp, #-40]
	b	.L4
.L3:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	orr	r3, r2, r3
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bls	.L5
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	lsr	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	and	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L12:
	ldr	r2, [fp, #-20]
	add	r3, r2, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	str	r1, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3]
.L7:
	ldr	r2, [fp, #-20]
	add	r3, r2, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	str	r1, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3]
.L9:
	ldr	r2, [fp, #-20]
	add	r3, r2, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	str	r1, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3]
.L10:
	ldr	r2, [fp, #-20]
	add	r3, r2, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r1, r3, #4
	str	r1, [fp, #-16]
	ldr	r2, [r2]
	str	r2, [r3]
.L11:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	str	r2, [fp, #-32]
	cmp	r3, #0
	bne	.L12
.L6:
	ldr	r3, [fp, #-48]
	and	r3, r3, #3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-40]
	b	.L4
.L13:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	b	.L14
.L5:
	ldr	r3, [fp, #-40]
	and	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, #255
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-24]
	add	r1, r3, #1
	str	r1, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-40]
	b	.L4
.L14:
	ldr	r3, [fp, #-48]
	lsr	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L16:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-28]
	add	r1, r3, #2
	str	r1, [fp, #-28]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	str	r2, [fp, #-32]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-48]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	bic	r3, r3, #255
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
.L17:
	ldr	r3, [fp, #-40]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	tonccpy, .-tonccpy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
