	.file	"extr_tpa6130a2.c_tpa6130a2_power.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to enable supply: %d\n"
.LC1:
	.string	"Failed to sync registers: %d\n"
.LC2:
	.string	"Failed to disable supply: %d\n"
	.text
	.p2align 4
	.type	tpa6130a2_power, @function
tpa6130a2_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	je	.L2
	mov	edi, DWORD PTR 12[rdi]
	call	regulator_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	js	.L5
	mov	esi, 1
	call	gpio_set_value@PLT
.L5:
	mov	edi, DWORD PTR 16[rbx]
	xor	esi, esi
	call	regcache_cache_only@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	regcache_sync@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rdi]
	call	regcache_mark_dirty@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, 1
	call	regcache_cache_only@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	js	.L7
	xor	esi, esi
	call	gpio_set_value@PLT
.L7:
	mov	edi, DWORD PTR 12[rbx]
	call	regulator_disable@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, 1
	call	regcache_cache_only@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jns	.L21
.L6:
	mov	edi, DWORD PTR 12[rbx]
	call	regulator_disable@PLT
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	xor	esi, esi
	call	gpio_set_value@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	tpa6130a2_power, .-tpa6130a2_power
	.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_tpa6130a2.c_tpa6130a2_power.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to enable supply: %d\012\000"
	.align	2
.LC1:
	.ascii	"Failed to sync registers: %d\012\000"
	.align	2
.LC2:
	.ascii	"Failed to disable supply: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpa6130a2_power, %function
tpa6130a2_power:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	mov	r4, r0
	beq	.L2
	ldr	r0, [r0, #8]
	bl	regulator_enable
	subs	r5, r0, #0
	bne	.L19
	ldr	r0, [r4]
	cmp	r0, #0
	blt	.L5
	mov	r1, #1
	bl	gpio_set_value
.L5:
	mov	r1, #0
	ldr	r0, [r4, #12]
	bl	regcache_cache_only
	ldr	r0, [r4, #12]
	bl	regcache_sync
	subs	r5, r0, #0
	bne	.L20
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r0, #12]
	bl	regcache_mark_dirty
	mov	r1, #1
	ldr	r0, [r4, #12]
	bl	regcache_cache_only
	ldr	r0, [r4]
	cmp	r0, #0
	blt	.L7
	mov	r1, r5
	bl	gpio_set_value
.L7:
	ldr	r0, [r4, #8]
	bl	regulator_disable
	subs	r5, r0, #0
	beq	.L1
	mov	r2, r5
	ldr	r0, [r4, #4]
	ldr	r1, .L22
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L19:
	mov	r2, r5
	ldr	r0, [r4, #4]
	ldr	r1, .L22+4
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L20:
	mov	r2, r5
	ldr	r1, .L22+8
	ldr	r0, [r4, #4]
	bl	dev_err
	mov	r1, #1
	ldr	r0, [r4, #12]
	bl	regcache_cache_only
	ldr	r0, [r4]
	cmp	r0, #0
	bge	.L21
.L6:
	ldr	r0, [r4, #8]
	bl	regulator_disable
	subs	r2, r0, #0
	beq	.L1
	ldr	r0, [r4, #4]
	ldr	r1, .L22
	bl	dev_err
	b	.L1
.L21:
	mov	r1, #0
	bl	gpio_set_value
	b	.L6
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	tpa6130a2_power, .-tpa6130a2_power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
