	.file	"extr_sta2x11-mfd.c_sta2x11_mfd_platform_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sta2x11_mfd_platform_probe, @function
sta2x11_mfd_platform_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR sta2x11_mfd_names[rip]
	mov	r15, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR sta2x11_mfd_regmap_configs[rip]
	mov	r14, QWORD PTR [rax+rbx*8]
	call	dev_get_platdata@PLT
	mov	rdi, QWORD PTR [rax]
	call	sta2x11_mfd_find@PLT
	test	rax, rax
	je	.L4
	test	r14, r14
	je	.L4
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r12
	mov	rbp, rax
	call	platform_get_resource@PLT
	mov	r13, rax
	test	rax, rax
	je	.L12
	mov	rdi, rax
	call	resource_size@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rdx, r15
	mov	esi, eax
	call	request_mem_region@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r13
	call	resource_size@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	call	release_mem_region@PLT
.L12:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r13
	lea	r15, 0[0+rbx*4]
	call	resource_size@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	add	rdx, r15
	mov	QWORD PTR 8[rsp], rdx
	call	ioremap@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR 8[rbp]
	add	rax, r15
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L14
	lea	rdx, 16[rbp]
	mov	rdi, r12
	add	r15, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[r14], rdx
	mov	edx, DWORD PTR REGCACHE_NONE[rip]
	mov	DWORD PTR [r14], edx
	mov	esi, DWORD PTR [rax]
	mov	rdx, r14
	call	devm_regmap_init_mmio@PLT
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	IS_ERR@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sta2x11_mfd_platform_probe, .-sta2x11_mfd_platform_probe
	.comm	sta2x11_mfd_regmap_configs,8,8
	.comm	sta2x11_mfd_names,8,8
	.comm	REGCACHE_NONE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EBUSY,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_sta2x11-mfd.c_sta2x11_mfd_platform_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sta2x11_mfd_platform_probe, %function
sta2x11_mfd_platform_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r8, [r2, r1, lsl #2]
	ldr	r7, [r3, r1, lsl #2]
	mov	r6, r0
	bl	dev_get_platdata
	ldr	r0, [r0]
	bl	sta2x11_mfd_find
	subs	r5, r0, #0
	beq	.L4
	cmp	r7, #0
	beq	.L4
	ldr	r3, .L15+8
	mov	r2, #0
	mov	r0, r6
	ldr	r1, [r3]
	bl	platform_get_resource
	subs	r9, r0, #0
	beq	.L12
	ldr	r10, [r9]
	bl	resource_size
	mov	r2, r8
	mov	r1, r0
	mov	r0, r10
	bl	request_mem_region
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r0, r9
	ldr	r4, [r9]
	bl	resource_size
	mov	r1, r0
	mov	r0, r4
	bl	release_mem_region
.L12:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r9
	ldr	r8, [r9]
	bl	resource_size
	mov	r1, r0
	mov	r0, r8
	ldr	r8, [r5, #4]
	bl	ioremap
	ldr	r3, [r5, #4]
	str	r0, [r8, r4, lsl #2]
	ldr	r2, [r3, r4, lsl #2]
	cmp	r2, #0
	beq	.L14
	ldr	r2, .L15+24
	mov	r0, r6
	ldr	r1, [r2]
	add	r2, r5, #8
	str	r1, [r7]
	ldr	r1, [r3, r4, lsl #2]
	str	r2, [r7, #4]
	mov	r2, r7
	ldr	r6, [r5]
	bl	devm_regmap_init_mmio
	ldr	r3, [r5]
	str	r0, [r6, r4, lsl #2]
	ldr	r0, [r3, r4, lsl #2]
	bl	IS_ERR
	bl	WARN_ON
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	sta2x11_mfd_names
	.word	sta2x11_mfd_regmap_configs
	.word	IORESOURCE_MEM
	.word	EBUSY
	.word	ENOMEM
	.word	ENODEV
	.word	REGCACHE_NONE
	.size	sta2x11_mfd_platform_probe, .-sta2x11_mfd_platform_probe
	.comm	sta2x11_mfd_regmap_configs,4,4
	.comm	sta2x11_mfd_names,4,4
	.comm	REGCACHE_NONE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
