	.file	"extr_fsl-diu-fb.c_fsl_diu_load_cursor_image.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fsl_diu_load_cursor_image, @function
fsl_diu_load_cursor_image:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r10, rdi
	mov	edi, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [r10]
	mov	DWORD PTR 4[rsp], r9d
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	call	cpu_to_le16@PLT
	mov	edi, r12d
	mov	r14d, eax
	call	cpu_to_le16@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L1
	mov	r15d, eax
	lea	eax, -1[r13]
	xor	r12d, r12d
	add	rax, 1
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	be32_to_cpup@PLT
	test	r13d, r13d
	je	.L3
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, rbx
	mov	ecx, -2147483648
	lea	rdi, [rbx+rdi*4]
	.p2align 4,,10
	.p2align 3
.L5:
	test	eax, ecx
	mov	esi, r15d
	cmovne	esi, r14d
	add	rdx, 4
	sar	ecx
	mov	DWORD PTR -4[rdx], esi
	cmp	rdi, rdx
	jne	.L5
.L3:
	movsx	rax, DWORD PTR MAX_CURS[rip]
	mov	esi, 8
	mov	edi, r13d
	add	r12d, 1
	lea	rbx, [rbx+rax*4]
	call	DIV_ROUND_UP@PLT
	cdqe
	add	rbp, rax
	cmp	DWORD PTR 4[rsp], r12d
	jne	.L6
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fsl_diu_load_cursor_image, .-fsl_diu_load_cursor_image
	.comm	MAX_CURS,4,4
	.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_fsl-diu-fb.c_fsl_diu_load_cursor_image.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsl_diu_load_cursor_image, %function
fsl_diu_load_cursor_image:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	ldr	r2, [r0]
	mov	r0, r3
	mov	r5, r1
	ldr	r4, [r2]
	ldr	r7, [sp, #40]
	bl	cpu_to_le16
	mov	fp, r0
	mov	r0, r6
	bl	cpu_to_le16
	ldr	r3, [sp, #44]
	cmp	r3, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r8, r0
	mov	r6, #0
	lsl	r9, r7, #2
	ldr	r10, .L18
	sub	r9, r9, #4
.L6:
	mov	r0, r5
	bl	be32_to_cpup
	cmp	r7, #0
	beq	.L3
	mov	r1, #-2147483648
	sub	r3, r4, #4
	add	lr, r4, r9
.L5:
	tst	r0, r1
	movne	ip, fp
	moveq	ip, r8
	str	ip, [r3, #4]!
	cmp	lr, r3
	asr	r1, r1, #1
	bne	.L5
.L3:
	ldr	r3, [r10]
	mov	r1, #8
	mov	r0, r7
	add	r4, r4, r3, lsl #2
	bl	DIV_ROUND_UP
	ldr	r3, [sp, #44]
	add	r6, r6, #1
	cmp	r3, r6
	add	r5, r5, r0
	bne	.L6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	MAX_CURS
	.size	fsl_diu_load_cursor_image, .-fsl_diu_load_cursor_image
	.comm	MAX_CURS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
