	.file	"extr_i2c-rcar.c_rcar_i2c_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid min DMA length"
.LC1:
	.string	"cannot get clock\n"
.LC2:
	.string	"multi-master"
.LC3:
	.string	"cannot get irq %d\n"
.LC4:
	.string	"probed\n"
	.text
	.p2align 4
	.type	rcar_i2c_probe, @function
rcar_i2c_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR RCAR_MIN_DMA_LEN[rip], 2
	setle	dil
	call	BUILD_BUG_ON_MSG@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 144
	mov	rdi, r12
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	devm_clk_get@PLT
	mov	QWORD PTR 136[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r12
	call	platform_get_resource@PLT
	mov	rdi, r12
	mov	DWORD PTR 128[rbp], eax
	mov	esi, eax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 120[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	mov	rdi, r12
	lea	r14, 48[rbp]
	lea	r13, 4[rsp]
	call	of_device_get_match_data@PLT
	lea	rdi, 112[rbp]
	mov	DWORD PTR 0[rbp], eax
	call	init_waitqueue_head@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	rsi, rbp
	mov	rdi, r14
	mov	DWORD PTR 48[rbp], 3
	mov	DWORD PTR 104[rbp], eax
	lea	rax, rcar_i2c_algo[rip]
	mov	QWORD PTR 96[rbp], rax
	mov	eax, DWORD PTR I2C_CLASS_DEPRECATED[rip]
	mov	QWORD PTR 80[rbp], r12
	mov	DWORD PTR 88[rbp], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 72[rbp], eax
	lea	rax, rcar_i2c_bri[rip]
	mov	QWORD PTR 64[rbp], rax
	lea	rax, rcar_i2c_quirks[rip]
	mov	QWORD PTR 56[rbp], rax
	call	i2c_set_adapdata@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 52[rbp]
	mov	edx, 4
	call	strlcpy@PLT
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r12
	call	i2c_parse_fw_timings@PLT
	mov	esi, 1
	lea	rdi, 44[rbp]
	call	sg_init_table@PLT
	mov	eax, DWORD PTR DMA_NONE[rip]
	mov	edi, DWORD PTR EPROBE_DEFER[rip]
	mov	DWORD PTR 40[rbp], eax
	neg	edi
	call	ERR_PTR@PLT
	mov	rdi, r12
	mov	QWORD PTR 24[rbp], rax
	mov	QWORD PTR 32[rbp], rax
	call	pm_runtime_enable@PLT
	mov	rdi, r12
	call	pm_runtime_get_sync@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	rcar_i2c_clock_calculate@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L19
	movsx	rax, DWORD PTR 0[rbp]
	cmp	rax, QWORD PTR I2C_RCAR_GEN3[rip]
	je	.L20
.L9:
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC2[rip]
	call	of_property_read_bool@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR ID_P_PM_BLOCKED[rip]
	or	DWORD PTR 8[rbp], eax
.L12:
	xor	esi, esi
	mov	rdi, r12
	call	platform_get_irq@PLT
	mov	rdi, r12
	mov	DWORD PTR 4[rbp], eax
	call	dev_name@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR rcar_i2c_irq[rip]
	xor	ecx, ecx
	mov	r8d, eax
	mov	r9, rbp
	mov	rdi, r12
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L21
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	rdi, r14
	call	i2c_add_numbered_adapter@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L7
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	xor	r13d, r13d
	call	dev_info@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 136[rbp]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	call	pm_runtime_put@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r12
	call	pm_runtime_put@PLT
.L7:
	mov	rdi, r12
	call	pm_runtime_disable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 120[rbp]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	xor	esi, esi
	mov	rdi, r12
	call	devm_reset_control_get_exclusive@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, QWORD PTR 16[rbp]
	call	reset_control_status@PLT
	test	eax, eax
	jns	.L9
	mov	edi, DWORD PTR ENOTSUPP[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	QWORD PTR 16[rbp], rax
	jmp	.L9
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rcar_i2c_probe, .-rcar_i2c_probe
	.comm	rcar_i2c_quirks,4,4
	.comm	rcar_i2c_irq,4,4
	.comm	rcar_i2c_bri,4,4
	.comm	rcar_i2c_algo,4,4
	.comm	RCAR_MIN_DMA_LEN,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ID_P_PM_BLOCKED,4,4
	.comm	I2C_RCAR_GEN3,8,8
	.comm	I2C_CLASS_DEPRECATED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_NONE,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_i2c_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid min DMA length\000"
	.align	2
.LC1:
	.ascii	"cannot get clock\012\000"
	.align	2
.LC2:
	.ascii	"multi-master\000"
	.align	2
.LC3:
	.ascii	"cannot get irq %d\012\000"
	.align	2
.LC4:
	.ascii	"probed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcar_i2c_probe, %function
rcar_i2c_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L24
	sub	sp, sp, #16
	ldr	r0, [r3]
	ldr	r3, .L24+4
	cmp	r0, #2
	movgt	r0, #0
	movle	r0, #1
	ldr	r1, .L24+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	BUILD_BUG_ON_MSG
	ldr	r3, .L24+12
	mov	r0, r5
	mov	r1, #84
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L17
	mov	r1, #0
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #80]
	bl	IS_ERR
	subs	r2, r0, #0
	bne	.L18
	ldr	r3, .L24+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #76]
	bl	devm_ioremap_resource
	str	r0, [r4, #72]
	bl	IS_ERR
	subs	r8, r0, #0
	bne	.L19
	mov	r0, r5
	bl	of_device_get_match_data
	mov	r3, r4
	str	r0, [r3], #68
	mov	r0, r3
	bl	init_waitqueue_head
	mov	ip, #3
	ldr	r3, .L24+20
	ldr	lr, [r5, #8]
	ldr	r3, [r3]
	ldr	r1, [r5]
	ldr	r2, .L24+24
	ldr	r0, .L24+28
	str	r3, [r4, #56]
	ldr	r3, .L24+32
	add	r7, r4, #32
	str	lr, [r4, #64]
	str	ip, [r4, #32]
	str	r3, [r4, #40]
	str	r0, [r4, #60]
	str	r1, [r4, #48]
	str	r2, [r4, #44]
	mov	r1, r4
	mov	r0, r7
	str	r5, [r4, #52]
	bl	i2c_set_adapdata
	mov	r2, #4
	ldr	r1, [r5, #4]
	ldr	r0, [r4, #36]
	bl	strlcpy
	mov	r2, r8
	add	r1, sp, #8
	mov	r0, r5
	bl	i2c_parse_fw_timings
	mov	r1, #1
	add	r0, r4, #28
	bl	sg_init_table
	ldr	r2, .L24+36
	ldr	r3, .L24+40
	ldr	r0, [r2]
	ldr	r3, [r3]
	rsb	r0, r0, #0
	str	r3, [r4, #24]
	bl	ERR_PTR
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	bl	pm_runtime_enable
	mov	r0, r5
	bl	pm_runtime_get_sync
	mov	r0, r4
	add	r1, sp, #8
	bl	rcar_i2c_clock_calculate
	subs	r6, r0, #0
	blt	.L20
	ldr	r3, .L24+44
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
.L9:
	ldr	r1, .L24+48
	ldr	r0, [r5]
	bl	of_property_read_bool
	cmp	r0, #0
	beq	.L11
	ldr	r2, .L24+52
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #8]
.L12:
	mov	r1, #0
	mov	r0, r5
	bl	platform_get_irq
	ldr	r3, .L24+56
	mov	r6, r0
	str	r0, [r4, #4]
	mov	r0, r5
	ldr	r8, [r3]
	bl	dev_name
	mov	r1, r6
	stm	sp, {r0, r4}
	mov	r2, r8
	mov	r3, #0
	mov	r0, r5
	bl	devm_request_irq
	subs	r6, r0, #0
	blt	.L22
	mov	r1, r4
	mov	r0, r5
	bl	platform_set_drvdata
	mov	r0, r7
	bl	i2c_add_numbered_adapter
	subs	r6, r0, #0
	blt	.L7
	mov	r0, r5
	ldr	r1, .L24+60
	bl	dev_info
	mov	r6, #0
	b	.L1
.L18:
	ldr	r1, .L24+64
	mov	r0, r5
	bl	dev_err
	ldr	r0, [r4, #80]
	bl	PTR_ERR
	mov	r6, r0
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L24+68
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L11:
	mov	r0, r5
	bl	pm_runtime_put
	b	.L12
.L20:
	mov	r0, r5
	bl	pm_runtime_put
.L7:
	mov	r0, r5
	bl	pm_runtime_disable
	b	.L1
.L19:
	ldr	r0, [r4, #72]
	bl	PTR_ERR
	mov	r6, r0
	b	.L1
.L22:
	mov	r0, r5
	ldr	r2, [r4, #4]
	ldr	r1, .L24+72
	bl	dev_err
	b	.L7
.L21:
	mov	r1, r8
	mov	r0, r5
	bl	devm_reset_control_get_exclusive
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r4, #12]
	bl	reset_control_status
	cmp	r0, #0
	bge	.L9
	ldr	r3, .L24+76
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	str	r0, [r4, #12]
	b	.L9
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	RCAR_MIN_DMA_LEN
	.word	.LC5
	.word	.LC0
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	I2C_CLASS_DEPRECATED
	.word	rcar_i2c_bri
	.word	rcar_i2c_algo
	.word	rcar_i2c_quirks
	.word	EPROBE_DEFER
	.word	DMA_NONE
	.word	I2C_RCAR_GEN3
	.word	.LC2
	.word	ID_P_PM_BLOCKED
	.word	rcar_i2c_irq
	.word	.LC4
	.word	.LC1
	.word	ENOMEM
	.word	.LC3
	.word	ENOTSUPP
	.size	rcar_i2c_probe, .-rcar_i2c_probe
	.comm	rcar_i2c_quirks,4,4
	.comm	rcar_i2c_irq,4,4
	.comm	rcar_i2c_bri,4,4
	.comm	rcar_i2c_algo,4,4
	.comm	RCAR_MIN_DMA_LEN,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ID_P_PM_BLOCKED,4,4
	.comm	I2C_RCAR_GEN3,4,4
	.comm	I2C_CLASS_DEPRECATED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
