	.file	"432473.c"
	.intel_syntax noprefix
	.text
	.globl	IMG_wave_horz_c
	.type	IMG_wave_horz_c, @function
IMG_wave_horz_c:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -8[rbp], 16384
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	eax, edx
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	imul	eax, edx
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L3:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	sar	eax, 15
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	sar	eax
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -16[rbp], 2
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L5
	mov	DWORD PTR -16[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -4[rbp], 16384
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	lea	edx, -6[rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	eax, edx
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	mov	eax, 7
	sub	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	imul	eax, edx
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L8
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 15
	mov	edx, eax
	mov	ecx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, ecx
	sar	eax
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -16[rbp], 2
.L6:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L9
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	IMG_wave_horz_c, .-IMG_wave_horz_c
	.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	"432473.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	IMG_wave_horz_c
	.syntax unified
	.arm
	.fpu softvfp
	.type	IMG_wave_horz_c, %function
IMG_wave_horz_c:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L5:
	mov	r3, #16384
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [fp, #4]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mul	r3, r1, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L4
	ldr	r3, [fp, #-12]
	asr	r2, r3, #15
	ldr	r3, [fp, #-20]
	asr	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L6
.L9:
	mov	r3, #16384
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	add	r3, r2, r3
	sub	r2, r3, #6
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [fp, #4]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #7
	lsl	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mul	r3, r1, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L8
	ldr	r3, [fp, #-8]
	asr	r2, r3, #15
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #4]
	add	r3, r1, r3
	asr	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L9
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	IMG_wave_horz_c, .-IMG_wave_horz_c
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
