	.file	"extr_hid-rmi.c_rmi_input_configured.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Opening low level driver\n"
.LC1:
	.string	"failed to set rmi mode\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"failed to set page select to 0.\n"
	.align 8
.LC3:
	.string	"failed to register transport driver\n"
	.text
	.p2align 4
	.type	rmi_input_configured, @function
rmi_input_configured:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	hid_get_drvdata@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR RMI_DEVICE[rip]
	mov	r12d, eax
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rax
	call	hid_dbg@PLT
	mov	rdi, rbp
	call	hid_hw_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	hid_device_io_start@PLT
	mov	esi, DWORD PTR RMI_MODE_ATTN_REPORTS[rip]
	mov	rdi, rbp
	call	rmi_set_mode@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	xor	esi, esi
	mov	rdi, rbp
	call	rmi_set_page@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	lea	rdi, 8[rbx]
	call	rmi_register_transport_device@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
	mov	edi, DWORD PTR RMI_STARTED[rip]
	lea	rsi, 4[rbx]
	call	set_bit@PLT
.L4:
	mov	rdi, rbp
	call	hid_device_io_stop@PLT
	mov	rdi, rbp
	call	hid_hw_close@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rmi_input_configured, .-rmi_input_configured
	.comm	RMI_STARTED,4,4
	.comm	RMI_MODE_ATTN_REPORTS,4,4
	.comm	RMI_DEVICE,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-rmi.c_rmi_input_configured.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Opening low level driver\012\000"
	.align	2
.LC1:
	.ascii	"failed to set rmi mode\012\000"
	.align	2
.LC2:
	.ascii	"failed to set page select to 0.\012\000"
	.align	2
.LC3:
	.ascii	"failed to register transport driver\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rmi_input_configured, %function
rmi_input_configured:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r5, r0
	bl	hid_get_drvdata
	ldr	r3, .L16
	ldr	r4, [r0]
	mov	r6, r0
	ldr	r0, [r3]
	ands	r4, r4, r0
	bne	.L12
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, [r7]
	ldr	r1, .L16+4
	str	r3, [r6, #8]
	mov	r0, r5
	bl	hid_dbg
	mov	r0, r5
	bl	hid_hw_open
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	hid_device_io_start
	ldr	r3, .L16+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	rmi_set_mode
	subs	r4, r0, #0
	blt	.L13
	mov	r1, #0
	mov	r0, r5
	bl	rmi_set_page
	subs	r4, r0, #0
	blt	.L14
	add	r0, r6, #8
	bl	rmi_register_transport_device
	subs	r4, r0, #0
	blt	.L15
	ldr	r3, .L16+12
	add	r1, r6, #4
	ldr	r0, [r3]
	bl	set_bit
.L4:
	mov	r0, r5
	bl	hid_device_io_stop
	mov	r0, r5
	bl	hid_hw_close
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r5
	ldr	r1, .L16+16
	bl	dev_err
	b	.L4
.L14:
	mov	r0, r5
	ldr	r1, .L16+20
	bl	dev_err
	b	.L4
.L15:
	mov	r0, r5
	ldr	r1, .L16+24
	bl	dev_err
	b	.L4
.L17:
	.align	2
.L16:
	.word	RMI_DEVICE
	.word	.LC0
	.word	RMI_MODE_ATTN_REPORTS
	.word	RMI_STARTED
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	rmi_input_configured, .-rmi_input_configured
	.comm	RMI_STARTED,4,4
	.comm	RMI_MODE_ATTN_REPORTS,4,4
	.comm	RMI_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
