	.file	"extr_image.c_get_image_layer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	get_image_layer
	.type	get_image_layer, @function
get_image_layer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sar	r13, 32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	esi, r13d
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	mov	edx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	make_image@PLT
	mov	ecx, r13d
	imul	ecx, r12d
	test	ecx, ecx
	jle	.L2
	imul	ebx, r13d
	lea	r8d, -1[rcx]
	xor	ecx, ecx
	imul	ebx, r12d
	movsx	rbx, ebx
	lea	rdi, 0[rbp+rbx*4]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR [rdi+rcx*4]
	mov	DWORD PTR [rdx+rcx*4], esi
	mov	rsi, rcx
	add	rcx, 1
	cmp	r8, rsi
	jne	.L3
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_image_layer, .-get_image_layer
	.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_get_image_layer.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_image_layer
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_image_layer, %function
get_image_layer:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	sub	sp, sp, #24
	add	ip, sp, #4
	stm	ip, {r1, r2, r3}
	ldr	r6, [sp, #8]
	ldr	ip, .L9
	mov	r2, r6
	mov	r3, #1
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	mov	r4, r0
	bl	make_image
	mul	ip, r6, r5
	cmp	ip, #0
	ble	.L1
	ldr	r2, [sp, #40]
	ldr	r3, [r4, #8]
	mul	r2, r6, r2
	mul	r1, r5, r2
	ldr	r2, [sp, #12]
	sub	r1, r1, #-1073741823
	sub	r3, r3, #4
	add	r2, r2, r1, lsl #2
	add	ip, r3, ip, lsl #2
.L3:
	ldr	r1, [r2, #4]!
	str	r1, [r3, #4]!
	cmp	r3, ip
	bne	.L3
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	get_image_layer, .-get_image_layer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
