	.file	"extr_core.c_regulator_allow_bypass.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	regulator_allow_bypass
	.type	regulator_allow_bypass, @function
regulator_allow_bypass:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	r12d, esi
	mov	esi, DWORD PTR REGULATOR_CHANGE_BYPASS[rip]
	mov	rbx, rdi
	mov	rdi, rbp
	call	regulator_ops_is_valid@PLT
	test	eax, eax
	jne	.L19
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r13d, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	regulator_lock@PLT
	test	r12d, r12d
	je	.L5
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L6
	mov	rax, QWORD PTR 0[rbp]
	add	rax, 1
	mov	QWORD PTR 0[rbp], rax
	cmp	rax, QWORD PTR 8[rbp]
	je	.L20
.L6:
	mov	DWORD PTR [rbx], r12d
	xor	r13d, r13d
.L7:
	mov	rdi, rbp
	call	regulator_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR 0[rbp]
	sub	rax, 1
	mov	QWORD PTR 0[rbp], rax
	cmp	rax, QWORD PTR 8[rbp]
	je	.L6
	mov	rax, QWORD PTR 16[rbp]
	xor	esi, esi
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r13d, eax
	test	eax, eax
	je	.L6
	add	QWORD PTR 0[rbp], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, r12d
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r13d, eax
	test	eax, eax
	je	.L6
	sub	QWORD PTR 0[rbp], 1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	regulator_allow_bypass, .-regulator_allow_bypass
	.comm	REGULATOR_CHANGE_BYPASS,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_core.c_regulator_allow_bypass.c"
	.text
	.align	2
	.global	regulator_allow_bypass
	.syntax unified
	.arm
	.fpu softvfp
	.type	regulator_allow_bypass, %function
regulator_allow_bypass:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #4]
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L24
	mov	r4, r0
	mov	r6, r1
	mov	r0, r5
	ldr	r1, [r3]
	bl	regulator_ops_is_valid
	cmp	r0, #0
	bne	.L22
.L4:
	mov	r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r5
	bl	regulator_lock
	cmp	r6, #0
	ldr	r3, [r4]
	beq	.L5
	cmp	r3, #0
	bne	.L6
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r5]
	beq	.L23
.L6:
	mov	r7, #0
	str	r6, [r4]
.L7:
	mov	r0, r5
	bl	regulator_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	sub	r3, r3, #1
	cmp	r3, r2
	str	r3, [r5]
	beq	.L6
	ldr	r3, [r5, #8]
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	subs	r7, r0, #0
	beq	.L6
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
	b	.L7
.L23:
	ldr	r3, [r5, #8]
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	subs	r7, r0, #0
	beq	.L6
	ldr	r3, [r5]
	sub	r3, r3, #1
	str	r3, [r5]
	b	.L7
.L25:
	.align	2
.L24:
	.word	REGULATOR_CHANGE_BYPASS
	.size	regulator_allow_bypass, .-regulator_allow_bypass
	.comm	REGULATOR_CHANGE_BYPASS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
