	.file	"extr_rockchip-io-domain.c_rockchip_iodomain_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"falling back to old binding\n"
.LC1:
	.string	"rockchip,grf"
.LC2:
	.string	"couldn't find grf regmap\n"
.LC3:
	.string	"couldn't get regulator %s\n"
.LC4:
	.string	"Can't determine voltage: %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"%d uV is too high. May damage SoC!\n"
	.align 8
.LC6:
	.string	"regulator notifier request failed\n"
	.text
	.p2align 4
	.type	rockchip_iodomain_probe, @function
rockchip_iodomain_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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rdi]
	test	r12, r12
	je	.L41
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	r13, rdi
	call	devm_kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L42
	mov	QWORD PTR 16[rax], r13
	mov	rsi, rax
	mov	rdi, r13
	call	platform_set_drvdata@PLT
	mov	edi, DWORD PTR rockchip_iodomain_match[rip]
	mov	rsi, r12
	call	of_match_node@PLT
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	jne	.L43
.L5:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_dbg@PLT
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	syscon_regmap_lookup_by_phandle@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	rdi, rax
.L6:
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR MAX_SUPPLIES[rip]
	mov	rdx, QWORD PTR 8[rbp]
	test	eax, eax
	jle	.L9
	xor	ebx, ebx
	xor	r12d, r12d
.L8:
	mov	rax, QWORD PTR [rdx]
	mov	r15, QWORD PTR [rax+rbx*8]
	test	r15, r15
	je	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, r15
	mov	QWORD PTR 8[rsp], rax
	call	devm_regulator_get_optional@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	mov	rdi, r14
	test	rax, rax
	je	.L11
	call	PTR_ERR@PLT
	mov	r12d, eax
	add	eax, DWORD PTR ENODEV[rip]
	je	.L38
	mov	eax, r12d
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	jne	.L44
.L13:
	movsx	rax, DWORD PTR MAX_SUPPLIES[rip]
	mov	edx, eax
	sub	edx, 1
	js	.L1
	movsx	rcx, edx
	mov	edx, edx
	sub	rax, rdx
	lea	rbx, [rcx+rcx*2]
	lea	rax, [rax+rax*2]
	sal	rbx, 3
	lea	r13, -48[0+rax*8]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR 0[rbp]
	add	rsi, rbx
	mov	rdi, QWORD PTR 8[rsi]
	test	rdi, rdi
	je	.L18
	add	rsi, 4
	call	regulator_unregister_notifier@PLT
.L18:
	sub	rbx, 24
	cmp	r13, rbx
	jne	.L19
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	regulator_get_voltage@PLT
	mov	esi, eax
	test	eax, eax
	js	.L45
	cmp	DWORD PTR MAX_VOLTAGE_3_3[rip], eax
	jl	.L46
	mov	rcx, QWORD PTR 8[rsp]
	lea	rax, [rbx+rbx*2]
	lea	r15, [rcx+rax*8]
	mov	eax, DWORD PTR rockchip_iodomain_notify[rip]
	mov	DWORD PTR [r15], ebx
	mov	rdi, r15
	mov	QWORD PTR 16[r15], rbp
	mov	QWORD PTR 8[r15], r14
	mov	DWORD PTR 4[r15], eax
	call	rockchip_iodomain_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L39
	lea	rsi, 4[r15]
	mov	rdi, r14
	call	regulator_register_notifier@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
.L38:
	mov	rdx, QWORD PTR 8[rbp]
.L10:
	add	rbx, 1
	cmp	DWORD PTR MAX_SUPPLIES[rip], ebx
	jg	.L8
.L9:
	mov	rax, QWORD PTR 8[rdx]
	xor	r12d, r12d
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rdi, QWORD PTR 16[rbp]
	mov	rdx, r15
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	call	syscon_node_to_regmap@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	rdi, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbp]
	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
	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
	jmp	PTR_ERR@PLT
.L17:
	.cfi_restore_state
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L39:
	mov	QWORD PTR 8[r15], 0
	jmp	.L13
.L45:
	mov	rdi, QWORD PTR 16[rbp]
	mov	rdx, r15
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L13
.L46:
	mov	rdi, QWORD PTR 16[rbp]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	call	dev_crit@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	rockchip_iodomain_probe, .-rockchip_iodomain_probe
	.comm	rockchip_iodomain_notify,4,4
	.comm	rockchip_iodomain_match,4,4
	.comm	MAX_VOLTAGE_3_3,4,4
	.comm	MAX_SUPPLIES,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_rockchip-io-domain.c_rockchip_iodomain_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"falling back to old binding\012\000"
	.align	2
.LC1:
	.ascii	"rockchip,grf\000"
	.align	2
.LC2:
	.ascii	"couldn't find grf regmap\012\000"
	.align	2
.LC3:
	.ascii	"couldn't get regulator %s\012\000"
	.align	2
.LC4:
	.ascii	"Can't determine voltage: %s\012\000"
	.align	2
.LC5:
	.ascii	"%d uV is too high. May damage SoC!\012\000"
	.align	2
.LC6:
	.ascii	"regulator notifier request failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rockchip_iodomain_probe, %function
