	.file	"extr_rpckbd.c_rpckbd_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"RiscPC PS/2 kbd port"
.LC1:
	.string	"rpckbd/serio0"
	.text
	.p2align 4
	.type	rpckbd_probe, @function
rpckbd_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	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	platform_get_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L12
	mov	esi, 1
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	ebx, eax
	test	eax, eax
	jle	.L13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 48
	call	kzalloc@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 48
	mov	r13, rax
	call	kzalloc@PLT
	test	r13, r13
	je	.L8
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR SERIO_8042[rip]
	mov	DWORD PTR [rax], r12d
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 4[rax], ebx
	mov	edi, DWORD PTR 12[r13]
	mov	DWORD PTR 44[r13], edx
	mov	edx, DWORD PTR rpckbd_write[rip]
	mov	QWORD PTR 24[r13], rbp
	mov	DWORD PTR 40[r13], edx
	mov	edx, DWORD PTR rpckbd_open[rip]
	mov	QWORD PTR 16[r13], rax
	mov	DWORD PTR 36[r13], edx
	mov	edx, DWORD PTR rpckbd_close[rip]
	mov	DWORD PTR 32[r13], edx
	mov	edx, 4
	call	strlcpy@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	edx, 4
	lea	rsi, .LC1[rip]
	call	strlcpy@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	rdi, r13
	call	serio_register_port@PLT
.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
.L13:
	.cfi_restore_state
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L14:
	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
	jne	.L1
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rax
	call	kfree@PLT
	mov	rdi, r13
	call	kfree@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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	rpckbd_probe, .-rpckbd_probe
	.comm	rpckbd_write,4,4
	.comm	rpckbd_open,4,4
	.comm	rpckbd_close,4,4
	.comm	SERIO_8042,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,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_rpckbd.c_rpckbd_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RiscPC PS/2 kbd port\000"
	.align	2
.LC1:
	.ascii	"rpckbd/serio0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rpckbd_probe, %function
rpckbd_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r6, r0
	bl	platform_get_irq
	subs	r4, r0, #0
	ble	.L10
	mov	r1, #1
	mov	r0, r6
	bl	platform_get_irq
	subs	r7, r0, #0
	ble	.L11
	ldr	r8, .L14
	mov	r0, #40
	ldr	r1, [r8]
	bl	kzalloc
	ldr	r1, [r8]
	mov	r5, r0
	mov	r0, #40
	bl	kzalloc
	clz	r3, r0
	cmp	r5, #0
	lsr	r3, r3, #5
	movne	r8, r3
	moveq	r8, #1
	cmp	r8, #0
	mov	r3, r0
	bne	.L12
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	ldr	r0, [r2]
	ldr	r2, .L14+12
	ldr	ip, [r1]
	ldr	r1, [r2]
	ldr	r2, .L14+16
	str	r4, [r3]
	ldr	r2, [r2]
	str	r7, [r3, #4]
	str	r3, [r5, #16]
	str	ip, [r5, #36]
	str	r0, [r5, #32]
	str	r1, [r5, #28]
	str	r2, [r5, #24]
	ldr	r1, .L14+20
	mov	r2, #4
	ldr	r0, [r5, #12]
	str	r6, [r5, #20]
	bl	strlcpy
	mov	r2, #4
	ldr	r1, .L14+24
	ldr	r0, [r5, #8]
	bl	strlcpy
	mov	r1, r5
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, r5
	mov	r4, r8
	bl	serio_register_port
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	movne	r4, r7
	bne	.L1
	ldr	r3, .L14+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L13:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bne	.L1
	ldr	r3, .L14+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L13
.L12:
	bl	kfree
	mov	r0, r5
	bl	kfree
	ldr	r3, .L14+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	rpckbd_write
	.word	SERIO_8042
	.word	rpckbd_open
	.word	rpckbd_close
	.word	.LC0
	.word	.LC1
	.word	ENXIO
	.word	ENOMEM
	.size	rpckbd_probe, .-rpckbd_probe
	.comm	rpckbd_write,4,4
	.comm	rpckbd_open,4,4
	.comm	rpckbd_close,4,4
	.comm	SERIO_8042,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
