	.file	"extr_xen-acpi-processor.c_push_pxx_to_hypervisor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ACPI CPU%u missing some P-state data (%x), skipping\n"
	.align 8
.LC1:
	.string	"ACPI CPU%u - P-states uploaded.\n"
	.align 8
.LC2:
	.string	"     %cP%d: %d MHz, %d mW, %d uS\n"
	.align 8
.LC3:
	.string	"(_PXX): Hypervisor error (%d) for ACPI CPU%u\n"
	.text
	.p2align 4
	.type	push_pxx_to_hypervisor, @function
push_pxx_to_hypervisor:
.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
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	lea	rsi, 16[rsp]
	lea	r12, 4[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR XEN_PM_PX[rip]
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR XENPF_INTERFACE_VERSION[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR XENPF_set_processor_pminfo[rip]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 16[rdi]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR XEN_PX_PPC[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, 20[rax]
	call	xen_copy_pct_data@PLT
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, 12[rsp]
	lea	rdi, 16[rax]
	call	xen_copy_pct_data@PLT
	mov	rdi, rbx
	mov	rsi, r12
	mov	eax, DWORD PTR XEN_PX_PCT[rip]
	or	DWORD PTR 4[rsp], eax
	call	xen_copy_pss_data@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR_OR_NULL@PLT
	test	eax, eax
	je	.L25
.L2:
	mov	rsi, r12
	mov	rdi, rbx
	call	xen_copy_psd_data@PLT
	mov	ecx, DWORD PTR XEN_PX_PSD[rip]
	test	eax, eax
	je	.L3
	mov	edx, DWORD PTR 4[rsp]
.L4:
	mov	eax, DWORD PTR XEN_PX_PSS[rip]
	or	eax, DWORD PTR XEN_PX_PCT[rip]
	or	eax, DWORD PTR XEN_PX_PPC[rip]
	or	eax, ecx
	cmp	eax, edx
	jne	.L26
	mov	edx, DWORD PTR no_hypercall[rip]
	test	edx, edx
	jne	.L10
	mov	rdi, rsp
	call	HYPERVISOR_platform_op@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
	add	eax, DWORD PTR EINVAL[rip]
	je	.L6
	mov	eax, r12d
	add	eax, DWORD PTR ENOSYS[rip]
	je	.L6
	mov	edx, DWORD PTR [rbx]
	mov	esi, r12d
	lea	rdi, .LC3[rip]
	call	pr_warn@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r13, QWORD PTR 8[rbx]
	movsx	esi, BYTE PTR [rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	ebx, ebx
	mov	r12d, 42
	call	pr_debug@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, ebx
	cmp	DWORD PTR 4[r13], ebx
	mov	esi, 32
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 8[r13]
	cmove	esi, r12d
	lea	rdi, .LC2[rip]
	lea	rax, [rax+rdx*8]
	mov	edx, ebx
	add	ebx, 1
	mov	rcx, QWORD PTR 16[rax]
	mov	r9d, DWORD PTR [rax]
	mov	r8d, DWORD PTR 8[rax]
	xor	eax, eax
	call	pr_debug@PLT
	cmp	DWORD PTR 0[r13], ebx
	ja	.L8
.L9:
	xor	r12d, r12d
.L6:
	mov	rdi, rbp
	call	IS_ERR_OR_NULL@PLT
	test	eax, eax
	je	.L27
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rsp]
	or	edx, ecx
	mov	DWORD PTR 4[rsp], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rdi, rbp
	neg	r12d
	call	IS_ERR_OR_NULL@PLT
	test	eax, eax
	jne	.L1
.L27:
	mov	rdi, rbp
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 8[rsp]
	mov	rsi, rbp
	call	set_xen_guest_handle@PLT
	mov	eax, DWORD PTR XEN_PX_PSS[rip]
	or	DWORD PTR 4[rsp], eax
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	push_pxx_to_hypervisor, .-push_pxx_to_hypervisor
	.comm	no_hypercall,4,4
	.comm	XEN_PX_PSS,4,4
	.comm	XEN_PX_PSD,4,4
	.comm	XEN_PX_PPC,4,4
	.comm	XEN_PX_PCT,4,4
	.comm	XEN_PM_PX,4,4
	.comm	XENPF_set_processor_pminfo,4,4
	.comm	XENPF_INTERFACE_VERSION,4,4
	.comm	ENOSYS,4,4
	.comm	ENODEV,4,4
	.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_xen-acpi-processor.c_push_pxx_to_hypervisor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ACPI CPU%u missing some P-state data (%x), skipping"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"ACPI CPU%u - P-states uploaded.\012\000"
	.align	2
.LC2:
	.ascii	"     %cP%d: %d MHz, %d mW, %d uS\012\000"
	.align	2
.LC3:
	.ascii	"(_PXX): Hypervisor error (%d) for ACPI CPU%u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_pxx_to_hypervisor, %function
push_pxx_to_hypervisor:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r3, #0
	ldr	r2, [r4]
	ldr	r6, .L29
	sub	sp, sp, #48
	ldr	r1, .L29+4
	ldr	r6, [r6]
	str	r6, [sp, #44]
	mov	r6,#0
	ldr	lr, .L29+8
	str	r2, [sp, #8]
	ldr	ip, .L29+12
	ldr	r2, [r4, #8]
	ldr	r5, .L29+16
	ldr	r1, [r1]
	ldr	r0, [r0, #4]
	ldr	lr, [lr]
	ldr	ip, [ip]
	str	r2, [sp, #28]
	ldr	r2, [r5]
	str	r1, [sp, #40]
	add	r0, r0, #16
	add	r1, sp, #24
	str	lr, [sp, #32]
	str	ip, [sp, #36]
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	bl	xen_copy_pct_data
	ldr	r0, [r4, #4]
	ldr	r6, .L29+20
	add	r1, sp, #20
	add	r0, r0, #12
	bl	xen_copy_pct_data
	ldr	r2, [r6]
	ldr	r3, [sp, #12]
	add	r1, sp, #12
	orr	r3, r3, r2
	mov	r0, r4
	str	r3, [sp, #12]
	bl	xen_copy_pss_data
	mov	r7, r0
	bl	IS_ERR_OR_NULL
	cmp	r0, #0
	ldr	r8, .L29+24
	beq	.L22
.L2:
	add	r1, sp, #12
	mov	r0, r4
	bl	xen_copy_psd_data
	ldr	r3, .L29+28
	ldr	ip, [r6]
	ldr	r1, [r3]
	ldr	r3, [r8]
	cmp	r0, #0
	ldr	r0, [r5]
	ldr	r2, [sp, #12]
	orr	r3, r3, ip
	orr	r3, r3, r0
	orreq	r2, r1, r2
	orr	r3, r3, r1
	streq	r2, [sp, #12]
	cmp	r3, r2
	bne	.L26
	ldr	r3, .L29+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	add	r0, sp, #8
	bl	HYPERVISOR_platform_op
	subs	r5, r0, #0
	beq	.L10
	ldr	r3, .L29+36
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L6
	ldr	r3, .L29+40
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L6
	mov	r1, r5
	ldr	r2, [r4]
	ldr	r0, .L29+44
	bl	pr_warn
	b	.L6
.L10:
	ldr	r6, [r4, #4]
	ldrb	r1, [r4]	@ zero_extendqisi2
	ldr	r0, .L29+48
	bl	pr_debug
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L9
	mov	r5, #0
	mov	r4, r5
	ldr	r8, .L29+52
.L8:
	ldmib	r6, {r1, ip}
	ldr	r2, [ip, r5]
	add	ip, ip, r5
	ldr	r3, [ip, #8]
	str	r2, [sp, #4]
	ldr	r2, [ip, #4]
	cmp	r1, r4
	moveq	r1, #42
	movne	r1, #32
	str	r2, [sp]
	mov	r0, r8
	mov	r2, r4
	bl	pr_debug
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #12
	bhi	.L8
.L9:
	mov	r5, #0
.L6:
	mov	r0, r7
	bl	IS_ERR_OR_NULL
	cmp	r0, #0
	beq	.L27
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r1, [r4]
	ldr	r0, .L29+56
	bl	pr_warn
	ldr	r3, .L29+60
	mov	r0, r7
	ldr	r5, [r3]
	bl	IS_ERR_OR_NULL
	cmp	r0, #0
	rsb	r5, r5, #0
	bne	.L1
.L27:
	mov	r0, r7
	bl	kfree
	b	.L1
.L22:
	mov	r1, r7
	ldr	r0, [sp, #16]
	bl	set_xen_guest_handle
	ldr	r3, [sp, #12]
	ldr	r2, [r8]
	orr	r3, r3, r2
	str	r3, [sp, #12]
	b	.L2
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC4
	.word	XENPF_set_processor_pminfo
	.word	XEN_PM_PX
	.word	XENPF_INTERFACE_VERSION
	.word	XEN_PX_PPC
	.word	XEN_PX_PCT
	.word	XEN_PX_PSS
	.word	XEN_PX_PSD
	.word	no_hypercall
	.word	EINVAL
	.word	ENOSYS
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	ENODEV
	.size	push_pxx_to_hypervisor, .-push_pxx_to_hypervisor
	.comm	no_hypercall,4,4
	.comm	XEN_PX_PSS,4,4
	.comm	XEN_PX_PSD,4,4
	.comm	XEN_PX_PPC,4,4
	.comm	XEN_PX_PCT,4,4
	.comm	XEN_PM_PX,4,4
	.comm	XENPF_set_processor_pminfo,4,4
	.comm	XENPF_INTERFACE_VERSION,4,4
	.comm	ENOSYS,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
