	.file	"extr_i2c-cns3xxx.c_cns3xxx_i2c_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cns3xxx_i2c_remove, @function
cns3xxx_i2c_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	platform_get_drvdata@PLT
	mov	r12, rax
	xor	eax, eax
	call	CNS3xxx_I2C_DISABLE_INTR@PLT
	xor	eax, eax
	call	CNS3xxx_I2C_DISABLE@PLT
	lea	rdi, 4[r12]
	call	i2c_del_adapter@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	esi, DWORD PTR IORESOURCE_IRQ[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR [rax]
	mov	rsi, r12
	call	free_irq@PLT
.L2:
	mov	edi, DWORD PTR [r12]
	call	iounmap@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR [rax]
	mov	rsi, QWORD PTR 8[rax]
	sub	rsi, rdi
	add	rsi, 1
	call	release_mem_region@PLT
.L3:
	mov	rdi, r12
	call	kfree@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cns3xxx_i2c_remove, .-cns3xxx_i2c_remove
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,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_i2c-cns3xxx.c_cns3xxx_i2c_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cns3xxx_i2c_remove, %function
cns3xxx_i2c_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	platform_get_drvdata
	mov	r4, r0
	bl	CNS3xxx_I2C_DISABLE_INTR
	bl	CNS3xxx_I2C_DISABLE
	add	r0, r4, #4
	bl	i2c_del_adapter
	mov	r1, #0
	mov	r0, r5
	bl	platform_set_drvdata
	ldr	r3, .L12
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [r3]
	bl	platform_get_resource
	cmp	r0, #0
	beq	.L2
	mov	r1, r4
	ldr	r0, [r0]
	bl	free_irq
.L2:
	ldr	r0, [r4]
	bl	iounmap
	ldr	r3, .L12+4
	mov	r0, r5
	ldr	r1, [r3]
	mov	r2, #0
	bl	platform_get_resource
	subs	r3, r0, #0
	beq	.L3
	ldm	r3, {r0, r1}
	sub	r1, r1, r0
	add	r1, r1, #1
	bl	release_mem_region
.L3:
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	IORESOURCE_IRQ
	.word	IORESOURCE_MEM
	.size	cns3xxx_i2c_remove, .-cns3xxx_i2c_remove
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
