	.file	"extr_iforce-serio.c_iforce_serio_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iforce_serio_connect, @function
iforce_serio_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, 16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	kzalloc@PLT
	test	rax, rax
	je	.L10
	mov	rbp, rax
	mov	eax, DWORD PTR IFORCE_232[rip]
	mov	rdi, r13
	mov	QWORD PTR 0[rbp], r13
	mov	rsi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	serio_set_drvdata@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	serio_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L4:
	mov	rdi, r13
	xor	esi, esi
	call	serio_set_drvdata@PLT
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	iforce_init_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r13
	call	serio_close@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iforce_serio_connect, .-iforce_serio_connect
	.comm	IFORCE_232,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_iforce-serio.c_iforce_serio_connect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iforce_serio_connect, %function
iforce_serio_connect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L12
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r5, r1
	mov	r0, #8
	ldr	r1, [r2]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L10
	ldr	r3, .L12+4
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r4, #4]
	str	r6, [r4]
	bl	serio_set_drvdata
	mov	r1, r5
	mov	r0, r6
	bl	serio_open
	subs	r5, r0, #0
	beq	.L11
.L4:
	mov	r0, r6
	mov	r1, #0
	bl	serio_set_drvdata
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r4
	bl	iforce_init_device
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r6
	bl	serio_close
	b	.L4
.L10:
	ldr	r3, .L12+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	IFORCE_232
	.word	ENOMEM
	.size	iforce_serio_connect, .-iforce_serio_connect
	.comm	IFORCE_232,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
