	.file	"extr_psmouse-smbus.c_psmouse_smbus_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	psmouse_smbus_init
	.type	psmouse_smbus_init, @function
psmouse_smbus_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	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
	mov	edi, 32
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	DWORD PTR 12[rsp], r9d
	call	kzalloc@PLT
	test	rax, rax
	je	.L16
	mov	QWORD PTR 24[rax], rbx
	mov	rbp, rax
	mov	rax, QWORD PTR 0[r13]
	mov	DWORD PTR 0[rbp], r12d
	mov	QWORD PTR 8[rbp], rax
	test	r14, r14
	je	.L4
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rsi, r15
	mov	rdi, r14
	call	kmemdup@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L18
.L4:
	test	r12d, r12d
	jne	.L19
.L5:
	mov	eax, DWORD PTR psmouse_smbus_process_byte[rip]
	mov	QWORD PTR 40[rbx], rbp
	lea	rdi, psmouse_smbus_mutex[rip]
	lea	r14, 4[rbp]
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR psmouse_smbus_reconnect[rip]
	mov	QWORD PTR 24[rbx], rax
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR psmouse_smbus_disconnect[rip]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 8[rbx], eax
	call	mutex_lock@PLT
	lea	rsi, psmouse_smbus_list[rip]
	mov	rdi, r14
	call	list_add_tail@PLT
	lea	rdi, psmouse_smbus_mutex[rip]
	call	mutex_unlock@PLT
	mov	esi, DWORD PTR psmouse_smbus_create_companion[rip]
	mov	rdi, rbp
	call	i2c_for_each_dev@PLT
	cmp	QWORD PTR 16[rbp], 0
	mov	r12d, eax
	je	.L20
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	QWORD PTR 8[rbp], 0
	test	r12d, r12d
	js	.L6
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L6
.L7:
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbx
	call	psmouse_deactivate@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, psmouse_smbus_mutex[rip]
	call	mutex_lock@PLT
	mov	rdi, r14
	call	list_del@PLT
	lea	rdi, psmouse_smbus_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	kfree@PLT
	test	r12d, r12d
	js	.L1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	psmouse_smbus_init, .-psmouse_smbus_init
	.comm	psmouse_smbus_reconnect,8,8
	.comm	psmouse_smbus_process_byte,4,4
	.comm	psmouse_smbus_mutex,4,4
	.comm	psmouse_smbus_list,4,4
	.comm	psmouse_smbus_disconnect,4,4
	.comm	psmouse_smbus_create_companion,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EAGAIN,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_psmouse-smbus.c_psmouse_smbus_init.c"
	.text
	.align	2
	.global	psmouse_smbus_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	psmouse_smbus_init, %function
psmouse_smbus_init:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, .L22
	mov	r5, r0
	mov	r7, r1
	mov	r0, #20
	ldr	r1, [r10]
	mov	r6, r2
	mov	r9, r3
	ldr	r8, [sp, #32]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L16
	ldr	r3, [r7]
	cmp	r6, #0
	str	r3, [r4, #8]
	str	r5, [r4, #16]
	str	r8, [r4]
	beq	.L4
	mov	r1, r9
	mov	r0, r6
	ldr	r2, [r10]
	bl	kmemdup
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L19
.L4:
	cmp	r8, #0
	bne	.L20
.L5:
	mov	r6, #0
	ldr	r1, .L22+4
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	stmib	r5, {r2, r3}
	str	r3, [r5, #12]
	str	r1, [r5, #16]
	str	r4, [r5, #20]
	str	r6, [r5]
	ldr	r0, .L22+16
	add	r8, r4, #4
	bl	mutex_lock
	ldr	r1, .L22+20
	mov	r0, r8
	bl	list_add_tail
	ldr	r0, .L22+16
	bl	mutex_unlock
	ldr	r3, .L22+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	i2c_for_each_dev
	ldr	r7, [r4, #12]
	mov	r5, r0
	cmp	r7, r6
	movne	r5, r6
	beq	.L21
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r0, [r4, #8]
	bl	kfree
	ldr	r3, [sp, #36]
	str	r7, [r4, #8]
	clz	r3, r3
	lsr	r3, r3, #5
	orrs	r3, r3, r5, lsr #31
	bne	.L6
.L7:
	ldr	r3, .L22+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r0, r5
	bl	psmouse_deactivate
	b	.L5
.L19:
	mov	r0, r4
	bl	kfree
.L16:
	ldr	r3, .L22+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r0, .L22+16
	bl	mutex_lock
	mov	r0, r8
	bl	list_del
	ldr	r0, .L22+16
	bl	mutex_unlock
	mov	r0, r4
	bl	kfree
	cmp	r5, #0
	bge	.L7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	.align	2
.L22:
	.word	GFP_KERNEL
	.word	psmouse_smbus_process_byte
	.word	psmouse_smbus_reconnect
	.word	psmouse_smbus_disconnect
	.word	psmouse_smbus_mutex
	.word	psmouse_smbus_list
	.word	psmouse_smbus_create_companion
	.word	EAGAIN
	.word	ENOMEM
	.size	psmouse_smbus_init, .-psmouse_smbus_init
	.comm	psmouse_smbus_reconnect,4,4
	.comm	psmouse_smbus_process_byte,4,4
	.comm	psmouse_smbus_mutex,4,4
	.comm	psmouse_smbus_list,4,4
	.comm	psmouse_smbus_disconnect,4,4
	.comm	psmouse_smbus_create_companion,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
