	.file	"932261.c"
	.intel_syntax noprefix
	.text
	.type	scteken_copy, @function
scteken_copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	edx, eax
	jne	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sc_hist_save_one_line@PLT
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L3
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, edx
	imul	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, esi
	mov	rsi, QWORD PTR -8[rbp]
	lea	rdi, 4[rsi]
	mov	esi, eax
	call	sc_vtb_move@PLT
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jge	.L5
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 4[rax]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	call	sc_vtb_move@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -20[rbp], eax
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L7
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
	add	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 4[rax]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	call	sc_vtb_move@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	DWORD PTR -20[rbp], eax
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L9
.L4:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mark_for_update@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
	add	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	add	eax, ecx
	mov	ecx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	sub	ecx, eax
	lea	eax, [rdx+rcx]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mark_for_update@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sc_remove_cutmarking@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	scteken_copy, .-scteken_copy
	.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	"932261.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scteken_copy, %function
scteken_copy:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	sc_hist_save_one_line
.L2:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r1, r2, r3
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	ip, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-36]
	ldr	r2, [r2, #4]
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, ip
	bl	sc_vtb_move
	b	.L4
.L3:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r2, [r2, #8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L6
.L7:
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	bl	sc_vtb_move
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L6:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	b	.L4
.L5:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r2, [r2, #4]
	sub	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	ldr	r2, [r2, #4]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	b	.L8
.L9:
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	bl	sc_vtb_move
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L9
.L4:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mark_for_update
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r2, [r2, #4]
	sub	r3, r3, r2
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #8]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r3, r1, r3
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mark_for_update
	ldr	r0, [fp, #-16]
	bl	sc_remove_cutmarking
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	scteken_copy, .-scteken_copy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
