	.file	"extr_hid-core.c_hid_input_field.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hid_input_field, @function
hid_input_field:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r15d, DWORD PTR [rsi]
	mov	rax, QWORD PTR 24[rsi]
	mov	ebx, DWORD PTR 4[rsi]
	mov	r12d, DWORD PTR 8[rsi]
	mov	QWORD PTR 32[rsp], rdi
	mov	QWORD PTR 8[rsp], rax
	mov	r13, QWORD PTR 16[rsi]
	lea	eax, 0[0+r15*8]
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	edi, eax
	mov	DWORD PTR 44[rsp], ecx
	mov	DWORD PTR 48[rsp], r15d
	mov	DWORD PTR 52[rsp], eax
	call	kmalloc@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L1
	mov	rdx, rax
	mov	eax, r15d
	test	r15d, r15d
	je	.L3
	sub	eax, 1
	mov	r15, rdx
	sal	rax, 3
	mov	QWORD PTR 56[rsp], rax
	lea	rax, 8[rdx+rax]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, ebx
	mov	ebx, r12d
	mov	r12, r13
	mov	r13d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	call	extract@PLT
.L5:
	cmp	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 32[r14]
	mov	QWORD PTR [r15], rax
	setle	r9b
	cmp	rax, r12
	mov	edi, DWORD PTR HID_MAIN_ITEM_VARIABLE[rip]
	setge	r8b
	test	r9b, r8b
	je	.L6
	test	esi, edi
	je	.L44
.L6:
	add	r15, 8
	add	r13d, ebx
	cmp	QWORD PTR 16[rsp], r15
	je	.L45
.L8:
	mov	edx, ebx
	mov	esi, r13d
	mov	rdi, rbp
	test	r12, r12
	jns	.L4
	call	extract@PLT
	mov	esi, ebx
	mov	rdi, rax
	call	snto32@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rcx, QWORD PTR HID_UP_KEYBOARD[rip]
	mov	r9, QWORD PTR 48[r14]
	sub	rax, r12
	lea	r8, 1[rcx]
	cmp	QWORD PTR [r9+rax*8], r8
	jne	.L6
