	.file	"extr_smscufx.c_ufx_handle_damage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ufx_handle_damage unable to get urb"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Error submitting URB"
	.text
	.p2align 4
	.type	ufx_handle_damage, @function
ufx_handle_damage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	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, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	edi, [rcx+rcx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 20[rsp], esi
	mov	esi, 4
	mov	DWORD PTR 24[rsp], edx
	call	ALIGN@PLT
	mov	QWORD PTR 8[rsp], rax
	test	r12d, r12d
	jle	.L2
	test	r13d, r13d
	jle	.L2
	mov	rax, QWORD PTR 8[rbx]
	lea	edx, [r12+r14]
	cmp	edx, DWORD PTR [rax]
	jg	.L2
	lea	edx, 0[r13+r15]
	cmp	edx, DWORD PTR 4[rax]
	jg	.L2
	mov	rdi, rbx
	call	atomic_read@PLT
	test	eax, eax
	je	.L5
	lea	eax, 24[r12+r12]
	xor	r14d, r14d
	mov	DWORD PTR 28[rsp], eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	call	ufx_get_urb@PLT
	mov	r15, rax
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR 28[rsp]
	xor	edi, edi
	cmp	DWORD PTR [r15], eax
	setl	dil
	call	BUG_ON@PLT
	mov	eax, DWORD PTR [r15]
	xor	edx, edx
	mov	esi, r13d
	sub	esi, r14d
	sub	eax, 24
	cdqe
	div	QWORD PTR 8[rsp]
	mov	edi, eax
	call	min@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	edx, DWORD PTR [r15]
	xor	esi, esi
	mov	ebp, eax
	call	memset@PLT
	mov	eax, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 4[r15]
	mov	r9d, ebp
	mov	edx, DWORD PTR 20[rsp]
	mov	r8d, r12d
	mov	rdi, rbx
	lea	ecx, [rax+r14]
	add	r14d, ebp
	call	ufx_raw_rect@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	rsi, r15
	mov	rdi, rbx
	imul	edx, ebp
	add	edx, 24
	call	ufx_submit_urb@PLT
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	check_warn_return@PLT
	cmp	r13d, r14d
	jg	.L7
.L5:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ufx_handle_damage, .-ufx_handle_damage
	.comm	EINVAL,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_smscufx.c_ufx_handle_damage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ufx_handle_damage unable to get urb\000"
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"Error submitting URB\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufx_handle_damage, %function
ufx_handle_damage:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	sub	sp, sp, #20
	ldr	r9, [sp, #56]
	mov	r6, r0
	mov	fp, r1
	lsl	r0, r3, #1
	mov	r1, #4
	mov	r4, r2
	str	r2, [sp, #8]
	bl	ALIGN
	cmp	r9, #0
	cmpgt	r5, #0
	movle	r7, #1
	movgt	r7, #0
	ble	.L2
	ldr	r2, [r6, #4]
	add	r3, r5, fp
	ldr	r1, [r2]
	cmp	r3, r1
	bgt	.L2
	ldr	r3, [r2, #4]
	add	r2, r9, r4
	cmp	r2, r3
	bgt	.L2
	mov	r10, r0
	mov	r0, r6
	bl	atomic_read
	cmp	r0, #0
	beq	.L5
	add	r3, r5, #12
	lsl	r3, r3, #1
	str	r3, [sp, #12]
.L7:
	mov	r0, r6
	bl	ufx_get_urb
	subs	r4, r0, #0
	beq	.L14
	ldr	r3, [sp, #12]
	ldr	r0, [r4]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	BUG_ON
	ldr	r0, [r4]
	mov	r1, r10
	sub	r0, r0, #24
	bl	__aeabi_uidiv
	sub	r1, r9, r7
	bl	min
	mov	r8, r0
	mov	r1, #0
	ldr	r2, [r4]
	ldr	r0, [r4, #4]
	bl	memset
	ldr	r3, [sp, #8]
	ldr	r1, [r4, #4]
	add	r3, r3, r7
	mov	r2, fp
	mov	r0, r6
	stm	sp, {r5, r8}
	bl	ufx_raw_rect
	mul	r2, r10, r8
	mov	r1, r4
	add	r2, r2, #24
	mov	r0, r6
	bl	ufx_submit_urb
	add	r7, r7, r8
	ldr	r1, .L15
	bl	check_warn_return
	cmp	r9, r7
	bgt	.L7
.L5:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r0, .L15+8
	bl	pr_warn
	mov	r0, r4
	b	.L1
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.size	ufx_handle_damage, .-ufx_handle_damage
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
