	.file	"extr_vega20_hwmgr.c_vega20_set_ppfeature_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"features_to_disable 0x%llx\n"
.LC1:
	.string	"features_to_enable 0x%llx\n"
	.text
	.p2align 4
	.type	vega20_set_ppfeature_status, @function
vega20_set_ppfeature_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR GNLD_FEATURES_MAX[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, 1
	sal	rax, cl
	cmp	rax, rsi
	ja	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rsi
	mov	rsi, rsp
	mov	rbp, rdi
	call	vega20_get_enabled_smc_features@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r13, QWORD PTR [rsp]
	mov	r14, rbx
	lea	rdi, .LC0[rip]
	not	r14
	and	r14, r13
	not	r13
	and	r13, rbx
	mov	rsi, r14
	call	pr_debug@PLT
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	call	pr_debug@PLT
	test	r14, r14
	jne	.L4
.L6:
	test	r13, r13
	je	.L1
	mov	rdx, r13
	mov	esi, 1
	mov	rdi, rbp
	call	vega20_enable_smc_features@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	esi, esi
	mov	rdx, r14
	mov	rdi, rbp
	call	vega20_enable_smc_features@PLT
	test	eax, eax
	je	.L6
	mov	r12d, eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vega20_set_ppfeature_status, .-vega20_set_ppfeature_status
	.comm	GNLD_FEATURES_MAX,8,8
	.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_vega20_hwmgr.c_vega20_set_ppfeature_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"features_to_disable 0x%llx\012\000"
	.align	2
.LC1:
	.ascii	"features_to_enable 0x%llx\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega20_set_ppfeature_status, %function
vega20_set_ppfeature_status:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r4, r2
	ldr	r1, .L12
	ldr	lr, .L12+4
	ldr	r1, [r1]
	sub	sp, sp, #20
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	sub	lr, r1, #32
	lsl	r3, ip, lr
	rsb	lr, r1, #32
	orr	r3, r3, ip, lsr lr
	lsl	r2, ip, r1
	cmp	r3, r5
	cmpeq	r2, r4
	bhi	.L2
	ldr	r3, .L12+8
	ldr	r10, [r3]
	rsb	r10, r10, #0
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, sp
	mov	fp, r0
	bl	vega20_get_enabled_smc_features
	subs	r10, r0, #0
	bne	.L1
	ldm	sp, {r2, r3}
	bic	r6, r2, r4
	bic	r7, r3, r5
	bic	r8, r4, r2
	bic	r9, r5, r3
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L12+12
	bl	pr_debug
	mov	r3, r9
	mov	r2, r8
	ldr	r0, .L12+16
	bl	pr_debug
	orrs	r3, r6, r7
	bne	.L4
.L6:
	orrs	r3, r8, r9
	beq	.L1
	mov	r2, r8
	mov	r3, r9
	mov	r0, fp
	mov	r1, #1
	bl	vega20_enable_smc_features
	mov	r10, r0
	b	.L1
.L4:
	mov	r2, r6
	mov	r3, r7
	mov	r1, r10
	mov	r0, fp
	bl	vega20_enable_smc_features
	cmp	r0, #0
	beq	.L6
	mov	r10, r0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	GNLD_FEATURES_MAX
	.word	.LC2
	.word	EINVAL
	.word	.LC0
	.word	.LC1
	.size	vega20_set_ppfeature_status, .-vega20_set_ppfeature_status
	.comm	GNLD_FEATURES_MAX,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
