	.file	"extr_gpio-regulator.c_of_get_gpio_regulator_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enable-at-boot"
.LC1:
	.string	"startup-delay-us"
.LC2:
	.string	"states"
.LC3:
	.string	"gpios-states"
.LC4:
	.string	"No 'states' property found\n"
.LC5:
	.string	"regulator-type"
.LC6:
	.string	"voltage"
.LC7:
	.string	"current"
.LC8:
	.string	"Unknown regulator-type '%s'\n"
	.text
	.p2align 4
	.type	of_get_gpio_regulator_config, @function
of_get_gpio_regulator_config:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, 64
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L16
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12, rax
	call	of_get_regulator_init_data@PLT
	mov	QWORD PTR 48[r12], rax
	test	rax, rax
	je	.L32
	mov	eax, DWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	DWORD PTR 56[r12], eax
	call	of_property_read_bool@PLT
	test	rax, rax
	je	.L5
	mov	DWORD PTR [r12], 1
.L5:
	lea	rdx, 40[r12]
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	of_property_read_u32@PLT
	xor	esi, esi
	mov	rdi, r13
	call	gpiod_count@PLT
	mov	DWORD PTR 16[rsp], eax
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR 16[rsp]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	lea	esi, 0[0+rax*4]
	call	devm_kzalloc@PLT
	mov	QWORD PTR 32[r12], rax
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR 16[rsp]
	xor	r15d, r15d
	lea	r14, 32[rsp]
	lea	rbx, .LC3[rip]
	sub	eax, 1
	mov	QWORD PTR 8[rsp], rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rax, QWORD PTR 32[r12]
	mov	rdx, QWORD PTR GPIOD_OUT_HIGH[rip]
	mov	QWORD PTR [rax+r15*8], rdx
	lea	rax, 1[r15]
	cmp	QWORD PTR 8[rsp], r15
	je	.L15
.L22:
	mov	r15, rax
.L14:
	mov	edx, r15d
	mov	rcx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	of_property_read_u32_index@PLT
	lea	rdx, 0[0+r15*8]
	test	eax, eax
	jne	.L34
	cmp	QWORD PTR 32[rsp], 0
	mov	rax, QWORD PTR GPIOD_OUT_LOW[rip]
	je	.L13
	mov	rax, QWORD PTR GPIOD_OUT_HIGH[rip]
.L13:
	mov	rcx, QWORD PTR 32[r12]
	mov	QWORD PTR [rcx+rdx], rax
	lea	rax, 1[r15]
	cmp	QWORD PTR 8[rsp], r15
	jne	.L22