rockchip_iodomain_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0, #4]
	sub	sp, sp, #12
	cmp	r4, #0
	beq	.L40
	ldr	r3, .L46
	mov	r1, #16
	ldr	r2, [r3]
	mov	r6, r0
	bl	devm_kzalloc
	subs	r7, r0, #0
	beq	.L41
	mov	r1, r7
	mov	r0, r6
	str	r6, [r7, #8]
	bl	platform_set_drvdata
	ldr	r2, .L46+4
	mov	r1, r4
	ldr	r0, [r2]
	bl	of_match_node
	ldr	r2, [r6]
	ldr	r1, [r0]
	cmp	r2, #0
	str	r1, [r7, #4]
	beq	.L5
	ldr	r0, [r2]
	cmp	r0, #0
	bne	.L42
.L5:
	ldr	r1, .L46+8
	mov	r0, r6
	bl	dev_dbg
	mov	r0, r4
	ldr	r1, .L46+12
	bl	syscon_regmap_lookup_by_phandle
	str	r0, [r7, #12]
.L6:
	bl	IS_ERR
	cmp	r0, #0
	bne	.L7
	ldr	r10, .L46+16
	ldr	ip, [r7, #4]
	ldr	r2, [r10]
	cmp	r2, #0
	movgt	r4, r0
	strgt	r6, [sp, #4]
	movgt	r5, r4
	ble	.L9
.L8:
	ldr	r3, [ip]
	ldr	r6, [r3, r5, lsl #2]
	cmp	r6, #0
	beq	.L10
	mov	r1, r6
	ldr	r0, [r7, #8]
	ldr	fp, [r7]
	bl	devm_regulator_get_optional
	mov	r9, r0
	bl	IS_ERR
	subs	r3, r0, #0
	add	r8, fp, r5, lsl #4
	mov	r0, r9
	str	r3, [sp]
	beq	.L11
	bl	PTR_ERR
	ldr	r3, .L46+20
	mov	r4, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L37
	ldr	r2, .L46+24
	ldr	r2, [r2]
	cmn	r0, r2
	bne	.L43
.L13:
	ldr	r5, [r10]
	subs	r5, r5, #1
	bmi	.L1
.L19:
	ldr	r1, [r7]
	add	r1, r1, r5, lsl #4
	ldr	r0, [r1, #8]
	sub	r5, r5, #1
	cmp	r0, #0
	add	r1, r1, #4
	beq	.L18
	bl	regulator_unregister_notifier
.L18:
	cmn	r5, #1
	bne	.L19
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldr	r3, .L46+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	regulator_get_voltage
	cmp	r0, #0
	blt	.L44
	ldr	r3, .L46+32
	ldr	r2, [r3]
	cmp	r2, r0
	blt	.L45
	ldr	r3, .L46+36
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r8
	str	r5, [fp, r5, lsl #4]
	stmib	r8, {r2, r9}
	str	r7, [r8, #12]
	bl	rockchip_iodomain_write
	subs	r4, r0, #0
	add	r1, r8, #4
	bne	.L38
	mov	r0, r9
	bl	regulator_register_notifier
	subs	r4, r0, #0
	bne	.L17
.L37:
	ldr	ip, [r7, #4]
.L10:
	ldr	r3, [r10]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L8
.L9:
	ldr	r4, [ip, #4]
	cmp	r4, #0
	beq	.L1
	mov	r0, r7
	blx	r4
	mov	r4, #0
	b	.L1
.L40:
	ldr	r3, .L46+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	mov	r2, r6
	ldr	r1, .L46+40
	ldr	r0, [r7, #8]
	bl	dev_err
	b	.L13
.L42:
	bl	syscon_node_to_regmap
	str	r0, [r7, #12]
	b	.L6
.L7:
	mov	r0, r6
	ldr	r1, .L46+44
	bl	dev_err
	ldr	r0, [r7, #12]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L17:
	ldr	r6, [sp, #4]
	ldr	r1, .L46+48
	mov	r0, r6
	bl	dev_err
.L38:
	ldr	r3, [sp]
	str	r3, [r8, #8]
	b	.L13
.L44:
	mov	r2, r6
	ldr	r1, .L46+52
	ldr	r0, [r7, #8]
	bl	dev_err
	b	.L13
.L45:
	mov	r2, r0
	ldr	r1, .L46+56
	ldr	r0, [r7, #8]
	bl	dev_crit
	ldr	r2, .L46+60
	ldr	r4, [r2]
	rsb	r4, r4, #0
	b	.L13
.L47:
	.align	2
.L46:
	.word	GFP_KERNEL
	.word	rockchip_iodomain_match
	.word	.LC0
	.word	.LC1
	.word	MAX_SUPPLIES
	.word	ENODEV
	.word	EPROBE_DEFER
	.word	ENOMEM
	.word	MAX_VOLTAGE_3_3
	.word	rockchip_iodomain_notify
	.word	.LC3
	.word	.LC2
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	EINVAL
	.size	rockchip_iodomain_probe, .-rockchip_iodomain_probe
	.comm	rockchip_iodomain_notify,4,4
	.comm	rockchip_iodomain_match,4,4
	.comm	MAX_VOLTAGE_3_3,4,4
	.comm	MAX_SUPPLIES,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
