	.file	"extr_bhnd_pmu_subr.c_bhnd_pmu_paref_ldo_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bhnd_pmu_paref_ldo_enable
	.type	bhnd_pmu_paref_ldo_enable, @function
bhnd_pmu_paref_ldo_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L12
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR RES4328_PA_REF_LDO[rip]
	call	PMURES_BIT@PLT
	mov	edx, eax
.L6:
	mov	esi, DWORD PTR BHND_PMU_MIN_RES_MASK[rip]
	test	ebx, ebx
	je	.L8
	mov	rdi, rbp
	call	BHND_PMU_OR_4@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	not	edx
	call	BHND_PMU_AND_4@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR RES5354_PA_REF_LDO[rip]
	call	PMURES_BIT@PLT
	mov	edx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR RES4312_PA_REF_LDO[rip]
	call	PMURES_BIT@PLT
	mov	edx, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bhnd_pmu_paref_ldo_enable, .-bhnd_pmu_paref_ldo_enable
	.comm	RES5354_PA_REF_LDO,4,4
	.comm	RES4328_PA_REF_LDO,4,4
	.comm	RES4312_PA_REF_LDO,4,4
	.comm	ENODEV,4,4
	.comm	BHND_PMU_MIN_RES_MASK,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_bhnd_pmu_subr.c_bhnd_pmu_paref_ldo_enable.c"
	.text
	.align	2
	.global	bhnd_pmu_paref_ldo_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_pmu_paref_ldo_enable, %function
bhnd_pmu_paref_ldo_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #129
	mov	r5, r0
	mov	r4, r1
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L12
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	PMURES_BIT
	mov	r2, r0
.L6:
	ldr	r3, .L13+8
	cmp	r4, #0
	ldr	r1, [r3]
	beq	.L8
	mov	r0, r5
	bl	BHND_PMU_OR_4
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mvn	r2, r2
	mov	r0, r5
	bl	BHND_PMU_AND_4
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	bl	PMURES_BIT
	mov	r2, r0
	b	.L6
.L3:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	bl	PMURES_BIT
	mov	r2, r0
	b	.L6
.L14:
	.align	2
.L13:
	.word	ENODEV
	.word	RES4328_PA_REF_LDO
	.word	BHND_PMU_MIN_RES_MASK
	.word	RES5354_PA_REF_LDO
	.word	RES4312_PA_REF_LDO
	.size	bhnd_pmu_paref_ldo_enable, .-bhnd_pmu_paref_ldo_enable
	.comm	RES5354_PA_REF_LDO,4,4
	.comm	RES4328_PA_REF_LDO,4,4
	.comm	RES4312_PA_REF_LDO,4,4
	.comm	ENODEV,4,4
	.comm	BHND_PMU_MIN_RES_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