.L7:
	mov	rdi, QWORD PTR 24[rsp]
	add	rsp, 72
	.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
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	mov	r14, r15
.L3:
	mov	rdi, QWORD PTR 40[r14]
	mov	edx, DWORD PTR 52[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	memcpy@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L45:
	mov	r13, r12
	mov	r15, r14
	mov	rbx, QWORD PTR 8[rsp]
	mov	r12, QWORD PTR 56[rsp]
	mov	r14, r13
	xor	ebp, ebp
	mov	r13, QWORD PTR 24[rsp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR 0[r13+rbp]
	cmp	rsi, r14
	jl	.L10
	cmp	rsi, rbx
	jle	.L46
.L10:
	cmp	r12, rbp
	je	.L41
	mov	esi, DWORD PTR 32[r15]
	mov	edi, DWORD PTR HID_MAIN_ITEM_VARIABLE[rip]
	add	rbp, 8
.L18:
	test	esi, edi
	jne	.L47
	mov	rax, QWORD PTR 40[r15]
	mov	rsi, QWORD PTR [rax+rbp]
	cmp	rsi, r14
	jl	.L13
	cmp	rsi, rbx
	jg	.L13
	mov	rax, QWORD PTR 48[r15]
	mov	rdx, rsi
	sub	rdx, r14
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L13
	mov	edx, DWORD PTR 48[rsp]
	mov	rdi, r13
	call	search@PLT
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR 40[r15]
	mov	rdx, QWORD PTR 48[r15]
	xor	ecx, ecx
	mov	rsi, r15
	mov	r8d, DWORD PTR 44[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR [rax+rbp]
	sub	rax, r14
	lea	rdx, [rdx+rax*8]
	call	hid_process_event@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rax, QWORD PTR 48[r15]
	mov	rdx, rsi
	sub	rdx, r14
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L10
	mov	rdi, QWORD PTR 40[r15]
	mov	edx, DWORD PTR 48[rsp]
	call	search@PLT
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR 0[r13+rbp]
	mov	rdx, QWORD PTR 48[r15]
	mov	ecx, 1
	mov	rsi, r15
	mov	r8d, DWORD PTR 44[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	sub	rax, r14
	lea	rdx, [rdx+rax*8]
	call	hid_process_event@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rdx, QWORD PTR 48[r15]
	mov	r8d, DWORD PTR 44[rsp]
	mov	rsi, r15
	mov	ecx, DWORD PTR 0[r13+rbp]
	mov	rdi, QWORD PTR 32[rsp]
	add	rdx, rbp
	call	hid_process_event@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 72
	.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	hid_input_field, .-hid_input_field
	.comm	HID_UP_KEYBOARD,8,8
	.comm	HID_MAIN_ITEM_VARIABLE,4,4
	.comm	GFP_ATOMIC,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-core.c_hid_input_field.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hid_input_field, %function
hid_input_field:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	ip, r0
	ldmib	r6, {r7, r9}
	ldr	r8, [r1]
	ldr	r1, .L43
	ldr	r4, [r6, #16]
	sub	sp, sp, #36
	lsl	r0, r8, #2
	ldr	r1, [r1]
	str	r3, [sp, #20]
	mov	fp, r2
	ldr	r5, [r6, #12]
	str	r8, [sp, #8]
	str	r0, [sp, #16]
	str	ip, [sp, #28]
	str	r4, [sp, #24]
	bl	kmalloc
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L1
	cmp	r8, #0
	beq	.L3
	mov	r8, #0
	sub	r10, r3, #4
	b	.L8
.L4:
	bl	extract
.L5:
	ldr	r2, .L43+4
	cmp	r0, r4
	ldr	ip, [r6, #20]
	ldr	r1, [r2]
	movgt	r3, #0
	movle	r3, #1
	cmp	r0, r5
	movlt	r3, #0
	ands	r1, ip, r1
	movne	r3, #0
	cmp	r3, #0
	add	r8, r8, #1
	str	r0, [r10, #4]!
	bne	.L39
.L6:
	ldr	r3, [sp, #8]
	add	r7, r7, r9
	cmp	r3, r8
	beq	.L40
.L8:
	cmp	r5, #0
	mov	r2, r9
	mov	r1, r7
	mov	r0, fp
	bge	.L4
	bl	extract
	mov	r1, r9
	bl	snto32
	b	.L5
.L39:
	ldr	r3, .L43+8
	ldr	ip, [r6, #28]
	ldr	r3, [r3]
	sub	r0, r0, r5
	ldr	r0, [ip, r0, lsl #2]
	add	r3, r3, #1
	cmp	r0, r3
	bne	.L6
.L7:
	ldr	r0, [sp, #12]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kfree
.L3:
	ldr	r2, [sp, #16]
	ldr	r0, [r6, #24]
	ldr	r1, [sp, #12]
	bl	memcpy
	ldr	r0, [sp, #12]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kfree
.L40:
	mov	r7, #0
	mov	r3, r1
	ldr	r10, [sp, #16]
	ldr	r8, [sp, #24]
	ldr	r9, [sp, #12]
	ldr	fp, [sp, #28]
	ldr	r4, [sp, #8]
	b	.L16
.L12:
	ldr	r1, [r9, r7]
	cmp	r1, r5
	movlt	r3, #0
	movge	r3, #1
	cmp	r1, r8
	movgt	r3, #0
	cmp	r3, #0
	bne	.L41
.L10:
	add	r7, r7, #4
	cmp	r10, r7
	beq	.L3
	ldr	r3, .L43+4
	ldr	r2, [r6, #20]
	ldr	r3, [r3]
	and	r3, r3, r2
.L16:
	cmp	r3, #0
	bne	.L42
	ldr	r2, [r6, #24]
	ldr	r1, [r2, r7]
	cmp	r1, r5
	movlt	r2, #0
	movge	r2, #1
	cmp	r1, r8
	movgt	r2, #0
	cmp	r2, #0
	beq	.L12
	ldr	r2, [r6, #28]
	sub	r0, r1, r5
	ldr	r2, [r2, r0, lsl #2]
	cmp	r2, #0
	beq	.L12
	mov	r2, r4
	mov	r0, r9
	str	r3, [sp, #8]
	bl	search
	cmp	r0, #0
	ldr	r3, [sp, #8]
	beq	.L12
	ldr	r1, [r6, #24]
	ldr	r2, [r6, #28]
	ldr	r1, [r1, r7]
	ldr	r0, [sp, #20]
	sub	r1, r1, r5
	str	r0, [sp]
	add	r2, r2, r1, lsl #2
	mov	r0, fp
	mov	r1, r6
	bl	hid_process_event
	b	.L12
.L41:
	ldr	r3, [r6, #28]
	sub	r2, r1, r5
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L10
	mov	r2, r4
	ldr	r0, [r6, #24]
	bl	search
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r9, r7]
	ldr	r2, [r6, #28]
	ldr	r1, [sp, #20]
	sub	r3, r3, r5
	str	r1, [sp]
	add	r2, r2, r3, lsl #2
	mov	r1, r6
	mov	r3, #1
	mov	r0, fp
	bl	hid_process_event
	b	.L10
.L42:
	ldr	r2, [r6, #28]
	ldr	r1, [sp, #20]
	ldr	r3, [r9, r7]
	mov	r0, fp
	str	r1, [sp]
	add	r2, r2, r7
	mov	r1, r6
	bl	hid_process_event
	b	.L10
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	.align	2
.L43:
	.word	GFP_ATOMIC
	.word	HID_MAIN_ITEM_VARIABLE
	.word	HID_UP_KEYBOARD
	.size	hid_input_field, .-hid_input_field
	.comm	HID_UP_KEYBOARD,4,4
	.comm	HID_MAIN_ITEM_VARIABLE,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