.L15:
	mov	eax, DWORD PTR 16[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[r12], eax
	call	of_property_count_u32_elems@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L35
	sar	r14d
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 4
	mov	rdi, r13
	mov	esi, r14d
	mov	DWORD PTR 28[rsp], r14d
	mov	ebx, r14d
	call	devm_kcalloc@PLT
	mov	QWORD PTR 24[r12], rax
	test	rax, rax
	je	.L16
	test	r14d, r14d
	je	.L17
	sub	ebx, 1
	xor	r14d, r14d
	mov	QWORD PTR 16[rsp], rbx
	lea	rbx, .LC2[rip]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR 24[r12]
	mov	r14, rdx
.L18:
	mov	r8, r14
	lea	r15d, [r14+r14]
	mov	rsi, rbx
	mov	rdi, rbp
	sal	r8, 4
	mov	edx, r15d
	lea	rcx, 8[rax+r8]
	mov	QWORD PTR 8[rsp], r8
	call	of_property_read_u32_index@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	rcx, QWORD PTR 24[r12]
	lea	edx, 1[r15]
	add	rcx, r8
	call	of_property_read_u32_index@PLT
	lea	rdx, 1[r14]
	cmp	r14, QWORD PTR 16[rsp]
	jne	.L36
.L17:
	mov	eax, DWORD PTR 28[rsp]
	lea	rdx, 32[rsp]
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[r12], eax
	mov	rax, QWORD PTR REGULATOR_VOLTAGE[rip]
	mov	QWORD PTR 16[r12], rax
	call	of_property_read_string@PLT
	test	eax, eax
	jns	.L37
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L35:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	dev_err@PLT
.L32:
	mov	edi, DWORD PTR EINVAL[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR ENOMEM[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, 7
	lea	rdi, .LC6[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR REGULATOR_VOLTAGE[rip]
	mov	QWORD PTR 16[r12], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, 7
	lea	rdi, .LC7[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR REGULATOR_CURRENT[rip]
	mov	QWORD PTR 16[r12], rax
	jmp	.L1
.L20:
	mov	rdx, QWORD PTR 32[rsp]
	lea	rsi, .LC8[rip]
	mov	rdi, r13
	call	dev_warn@PLT
	jmp	.L1
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	of_get_gpio_regulator_config, .-of_get_gpio_regulator_config
	.comm	REGULATOR_VOLTAGE,8,8
	.comm	REGULATOR_CURRENT,8,8
	.comm	GPIOD_OUT_LOW,8,8
	.comm	GPIOD_OUT_HIGH,8,8
	.comm	GFP_KERNEL,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_gpio-regulator.c_of_get_gpio_regulator_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enable-at-boot\000"
	.align	2
.LC1:
	.ascii	"startup-delay-us\000"
	.align	2
.LC2:
	.ascii	"states\000"
	.align	2
.LC3:
	.ascii	"gpios-states\000"
	.align	2
.LC4:
	.ascii	"No 'states' property found\012\000"
	.align	2
.LC5:
	.ascii	"regulator-type\000"
	.align	2
.LC6:
	.ascii	"voltage\000"
	.align	2
.LC7:
	.ascii	"current\000"
	.align	2
.LC8:
	.ascii	"Unknown regulator-type '%s'\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	of_get_gpio_regulator_config, %function
of_get_gpio_regulator_config:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L40
	ldr	r3, .L40+4
	sub	sp, sp, #12
	mov	r6, r1
	mov	r4, r2
	mov	r1, #36
	ldr	r2, [r9]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L15
	mov	r2, r4
	mov	r1, r6
	mov	r0, r7
	bl	of_get_regulator_init_data
	cmp	r0, #0
	str	r0, [r5, #28]
	beq	.L33
	ldr	r3, [r0]
	ldr	r1, .L40+8
	str	r3, [r5, #32]
	mov	r0, r6
	bl	of_property_read_bool
	cmp	r0, #0
	movne	r3, #1
	ldr	r1, .L40+12
	strne	r3, [r5]
	add	r2, r5, #24
	mov	r0, r6
	bl	of_property_read_u32
	mov	r1, #0
	mov	r0, r7
	bl	gpiod_count
	subs	r8, r0, #0
	ble	.L14
	mov	r0, r7
	ldr	r2, [r9]
	lsl	r1, r8, #2
	bl	devm_kzalloc
	cmp	r0, #0
	str	r0, [r5, #20]
	beq	.L15
	mov	r4, #0
	ldr	fp, .L40+16
	ldr	r10, .L40+20
	b	.L9
.L35:
	ldr	r2, [r10]
	ldr	r3, [r5, #20]
	str	r2, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r8, r4
	beq	.L14
.L9:
	mov	r3, sp
	mov	r2, r4
	mov	r1, fp
	mov	r0, r6
	bl	of_property_read_u32_index
	cmp	r0, #0
	lsl	r3, r4, #2
	bne	.L35
	ldr	r2, [sp]
	add	r4, r4, #1
	cmp	r2, #0
	ldreq	r2, .L40+24
	ldrne	r1, [r10]
	ldreq	r1, [r2]
	ldr	r2, [r5, #20]
	cmp	r8, r4
	str	r1, [r2, r3]
	bne	.L9
.L14:
	mov	r0, r6
	ldr	r1, .L40+28
	str	r8, [r5, #4]
	bl	of_property_count_u32_elems
	cmp	r0, #0
	blt	.L36
	asr	r8, r0, #1
	ldr	r3, [r9]
	mov	r1, r8
	mov	r2, #4
	mov	r0, r7
	bl	devm_kcalloc
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r5, #16]
	beq	.L15
	cmp	r8, #0
	beq	.L16
	mov	r4, #0
	ldr	r10, .L40+28
	lsl	r9, r8, #1
	b	.L17
.L37:
	ldr	r3, [r5, #16]
.L17:
	add	r3, r3, r4, lsl #2
	mov	r2, r4
	mov	r1, r10
	add	r3, r3, #4
	mov	r0, r6
	bl	of_property_read_u32_index
	ldr	r2, [r5, #16]
	lsl	r3, r4, #2
	add	r3, r2, r3
	mov	r1, r10
	add	r2, r4, #1
	mov	r0, r6
	add	r4, r4, #2
	bl	of_property_read_u32_index
	cmp	r9, r4
	bne	.L37
.L16:
	ldr	r4, .L40+32
	mov	r0, r6
	ldr	r3, [r4]
	mov	r2, sp
	ldr	r1, .L40+36
	str	r8, [r5, #8]
	str	r3, [r5, #12]
	bl	of_property_read_string
	cmp	r0, #0
	blt	.L1
	ldr	r6, [sp]
	mov	r2, #7
	mov	r1, r6
	ldr	r0, .L40+40
	bl	strncmp
	cmp	r0, #0
	beq	.L38
	mov	r2, #7
	mov	r1, r6
	ldr	r0, .L40+44
	bl	strncmp
	cmp	r0, #0
	bne	.L19
	ldr	r3, .L40+48
	ldr	r3, [r3]
	str	r3, [r5, #12]
.L1:
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	mov	r0, r7
	ldr	r1, .L40+52
	bl	dev_err
.L33:
	ldr	r3, .L40+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r5, r0
	b	.L1
.L15:
	ldr	r3, .L40+60
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r5, r0
	b	.L1
.L38:
	ldr	r3, [r4]
	str	r3, [r5, #12]
	b	.L1
.L19:
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L40+64
	bl	dev_warn
	b	.L1
.L39:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	GFP_KERNEL
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	GPIOD_OUT_HIGH
	.word	GPIOD_OUT_LOW
	.word	.LC2
	.word	REGULATOR_VOLTAGE
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	REGULATOR_CURRENT
	.word	.LC4
	.word	EINVAL
	.word	ENOMEM
	.word	.LC8
	.size	of_get_gpio_regulator_config, .-of_get_gpio_regulator_config
	.comm	REGULATOR_VOLTAGE,4,4
	.comm	REGULATOR_CURRENT,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GPIOD_OUT_HIGH,4,4
	.comm	GFP_KERNEL,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
