	.file	"extr_core.c_regulator_resolve_coupling.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"coupler mismatch with %s\n"
	.text
	.p2align 4
	.type	regulator_resolve_coupling, @function
regulator_resolve_coupling:
.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, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	mov	r14, QWORD PTR 16[rdi]
	cmp	eax, 1
	jle	.L1
	mov	rbp, rdi
	lea	r13d, -2[rax]
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	rbx, r13
	je	.L1
.L8:
	mov	rbx, r15
.L7:
	mov	rax, QWORD PTR 8[rbp]
	lea	r15, 1[rbx]
	cmp	QWORD PTR 8[rax+rbx*8], 0
	jne	.L4
	mov	esi, ebx
	mov	rdi, rbp
	call	of_parse_coupled_regulator@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rdi, rax
	cmp	QWORD PTR 16[rax], r14
	jne	.L14
	call	regulator_lock@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r12
	mov	QWORD PTR [rax+r15*8], r12
	add	DWORD PTR 4[rbp], 1
	call	regulator_unlock@PLT
	mov	rdi, r12
	call	regulator_resolve_coupling
	cmp	rbx, r13
	jne	.L8
.L1:
	add	rsp, 8
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	rdev_get_name@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edx, eax
	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	rdev_err@PLT
	.cfi_endproc
.LFE0:
	.size	regulator_resolve_coupling, .-regulator_resolve_coupling
	.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_core.c_regulator_resolve_coupling.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"coupler mismatch with %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	regulator_resolve_coupling, %function
regulator_resolve_coupling:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0]
	ldr	r8, [r0, #12]
	cmp	r7, #1
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r5, r0
	mov	r4, #1
	b	.L7
.L4:
	add	r4, r4, #1
	cmp	r7, r4
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, [r5, #8]
	lsl	r9, r4, #2
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	bne	.L4
	mov	r0, r5
	sub	r1, r4, #1
	bl	of_parse_coupled_regulator
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [r6, #12]
	cmp	r3, r8
	bne	.L14
	bl	regulator_lock
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	add	r3, r3, #1
	str	r6, [r2, r9]
	mov	r0, r6
	str	r3, [r5, #4]
	bl	regulator_unlock
	mov	r0, r6
	bl	regulator_resolve_coupling
	b	.L4
.L14:
	bl	rdev_get_name
	ldr	r1, .L15
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	rdev_err
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	regulator_resolve_coupling, .-regulator_resolve_coupling
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
