	.file	"extr_intel_soc_dts_iosf.c_update_trip_temp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"update_trip_temp PTPS = %x\n"
	.text
	.p2align 4
	.type	update_trip_temp, @function
update_trip_temp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR SOC_DTS_TE_APICA_ENABLE[rip]
	mov	rsi, QWORD PTR INTEL_SOC_DTS_INTERRUPT_MSI[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR [rax], rsi
	jne	.L2
	or	r14d, DWORD PTR SOC_DTS_TE_MSI_ENABLE[rip]
.L2:
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTPS[rip]
	mov	esi, DWORD PTR MBI_REG_READ[rip]
	lea	rcx, 32[rsp]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	mov	r15d, DWORD PTR 8[rax]
	call	iosf_mbi_read@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L16
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	sub	r15d, r12d
	lea	ecx, 0[0+rbp*8]
	mov	edx, 255
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	movsx	rax, r15d
	sar	r15d, 31
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	imul	rax, rax, 274877907
	sal	edx, cl
	not	edx
	and	edx, DWORD PTR 32[rsp]
	sar	rax, 38
	sub	eax, r15d
	movzx	eax, al
	sal	eax, cl
	or	edx, eax
	mov	DWORD PTR 28[rsp], edx
	mov	ecx, edx
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTPS[rip]
	call	iosf_mbi_write@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR 28[rsp]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	esi, DWORD PTR MBI_REG_READ[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	lea	rcx, 28[rsp]
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTMC[rip]
	call	iosf_mbi_read@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L18
.L4:
	mov	ecx, DWORD PTR 32[rsp]
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTPS[rip]
	mov	DWORD PTR 4[rsp], r8d
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	call	iosf_mbi_write@PLT
	mov	r8d, DWORD PTR 4[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR SOC_DTS_TE_AUX0[rip]
	mov	eax, DWORD PTR 28[rsp]
	movsx	r15, ebp
	lea	rcx, 36[rsp]
	mov	esi, DWORD PTR MBI_REG_READ[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	add	rdx, r15
	mov	DWORD PTR 4[rsp], eax
	call	iosf_mbi_read@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR 36[rsp]
	mov	ecx, DWORD PTR SOC_DTS_CPU_MODULE0_ENABLE_BIT[rip]
	or	ecx, DWORD PTR SOC_DTS_CPU_MODULE1_ENABLE_BIT[rip]
	or	ecx, DWORD PTR 28[rsp]
	mov	DWORD PTR 8[rsp], eax
	test	r12d, r12d
	jne	.L19
	test	ebp, ebp
	je	.L10
	mov	eax, DWORD PTR SOC_DTS_AUX1_ENABLE_BIT[rip]
	not	eax
	and	ecx, eax
.L11:
	not	r14d
	and	r14d, DWORD PTR 8[rsp]
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR 36[rsp], r14d
.L9:
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTMC[rip]
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	call	iosf_mbi_write@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L12
	mov	rdx, QWORD PTR SOC_DTS_TE_AUX0[rip]
	mov	ecx, DWORD PTR 36[rsp]
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	add	rdx, r15
	call	iosf_mbi_write@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR [rax+r15*4], r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTMC[rip]
	mov	DWORD PTR 12[rsp], r8d
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	call	iosf_mbi_write@PLT
	mov	r8d, DWORD PTR 12[rsp]
.L5:
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, QWORD PTR SOC_DTS_OFFSET_PTMC[rip]
	mov	DWORD PTR 8[rsp], r8d
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edi, DWORD PTR BT_MBI_UNIT_PMC[rip]
	call	iosf_mbi_write@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	test	ebp, ebp
	je	.L7
	or	ecx, DWORD PTR SOC_DTS_AUX1_ENABLE_BIT[rip]
.L8:
	or	r14d, DWORD PTR 8[rsp]
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR 36[rsp], r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR SOC_DTS_AUX0_ENABLE_BIT[rip]
	not	eax
	and	ecx, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	or	ecx, DWORD PTR SOC_DTS_AUX0_ENABLE_BIT[rip]
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	update_trip_temp, .-update_trip_temp
	.comm	SOC_DTS_TE_MSI_ENABLE,4,4
	.comm	SOC_DTS_TE_AUX0,8,8
	.comm	SOC_DTS_TE_APICA_ENABLE,4,4
	.comm	SOC_DTS_OFFSET_PTPS,8,8
	.comm	SOC_DTS_OFFSET_PTMC,8,8
	.comm	SOC_DTS_CPU_MODULE1_ENABLE_BIT,4,4
	.comm	SOC_DTS_CPU_MODULE0_ENABLE_BIT,4,4
	.comm	SOC_DTS_AUX1_ENABLE_BIT,4,4
	.comm	SOC_DTS_AUX0_ENABLE_BIT,4,4
	.comm	MBI_REG_WRITE,4,4
	.comm	MBI_REG_READ,4,4
	.comm	INTEL_SOC_DTS_INTERRUPT_MSI,8,8
	.comm	BT_MBI_UNIT_PMC,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_intel_soc_dts_iosf.c_update_trip_temp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"update_trip_temp PTPS = %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_trip_temp, %function
update_trip_temp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	str	r3, [sp, #4]
	ldr	r3, .L20
	str	r1, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	ip, [r0, #4]
	mov	r6, r0
	ldr	r0, .L20+4
	ldr	r4, [ip]
	ldr	lr, [r0]
	ldr	r0, .L20+8
	cmp	r4, lr
	ldreq	r3, .L20+12
	ldr	fp, [r0]
	ldreq	r3, [r3]
	ldr	r9, .L20+16
	ldr	r10, .L20+20
	ldr	r8, .L20+24
	orreq	fp, fp, r3
	mov	r7, r2
	ldr	r1, [r10]
	ldr	r2, [r9]
	ldr	r0, [r8]
	add	r3, sp, #12
	ldr	r5, [ip, #4]
	bl	iosf_mbi_read
	subs	r4, r0, #0
	beq	.L16
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r2, .L20+28
	sub	r5, r5, r7
	smull	r3, r2, r5, r2
	ldr	r3, [sp]
	mov	r0, #255
	lsl	r3, r3, #3
	mov	ip, r3
	asr	r5, r5, #31
	ldr	r1, [sp, #12]
	rsb	r5, r5, r2, asr #6
	and	r2, r5, r0
	ldr	r5, .L20+32
	bic	r3, r1, r0, lsl r3
	orr	r3, r3, r2, lsl ip
	ldr	r1, [r5]
	ldr	r2, [r9]
	ldr	r0, [r8]
	str	r3, [sp, #8]
	bl	iosf_mbi_write
	subs	r4, r0, #0
	bne	.L1
	ldr	r1, [sp, #8]
	ldr	r0, .L20+36
	bl	pr_debug
	ldr	r2, .L20+40
	ldr	r1, [r10]
	ldr	r2, [r2]
	ldr	r0, [r8]
	add	r3, sp, #8
	bl	iosf_mbi_read
	subs	r4, r0, #0
	beq	.L18
.L4:
	ldr	r2, [r9]
	ldr	r1, [r5]
	ldr	r0, [r8]
	ldr	r3, [sp, #12]
	bl	iosf_mbi_write
	b	.L1
.L18:
	ldr	r2, .L20+44
	ldr	r0, [sp]
	ldr	r2, [r2]
	ldr	r1, [r10]
	add	r2, r0, r2
	add	r3, sp, #16
	ldr	r0, [r8]
	ldr	r10, [sp, #8]
	bl	iosf_mbi_read
	subs	r4, r0, #0
	bne	.L5
	ldr	r2, .L20+48
	ldr	r3, .L20+52
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #8]
	cmp	r7, #0
	orr	r3, r3, r1
	ldr	r7, [sp, #16]
	orr	r3, r3, r2
	bne	.L19
	ldr	r2, [sp]
	bic	fp, r7, fp
	cmp	r2, #0
	ldrne	r2, .L20+56
	ldreq	r2, .L20+60
	ldr	r2, [r2]
	str	fp, [sp, #16]
	bic	r3, r3, r2
	str	r3, [sp, #8]
.L9:
	ldr	r2, .L20+40
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	iosf_mbi_write
	subs	r4, r0, #0
	bne	.L12
	ldr	r3, .L20+44
	ldr	fp, [sp]
	ldr	r2, [r3]
	ldr	r1, [r5]
	ldr	r3, [sp, #16]
	ldr	r0, [r8]
	add	r2, fp, r2
	bl	iosf_mbi_write
	subs	r4, r0, #0
	ldreq	r3, [r6]
	ldreq	r2, [sp, #4]
	streq	r2, [r3, fp, lsl #2]
	beq	.L1
.L12:
	ldr	r2, .L20+40
	mov	r3, r7
	ldr	r2, [r2]
	ldr	r1, [r5]
	ldr	r0, [r8]
	bl	iosf_mbi_write
.L5:
	ldr	r2, .L20+40
	mov	r3, r10
	ldr	r2, [r2]
	ldr	r1, [r5]
	ldr	r0, [r8]
	bl	iosf_mbi_write
	b	.L4
.L19:
	ldr	r0, [sp]
	orr	fp, fp, r7
	cmp	r0, #0
	ldrne	r2, .L20+56
	ldreq	r2, .L20+60
	ldr	r2, [r2]
	str	fp, [sp, #16]
	orr	r3, r3, r2
	str	r3, [sp, #8]
	b	.L9
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	INTEL_SOC_DTS_INTERRUPT_MSI
	.word	SOC_DTS_TE_APICA_ENABLE
	.word	SOC_DTS_TE_MSI_ENABLE
	.word	SOC_DTS_OFFSET_PTPS
	.word	MBI_REG_READ
	.word	BT_MBI_UNIT_PMC
	.word	274877907
	.word	MBI_REG_WRITE
	.word	.LC0
	.word	SOC_DTS_OFFSET_PTMC
	.word	SOC_DTS_TE_AUX0
	.word	SOC_DTS_CPU_MODULE1_ENABLE_BIT
	.word	SOC_DTS_CPU_MODULE0_ENABLE_BIT
	.word	SOC_DTS_AUX1_ENABLE_BIT
	.word	SOC_DTS_AUX0_ENABLE_BIT
	.size	update_trip_temp, .-update_trip_temp
	.comm	SOC_DTS_TE_MSI_ENABLE,4,4
	.comm	SOC_DTS_TE_AUX0,4,4
	.comm	SOC_DTS_TE_APICA_ENABLE,4,4
	.comm	SOC_DTS_OFFSET_PTPS,4,4
	.comm	SOC_DTS_OFFSET_PTMC,4,4
	.comm	SOC_DTS_CPU_MODULE1_ENABLE_BIT,4,4
	.comm	SOC_DTS_CPU_MODULE0_ENABLE_BIT,4,4
	.comm	SOC_DTS_AUX1_ENABLE_BIT,4,4
	.comm	SOC_DTS_AUX0_ENABLE_BIT,4,4
	.comm	MBI_REG_WRITE,4,4
	.comm	MBI_REG_READ,4,4
	.comm	INTEL_SOC_DTS_INTERRUPT_MSI,4,4
	.comm	BT_MBI_UNIT_PMC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
