	.file	"extr_image.c_distort_image.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	distort_image
	.type	distort_image, @function
distort_image:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sar	rbx, 32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	movss	DWORD PTR 8[rsp], xmm1
	movss	DWORD PTR 4[rsp], xmm2
	movss	DWORD PTR 12[rsp], xmm0
	call	rgb_to_hsv@PLT
	mov	edx, 1
	mov	rdi, rbp
	mov	rsi, r12
	movss	xmm0, DWORD PTR 8[rsp]
	call	scale_image_channel@PLT
	mov	edx, 2
	mov	rdi, rbp
	mov	rsi, r12
	movss	xmm2, DWORD PTR 4[rsp]
	movaps	xmm0, xmm2
	call	scale_image_channel@PLT
	mov	edx, ebx
	movss	xmm3, DWORD PTR 12[rsp]
	imul	edx, ebp
	test	edx, edx
	jle	.L8
	sub	edx, 1
	movss	xmm1, DWORD PTR .LC0[rip]
	mov	rax, r12
	pxor	xmm2, xmm2
	lea	rdx, 4[r12+rdx*4]
	.p2align 4,,10
	.p2align 3
.L7:
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm3
	comiss	xmm0, xmm1
	jbe	.L12
	subss	xmm0, xmm1
.L12:
	comiss	xmm2, xmm0
	movss	DWORD PTR [rax], xmm0
	jbe	.L5
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
.L5:
	add	rax, 4
	cmp	rdx, rax
	jne	.L7
.L8:
	mov	rdi, rbp
	mov	rsi, r12
	call	hsv_to_rgb@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rdi, rbp
	mov	rsi, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	constrain_image@PLT
	.cfi_endproc
.LFE0:
	.size	distort_image, .-distort_image
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1065353216
	.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_image.c_distort_image.c"
	.text
	.global	__aeabi_fadd
	.global	__aeabi_fcmpgt
	.global	__aeabi_fsub
	.global	__aeabi_fcmplt
	.align	2
	.global	distort_image
	.syntax unified
	.arm
	.fpu softvfp
	.type	distort_image, %function
distort_image:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #24
	add	r6, sp, #12
	stm	r6, {r0, r1, r2}
	ldm	r6, {r0, r1, r2}
	mov	r4, r0
	ldr	r8, [sp, #16]
	ldr	r10, [sp, #56]	@ float
	mul	r8, r4, r8
	ldr	r7, [sp, #60]	@ float
	ldr	r5, [sp, #20]
	mov	r9, r3
	bl	rgb_to_hsv
	ldm	r6, {r0, r1, r2}
	mov	r3, #1
	str	r10, [sp]	@ float
	bl	scale_image_channel
	ldm	r6, {r0, r1, r2}
	mov	r3, #2
	str	r7, [sp]	@ float
	bl	scale_image_channel
	cmp	r8, #0
	subgt	r5, r5, #4
	movgt	r7, #1065353216
	movgt	r10, #0
	addgt	r8, r5, r8, lsl #2
	ble	.L8
.L7:
	ldr	r1, [r5, #4]!	@ float
	mov	r0, r9
	bl	__aeabi_fadd
	mov	r1, r7
	mov	r4, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L12
	mov	r0, r4
	mov	r1, r7
	bl	__aeabi_fsub
	mov	r4, r0
.L12:
	mov	r1, r10
	mov	r0, r4
	str	r4, [r5]	@ float
	bl	__aeabi_fcmplt
	cmp	r0, #0
	beq	.L5
	mov	r0, r4
	mov	r1, r7
	bl	__aeabi_fadd
	str	r0, [r5]	@ float
.L5:
	cmp	r5, r8
	bne	.L7
.L8:
	ldm	r6, {r0, r1, r2}
	bl	hsv_to_rgb
	ldm	r6, {r0, r1, r2}
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	constrain_image
	.size	distort_image, .-distort_image
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
