	.file	"extr_ambakmi.c_amba_kmi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"KMIREFCLK"
	.text
	.p2align 4
	.type	amba_kmi_probe, @function
amba_kmi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	amba_request_regions@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	call	kzalloc@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	mov	r14, rax
	call	kzalloc@PLT
	mov	rbp, rax
	test	r14, r14
	je	.L10
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR SERIO_8042[rip]
	lea	r15, 8[r13]
	mov	rdi, r15
	mov	DWORD PTR 60[rbp], eax
	mov	eax, DWORD PTR amba_kmi_write[rip]
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR amba_kmi_open[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR amba_kmi_close[rip]
	mov	DWORD PTR 48[rbp], eax
	call	dev_name@PLT
	mov	edi, DWORD PTR 44[rbp]
	mov	edx, 4
	mov	esi, eax
	call	strlcpy@PLT
	mov	rdi, r15
	call	dev_name@PLT
	mov	edi, DWORD PTR 40[rbp]
	mov	edx, 4
	mov	esi, eax
	call	strlcpy@PLT
	mov	QWORD PTR 32[rbp], r14
	lea	rdi, 12[r13]
	mov	QWORD PTR 24[rbp], r15
	mov	QWORD PTR 8[r14], rbp
	call	resource_size@PLT
	mov	edi, DWORD PTR 12[r13]
	mov	esi, eax
	call	ioremap@PLT
	mov	DWORD PTR [r14], eax
	test	eax, eax
	jne	.L6
.L10:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L5:
	mov	rdi, r14
	call	kfree@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r13
	call	amba_release_regions@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	rdi, r15
	lea	rsi, .LC0[rip]
	call	clk_get@PLT
	mov	DWORD PTR 20[r14], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	mov	rsi, r14
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[r14], eax
	call	amba_set_drvdata@PLT
	mov	rdi, QWORD PTR 8[r14]
	call	serio_register_port@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 20[r14]
	call	PTR_ERR@PLT
	mov	edi, DWORD PTR [r14]
	mov	r12d, eax
	call	iounmap@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	amba_kmi_probe, .-amba_kmi_probe
	.comm	amba_kmi_write,4,4
	.comm	amba_kmi_open,4,4
	.comm	amba_kmi_close,4,4
	.comm	SERIO_8042,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_ambakmi.c_amba_kmi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KMIREFCLK\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amba_kmi_probe, %function
amba_kmi_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	amba_request_regions
	subs	r4, r0, #0
	beq	.L10
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r4, .L12
	mov	r0, #48
	ldr	r1, [r4]
	bl	kzalloc
	ldr	r1, [r4]
	mov	r7, r0
	mov	r0, #48
	bl	kzalloc
	cmp	r0, #0
	cmpne	r7, #0
	mov	r5, r0
	beq	.L8
	ldr	r0, .L12+4
	ldr	r1, .L12+8
	ldr	r2, .L12+12
	ldr	r3, .L12+16
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r4, r6, #4
	str	r3, [r5, #32]
	str	r0, [r5, #44]
	str	r1, [r5, #40]
	str	r2, [r5, #36]
	mov	r0, r4
	ldr	r8, [r5, #28]
	bl	dev_name
	mov	r2, #4
	mov	r1, r0
	mov	r0, r8
	bl	strlcpy
	mov	r0, r4
	ldr	r8, [r5, #24]
	bl	dev_name
	mov	r2, #4
	mov	r1, r0
	mov	r0, r8
	bl	strlcpy
	mov	r0, r6
	ldr	r8, [r0, #8]!
	str	r4, [r5, #16]
	str	r7, [r5, #20]
	str	r5, [r7, #4]
	bl	resource_size
	mov	r1, r0
	mov	r0, r8
	bl	ioremap
	cmp	r0, #0
	str	r0, [r7]
	bne	.L5
.L8:
	ldr	r3, .L12+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L4:
	mov	r0, r7
	bl	kfree
	mov	r0, r5
	bl	kfree
	mov	r0, r6
	bl	amba_release_regions
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	ldr	r1, .L12+24
	bl	clk_get
	str	r0, [r7, #12]
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L11
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r3, [r3]
	mov	r1, r7
	str	r3, [r7, #8]
	bl	amba_set_drvdata
	ldr	r0, [r7, #4]
	bl	serio_register_port
	b	.L1
.L11:
	ldr	r0, [r7, #12]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r0, [r7]
	bl	iounmap
	b	.L4
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	SERIO_8042
	.word	amba_kmi_write
	.word	amba_kmi_open
	.word	amba_kmi_close
	.word	ENOMEM
	.word	.LC0
	.size	amba_kmi_probe, .-amba_kmi_probe
	.comm	amba_kmi_write,4,4
	.comm	amba_kmi_open,4,4
	.comm	amba_kmi_close,4,4
	.comm	SERIO_8042,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
