	.file	"extr_vsp1_drv.c_vsp1_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"missing IRQ\n"
.LC1:
	.string	"failed to request IRQ\n"
.LC2:
	.string	"renesas,fcp"
.LC3:
	.string	"FCP not found (%ld)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"unsupported IP version 0x%08x\n"
	.section	.rodata.str1.1
.LC5:
	.string	"IP version 0x%08x\n"
.LC6:
	.string	"failed to create entities\n"
	.text
	.p2align 4
	.type	vsp1_probe, @function
vsp1_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 48
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 16[rax], r12
	mov	rbp, rax
	lea	rdi, 44[rax]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 40[rbp]
	call	INIT_LIST_HEAD@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r12
	call	platform_get_resource@PLT
	mov	rdi, r12
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 36[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	esi, DWORD PTR IORESOURCE_IRQ[rip]
	xor	edx, edx
	mov	rdi, r12
	call	platform_get_resource@PLT
	mov	r13, rax
	test	rax, rax
	je	.L22
	mov	rdi, r12
	call	dev_name@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	r9, rbp
	mov	rdi, r12
	mov	ecx, DWORD PTR IRQF_SHARED[rip]
	mov	edx, DWORD PTR vsp1_irq_handler[rip]
	mov	r8d, eax
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L23
	mov	edi, DWORD PTR [r12]
	xor	edx, edx
	lea	rsi, .LC2[rip]
	call	of_parse_phandle@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	rcar_fcp_get@PLT
	mov	rdi, r13
	mov	DWORD PTR 32[rbp], eax
	call	of_node_put@PLT
	mov	edi, DWORD PTR 32[rbp]
	call	IS_ERR@PLT
	mov	edi, DWORD PTR 32[rbp]
	test	rax, rax
	jne	.L24
	call	rcar_fcp_get_device@PLT
	mov	QWORD PTR 24[rbp], rax
.L9:
	mov	rdi, r12
	call	pm_runtime_enable@PLT
	mov	rdi, r12
	call	pm_runtime_get_sync@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L10
	mov	esi, DWORD PTR VI6_IP_VERSION[rip]
	mov	rdi, rbp
	xor	r13d, r13d
	call	vsp1_read@PLT
	mov	rdi, r12
	mov	DWORD PTR 0[rbp], eax
	call	pm_runtime_put_sync@PLT
	mov	rdi, QWORD PTR vsp1_device_infos[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR vsp1_device_infos[rip]
	mov	ecx, DWORD PTR VI6_IP_VERSION_MODEL_MASK[rip]
	mov	eax, r13d
	lea	rax, [rdi+rax*4]
	and	ecx, edx
	cmp	ecx, DWORD PTR [rax]
	je	.L25
	add	r13d, 1
.L11:
	call	ARRAY_SIZE@PLT
	mov	edx, DWORD PTR 0[rbp]
	cmp	eax, r13d
	ja	.L14
	cmp	QWORD PTR 8[rbp], 0
	je	.L26
.L13:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	vsp1_create_entities@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L27
.L15:
	test	r13d, r13d
	jne	.L10
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR 36[rbp]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rbp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	call	pm_runtime_disable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	QWORD PTR 8[rbp], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENXIO[rip]
	neg	r13d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	call	PTR_ERR@PLT
	mov	rdi, r12
	lea	rsi, .LC3[rip]
	mov	edx, eax
	call	dev_dbg@PLT
	mov	edi, DWORD PTR 32[rbp]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	vsp1_probe, .-vsp1_probe
	.comm	vsp1_irq_handler,4,4
	.comm	vsp1_device_infos,8,8
	.comm	VI6_IP_VERSION_MODEL_MASK,4,4
	.comm	VI6_IP_VERSION,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_vsp1_drv.c_vsp1_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"missing IRQ\012\000"
	.align	2
.LC1:
	.ascii	"failed to request IRQ\012\000"
	.align	2
.LC2:
	.ascii	"renesas,fcp\000"
	.align	2
.LC3:
	.ascii	"FCP not found (%ld)\012\000"
	.align	2
.LC4:
	.ascii	"unsupported IP version 0x%08x\012\000"
	.align	2
.LC5:
	.ascii	"IP version 0x%08x\012\000"
	.align	2
.LC6:
	.ascii	"failed to create entities\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsp1_probe, %function
vsp1_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L29
	mov	r1, #32
	ldr	r2, [r3]
	sub	sp, sp, #12
	mov	r5, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L22
	str	r5, [r4, #8]
	add	r0, r4, #28
	bl	INIT_LIST_HEAD
	add	r0, r4, #24
	bl	INIT_LIST_HEAD
	mov	r1, r4
	mov	r0, r5
	bl	platform_set_drvdata
	ldr	r3, .L29+4
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r4, #20]
	bl	IS_ERR
	subs	r7, r0, #0
	ldrne	r0, [r4, #20]
	bne	.L20
	ldr	r3, .L29+8
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r5
	bl	platform_get_resource
	subs	r3, r0, #0
	beq	.L23
	ldr	r1, .L29+12
	ldr	r2, .L29+16
	mov	r0, r5
	ldr	r6, [r3]
	ldr	r8, [r1]
	ldr	r9, [r2]
	bl	dev_name
	mov	r1, r6
	stm	sp, {r0, r4}
	mov	r3, r9
	mov	r2, r8
	mov	r0, r5
	bl	devm_request_irq
	subs	r6, r0, #0
	blt	.L24
	mov	r2, r7
	ldr	r1, .L29+20
	ldr	r0, [r5]
	bl	of_parse_phandle
	subs	r6, r0, #0
	beq	.L7
	bl	rcar_fcp_get
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #16]
	bl	of_node_put
	ldr	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	ldr	r0, [r4, #16]
	bne	.L25
	bl	rcar_fcp_get_device
	str	r0, [r4, #12]
.L9:
	mov	r0, r5
	bl	pm_runtime_enable
	mov	r0, r5
	bl	pm_runtime_get_sync
	subs	r6, r0, #0
	blt	.L10
	ldr	r3, .L29+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	vsp1_read
	ldr	r7, .L29+28
	str	r0, [r4]
	mov	r0, r5
	bl	pm_runtime_put_sync
	mov	r6, #0
	ldr	r0, [r7]
	ldr	r8, .L29+32
	b	.L11
.L14:
	ldr	r0, [r7]
	ldr	r2, [r4]
	ldr	r3, [r8]
	ldr	r1, [r0, r6, lsl #2]
	and	r3, r3, r2
	cmp	r3, r1
	add	r3, r0, r6, lsl #2
	beq	.L26
	add	r6, r6, #1
.L11:
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L14
	ldm	r4, {r2, r3}
	cmp	r3, #0
	beq	.L27
.L13:
	ldr	r1, .L29+36
	mov	r0, r5
	bl	dev_dbg
	mov	r0, r4
	bl	vsp1_create_entities
	subs	r6, r0, #0
	blt	.L28
.L15:
	cmp	r6, #0
	beq	.L1
.L10:
	mov	r0, r5
	bl	pm_runtime_disable
	b	.L1
.L25:
	bl	PTR_ERR
	ldr	r1, .L29+40
	mov	r2, r0
	mov	r0, r5
	bl	dev_dbg
	ldr	r0, [r4, #16]
.L20:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L22:
	ldr	r3, .L29+44
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r3, [r4, #8]
	str	r3, [r4, #12]
	b	.L9
.L24:
	mov	r0, r5
	ldr	r1, .L29+48
	bl	dev_err
	b	.L1
.L23:
	mov	r0, r5
	ldr	r1, .L29+52
	bl	dev_err
	ldr	r3, .L29+56
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L26:
	str	r3, [r4, #4]
	b	.L13
.L27:
	mov	r0, r5
	ldr	r1, .L29+60
	bl	dev_err
	ldr	r3, .L29+64
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L15
.L28:
	mov	r0, r5
	ldr	r1, .L29+68
	bl	dev_err
	b	.L10
.L30:
	.align	2
.L29:
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	IORESOURCE_IRQ
	.word	vsp1_irq_handler
	.word	IRQF_SHARED
	.word	.LC2
	.word	VI6_IP_VERSION
	.word	vsp1_device_infos
	.word	VI6_IP_VERSION_MODEL_MASK
	.word	.LC5
	.word	.LC3
	.word	ENOMEM
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.word	.LC4
	.word	ENXIO
	.word	.LC6
	.size	vsp1_probe, .-vsp1_probe
	.comm	vsp1_irq_handler,4,4
	.comm	vsp1_device_infos,4,4
	.comm	VI6_IP_VERSION_MODEL_MASK,4,4
	.comm	VI6_IP_VERSION,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
