	.file	"extr_scale2x.c_scale2x_8_def_single.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scale2x_8_def_single, @function
scale2x_8_def_single:
.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, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	xor	edi, edi
	cmp	r8d, 1
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	seta	dil
	mov	rbx, rdx
	call	assert@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rdx
	mov	rcx, rdx
	cmp	rax, QWORD PTR [r12]
	jne	.L2
	cmp	rax, QWORD PTR 0[r13]
	cmovne	rcx, rax
.L2:
	mov	QWORD PTR 8[rbp], rcx
	lea	r9, 8[r12]
	lea	r10, 8[r13]
	lea	rsi, 16[rbp]
	cmp	r14d, 2
	je	.L3
	lea	r11d, -3[r14]
	mov	eax, 8
	lea	rcx, 16[0+r11*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r8, QWORD PTR -8[rbx+rax]
	mov	rdi, QWORD PTR 8[rbx+rax]
	cmp	r8, rdi
	je	.L4
	cmp	rdx, r8
	je	.L5
	mov	r8, QWORD PTR [rbx+rax]
.L5:
	mov	QWORD PTR 0[rbp+rax*2], r8
	cmp	rdx, rdi
	je	.L6
	mov	rdi, QWORD PTR [rbx+rax]
.L6:
	mov	QWORD PTR 8[rbp+rax*2], rdi
	add	rax, 8
	cmp	rcx, rax
	je	.L18
.L8:
	mov	rdx, QWORD PTR [r12+rax]
	cmp	rdx, QWORD PTR 0[r13+rax]
	jne	.L19
.L4:
	mov	rdx, QWORD PTR [rbx+rax]
	mov	QWORD PTR 0[rbp+rax*2], rdx
	mov	QWORD PTR 8[rbp+rax*2], rdx
	add	rax, 8
	cmp	rcx, rax
	jne	.L8
.L18:
	lea	rax, 1[r11]
	lea	rdx, 0[0+rax*8]
	sal	rax, 4
	add	rbx, rdx
	add	r9, rdx
	add	r10, rdx
	add	rsi, rax
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbx]
.L3:
	mov	rcx, rax
	cmp	QWORD PTR [r9], rdx
	jne	.L9
	cmp	rdx, QWORD PTR [r10]
	mov	rcx, rdx
	cmove	rcx, rax
.L9:
	mov	QWORD PTR [rsi], rcx
	mov	QWORD PTR 8[rsi], rax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	scale2x_8_def_single, .-scale2x_8_def_single
	.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_scale2x.c_scale2x_8_def_single.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scale2x_8_def_single, %function
scale2x_8_def_single:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r7, r2
	mov	r4, r0
	ldr	r8, [sp, #32]
	mov	r6, r3
	cmp	r8, #1
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	ldr	r0, [r5]
	ldr	r1, [r7, #4]
	ldr	r3, [r7]
	cmp	r1, r0
	movne	r0, r3
	str	r3, [r4]
	bne	.L2
	ldr	r0, [r6]
	cmp	r1, r0
	movne	r0, r1
	moveq	r0, r3
.L2:
	subs	r2, r8, #2
	str	r0, [r4, #4]
	add	r9, r5, #4
	add	ip, r7, #4
	add	r10, r6, #4
	add	r8, r4, #8
	beq	.L3
	mov	r1, r5
	mov	r3, r6
	mov	lr, r2
	add	r0, r4, #16
	b	.L8
.L19:
	ldr	r6, [ip, #-4]
	ldr	r5, [ip, #4]
	cmp	r6, r5
	beq	.L4
	cmp	r4, r6
	ldrne	r6, [ip]
	cmp	r4, r5
	ldrne	r5, [ip]
	subs	lr, lr, #1
	str	r6, [r0, #-8]
	str	r5, [r0, #-4]
	add	ip, ip, #4
	add	r0, r0, #8
	beq	.L18
.L8:
	ldr	r4, [r1, #4]!
	ldr	r5, [r3, #4]!
	cmp	r4, r5
	bne	.L19
.L4:
	ldr	r4, [ip]
	subs	lr, lr, #1
	str	r4, [r0, #-8]
	str	r4, [r0, #-4]
	add	ip, ip, #4
	add	r0, r0, #8
	bne	.L8
.L18:
	add	r3, r7, r2, lsl #2
	ldr	r1, [r3, #4]
	ldr	r3, [r7, r2, lsl #2]
	add	r9, r9, r2, lsl #2
	add	r10, r10, r2, lsl #2
	add	r8, r8, r2, lsl #3
.L3:
	ldr	r2, [r9]
	cmp	r2, r3
	movne	r2, r1
	bne	.L9
	ldr	r2, [r10]
	cmp	r3, r2
	movne	r2, r3
	moveq	r2, r1
.L9:
	str	r2, [r8]
	str	r1, [r8, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	scale2x_8_def_single, .-scale2x_8_def_single
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
