	.file	"extr_i2c-iop3xx.c_iop3xx_i2c_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iop3xx_i2c_remove, @function
iop3xx_i2c_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	platform_get_drvdata@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r13
	mov	rbp, QWORD PTR 8[rax]
	mov	r12, rax
	call	platform_get_resource@PLT
	mov	rdi, QWORD PTR CR_OFFSET[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r13, rax
	call	__raw_readl@PLT
	mov	rdi, QWORD PTR IOP3XX_ICR_ALD_IE[rip]
	or	rdi, QWORD PTR IOP3XX_ICR_BERR_IE[rip]
	or	rdi, QWORD PTR IOP3XX_ICR_RXFULL_IE[rip]
	or	rdi, QWORD PTR IOP3XX_ICR_TXEMPTY_IE[rip]
	not	rdi
	mov	rsi, QWORD PTR CR_OFFSET[rip]
	add	rsi, QWORD PTR 0[rbp]
	and	rdi, rax
	call	__raw_writel@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	iounmap@PLT
	mov	esi, DWORD PTR IOP3XX_I2C_IO_SIZE[rip]
	mov	edi, DWORD PTR 0[r13]
	call	release_mem_region@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r12
	call	kfree@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iop3xx_i2c_remove, .-iop3xx_i2c_remove
	.comm	IORESOURCE_MEM,4,4
	.comm	IOP3XX_ICR_TXEMPTY_IE,8,8
	.comm	IOP3XX_ICR_RXFULL_IE,8,8
	.comm	IOP3XX_ICR_BERR_IE,8,8
	.comm	IOP3XX_ICR_ALD_IE,8,8
	.comm	IOP3XX_I2C_IO_SIZE,4,4
	.comm	CR_OFFSET,8,8
	.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-iop3xx.c_iop3xx_i2c_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iop3xx_i2c_remove, %function
iop3xx_i2c_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	platform_get_drvdata
	mov	r4, r0
	ldr	r3, .L4
	mov	r0, r5
	ldr	r1, [r3]
	mov	r2, #0
	ldr	r5, [r4, #4]
	bl	platform_get_resource
	ldr	r7, .L4+4
	ldr	r2, [r5]
	ldr	r3, [r7]
	mov	r6, r0
	add	r0, r2, r3
	bl	__raw_readl
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L4+16
	orr	r3, r3, r1
	ldr	r1, .L4+20
	ldr	lr, [r2]
	ldr	ip, [r1]
	ldr	r2, [r7]
	orr	r3, r3, lr
	ldr	r1, [r5]
	orr	r3, r3, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	__raw_writel
	ldr	r0, [r5]
	bl	iounmap
	ldr	r3, .L4+24
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	release_mem_region
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	IORESOURCE_MEM
	.word	CR_OFFSET
	.word	IOP3XX_ICR_BERR_IE
	.word	IOP3XX_ICR_ALD_IE
	.word	IOP3XX_ICR_RXFULL_IE
	.word	IOP3XX_ICR_TXEMPTY_IE
	.word	IOP3XX_I2C_IO_SIZE
	.size	iop3xx_i2c_remove, .-iop3xx_i2c_remove
	.comm	IORESOURCE_MEM,4,4
	.comm	IOP3XX_ICR_TXEMPTY_IE,4,4
	.comm	IOP3XX_ICR_RXFULL_IE,4,4
	.comm	IOP3XX_ICR_BERR_IE,4,4
	.comm	IOP3XX_ICR_ALD_IE,4,4
	.comm	IOP3XX_I2C_IO_SIZE,4,4
	.comm	CR_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
