	.file	"extr_hid-multitouch.c_mt_allocate_report_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mt_allocate_report_data, @function
mt_allocate_report_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	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	rdi, QWORD PTR 8[rdi]
	mov	rbx, rsi
	mov	esi, 24
	call	devm_kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	QWORD PTR 16[rax], rbx
	mov	rsi, rbx
	mov	rdi, rbp
	call	mt_find_application@PLT
	mov	DWORD PTR 8[r12], eax
	test	eax, eax
	je	.L3
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jle	.L5
	mov	rax, QWORD PTR 8[rbx]
	sub	edx, 1
	mov	r9d, DWORD PTR HID_MAIN_ITEM_VARIABLE[rip]
	mov	rdi, QWORD PTR HID_DG_CONTACTID[rip]
	lea	rcx, 8[rax]
	lea	r8, [rcx+rdx*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, rcx
	cmp	rcx, r8
	je	.L5
.L22:
	add	rcx, 8
.L9:
	mov	rax, QWORD PTR [rax]
	test	DWORD PTR [rax], r9d
	je	.L6
	mov	esi, DWORD PTR 4[rax]
	test	esi, esi
	jle	.L6
	mov	rdx, QWORD PTR 8[rax]
	sub	esi, 1
	lea	rax, 8[rdx]
	lea	rsi, [rax+rsi*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	add	rax, 8
.L8:
	cmp	QWORD PTR [rdx], rdi
	jne	.L7
	mov	DWORD PTR [r12], 1
.L7:
	mov	rdx, rax
	cmp	rsi, rax
	jne	.L21
	mov	rax, rcx
	cmp	rcx, r8
	jne	.L22
.L5:
	lea	rdi, 4[r12]
	mov	rsi, rbp
	call	list_add_tail@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r12
	xor	r12d, r12d
	call	devm_kfree@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mt_allocate_report_data, .-mt_allocate_report_data
	.comm	HID_MAIN_ITEM_VARIABLE,4,4
	.comm	HID_DG_CONTACTID,8,8
	.comm	GFP_KERNEL,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_hid-multitouch.c_mt_allocate_report_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt_allocate_report_data, %function
mt_allocate_report_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, [r3]
	mov	r4, r0
	mov	r7, r1
	ldr	r0, [r0, #4]
	mov	r1, #16
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L1
	mov	r1, r7
	mov	r0, r4
	str	r7, [r5, #12]
	bl	mt_find_application
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r5, #8]
	beq	.L3
	ldr	r0, [r7]
	cmp	r0, #0
	ble	.L5
	ldr	lr, [r7, #4]
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	sub	lr, lr, #4
	mov	r6, #1
	ldr	r7, [r2]
	ldr	ip, [r3]
	add	r0, lr, r0, lsl #2
	b	.L9
.L6:
	cmp	lr, r0
	beq	.L5
.L9:
	ldr	r3, [lr, #4]!
	ldr	r2, [r3]
	tst	r7, r2
	beq	.L6
	ldr	r1, [r3, #4]
	cmp	r1, #0
	ble	.L6
	ldr	r3, [r3, #8]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L8:
	ldr	r2, [r3, #4]!
	cmp	r2, ip
	streq	r6, [r5]
	cmp	r1, r3
	bne	.L8
	cmp	lr, r0
	bne	.L9
.L5:
	mov	r1, r4
	add	r0, r5, #4
	bl	list_add_tail
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	devm_kfree
	mov	r5, r6
	b	.L1
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	HID_MAIN_ITEM_VARIABLE
	.word	HID_DG_CONTACTID
	.size	mt_allocate_report_data, .-mt_allocate_report_data
	.comm	HID_MAIN_ITEM_VARIABLE,4,4
	.comm	HID_DG_CONTACTID,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
