	.file	"extr_ccv_basic.c__ccv_flip_x_self.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_ccv_flip_x_self, @function
_ccv_flip_x_self:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -56
	mov	edi, DWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	CCV_GET_DATA_TYPE_SIZE@PLT
	mov	edi, DWORD PTR 24[r12]
	mov	r15d, eax
	call	CCV_GET_CHANNEL@PLT
	imul	r15d, eax
	mov	edi, r15d
	call	alloca@PLT
	mov	DWORD PTR -84[rbp], 0
	mov	r14, rax
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, r15d
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	ebx, ebx
	cmp	DWORD PTR 4[r12], 1
	mov	r13, QWORD PTR -72[rbp]
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r13
	mov	edx, r15d
	mov	rdi, r14
	call	memcpy@PLT
	mov	esi, ebx
	mov	rdi, r13
	mov	edx, r15d
	not	esi
	add	esi, DWORD PTR 4[r12]
	imul	esi, r15d
	movsx	rsi, esi
	add	rsi, QWORD PTR -72[rbp]
	call	memcpy@PLT
	mov	edi, ebx
	mov	rsi, r14
	mov	edx, r15d
	not	edi
	add	edi, DWORD PTR 4[r12]
	add	ebx, 1
	imul	edi, r15d
	movsx	rdi, edi
	add	rdi, QWORD PTR -72[rbp]
	call	memcpy@PLT
	mov	esi, DWORD PTR 4[r12]
	add	r13, QWORD PTR -80[rbp]
	mov	eax, esi
	shr	eax, 31
	add	eax, esi
	sar	eax
	cmp	eax, ebx
	jg	.L4
.L6:
	movsx	rax, DWORD PTR 8[r12]
	add	DWORD PTR -84[rbp], 1
	add	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	cmp	DWORD PTR [r12], eax
	jg	.L2
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_ccv_flip_x_self, .-_ccv_flip_x_self
	.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_ccv_basic.c__ccv_flip_x_self.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ccv_flip_x_self, %function
_ccv_flip_x_self:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L13
	mov	r8, r0
	ldr	r0, [r0, #16]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	CCV_GET_DATA_TYPE_SIZE
	mov	r5, r0
	ldr	r0, [r8, #16]
	bl	CCV_GET_CHANNEL
	mul	r5, r0, r5
	ldr	r3, [r8]
	add	r2, r5, #7
	bic	r2, r2, #7
	cmp	r3, #0
	ldr	r7, [r8, #12]
	sub	sp, sp, r2
	ble	.L1
	mov	r2, #0
	mov	r9, sp
	ldr	r4, [r8, #4]
	str	r2, [fp, #-48]
.L2:
	cmp	r4, #1
	movgt	r10, r7
	movgt	r6, #0
	ble	.L6
.L4:
	mov	r1, r10
	mov	r2, r5
	mov	r0, r9
	bl	memcpy
	sub	r1, r4, #1
	sub	r1, r1, r6
	mov	r2, r5
	mov	r0, r10
	mla	r1, r5, r1, r7
	bl	memcpy
	ldr	r0, [r8, #4]
	mov	r2, r5
	sub	r0, r0, #1
	sub	r0, r0, r6
	mov	r1, r9
	mla	r0, r5, r0, r7
	bl	memcpy
	ldr	r4, [r8, #4]
	add	r6, r6, #1
	add	r2, r4, r4, lsr #31
	cmp	r6, r2, asr #1
	add	r10, r10, r5
	blt	.L4
	ldr	r3, [r8]
.L6:
	ldr	r2, [fp, #-48]
	add	r2, r2, #1
	mov	r1, r2
	str	r2, [fp, #-48]
	ldr	r2, [r8, #8]
	cmp	r3, r1
	add	r7, r7, r2
	bgt	.L2
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	_ccv_flip_x_self, .-_ccv_flip_x_self
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
