	.file	"extr_i2c-rcar.c_rcar_reg_slave.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rcar_reg_slave, @function
rcar_reg_slave:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	i2c_get_adapdata@PLT
	cmp	QWORD PTR [rax], 0
	je	.L2
	mov	r12d, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR [rbx]
	and	r12d, DWORD PTR I2C_CLIENT_TEN[rip]
	je	.L4
	mov	r12d, DWORD PTR EAFNOSUPPORT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rax
	mov	rbp, rax
	call	rcar_i2c_priv_to_dev@PLT
	mov	edi, eax
	call	pm_runtime_get_sync@PLT
	mov	QWORD PTR 0[rbp], rbx
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR ICSAR[rip]
	call	rcar_i2c_write@PLT
	mov	esi, DWORD PTR ICSSR[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	rcar_i2c_write@PLT
	mov	esi, DWORD PTR ICSIER[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR SAR[rip]
	or	edx, DWORD PTR SSR[rip]
	call	rcar_i2c_write@PLT
	mov	esi, DWORD PTR ICSCR[rip]
	mov	edx, DWORD PTR SIE[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR SDBS[rip]
	call	rcar_i2c_write@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rcar_reg_slave, .-rcar_reg_slave
	.comm	SSR,4,4
	.comm	SIE,4,4
	.comm	SDBS,4,4
	.comm	SAR,4,4
	.comm	ICSSR,4,4
	.comm	ICSIER,4,4
	.comm	ICSCR,4,4
	.comm	ICSAR,4,4
	.comm	I2C_CLIENT_TEN,4,4
	.comm	EBUSY,4,4
	.comm	EAFNOSUPPORT,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-rcar.c_rcar_reg_slave.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcar_reg_slave, %function
rcar_reg_slave:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	bl	i2c_get_adapdata
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L7
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L7+4
	ldr	r4, [r5]
	ldr	r3, [r3]
	ands	r4, r4, r3
	beq	.L4
	ldr	r3, .L7+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r6, r0
	bl	rcar_i2c_priv_to_dev
	bl	pm_runtime_get_sync
	ldr	r3, .L7+12
	ldr	r2, [r5, #4]
	ldr	r1, [r3]
	mov	r0, r6
	str	r5, [r6]
	bl	rcar_i2c_write
	ldr	r3, .L7+16
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r6
	bl	rcar_i2c_write
	ldr	r2, .L7+20
	ldr	r3, .L7+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+28
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3]
	bl	rcar_i2c_write
	ldr	r2, .L7+32
	ldr	r3, .L7+36
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+40
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3]
	bl	rcar_i2c_write
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	EBUSY
	.word	I2C_CLIENT_TEN
	.word	EAFNOSUPPORT
	.word	ICSAR
	.word	ICSSR
	.word	SAR
	.word	SSR
	.word	ICSIER
	.word	SIE
	.word	SDBS
	.word	ICSCR
	.size	rcar_reg_slave, .-rcar_reg_slave
	.comm	SSR,4,4
	.comm	SIE,4,4
	.comm	SDBS,4,4
	.comm	SAR,4,4
	.comm	ICSSR,4,4
	.comm	ICSIER,4,4
	.comm	ICSCR,4,4
	.comm	ICSAR,4,4
	.comm	I2C_CLIENT_TEN,4,4
	.comm	EBUSY,4,4
	.comm	EAFNOSUPPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
