	.file	"extr_coretemp.c_get_tjmax.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to read TjMax from CPU.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"TjMax is %d C.\n"
.LC2:
	.string	"TjMax is assumed as 100 C!\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"CPU (model=0x%x) is not supported yet, using default TjMax of 100C.\n"
	.text
	.p2align 4
	.type	get_tjmax, @function
get_tjmax:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	edi, r12d
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR MSR_IA32_TEMPERATURE_TARGET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	mov	rdx, rsp
	call	rdmsr_safe_on_cpu@PLT
	test	eax, eax
	jne	.L12
	movzx	ebx, BYTE PTR 2[rsp]
	lea	eax, -81[rbx]
	cmp	eax, 38
	jbe	.L13
.L3:
	mov	edx, DWORD PTR 0[r13]
	lea	eax, -14[rdx]
	cmp	eax, 14
	ja	.L5
	lea	rcx, .L7[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L8-.L7
	.long	.L8-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.long	.L5-.L7
	.long	.L5-.L7
	.long	.L8-.L7
	.long	.L5-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, 100000
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, 100000
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, rbp
	mov	esi, r12d
	mov	rdi, r13
	call	adjust_tjmax@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, ebx
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_info@PLT
	imul	eax, ebx, 1000
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_tjmax, .-get_tjmax
	.comm	MSR_IA32_TEMPERATURE_TARGET,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_coretemp.c_get_tjmax.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to read TjMax from CPU.\012\000"
	.align	2
.LC1:
	.ascii	"TjMax is %d C.\012\000"
	.align	2
.LC2:
	.ascii	"TjMax is assumed as 100 C!\012\000"
	.align	2
.LC3:
	.ascii	"CPU (model=0x%x) is not supported yet, using defaul"
	.ascii	"t TjMax of 100C.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_tjmax, %function
get_tjmax:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L15
	sub	sp, sp, #20
	ldr	ip, .L15+4
	mov	r6, r1
	mov	r7, r0
	mov	r5, r2
	mov	r0, r1
	add	r2, sp, #4
	ldr	r1, [r3]
	add	r3, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	rdmsr_safe_on_cpu
	cmp	r0, #0
	bne	.L12
	ldrb	r4, [sp, #6]	@ zero_extendqisi2
	sub	r3, r4, #81
	cmp	r3, #38
	bls	.L13
.L3:
	ldr	r2, [r7]
	sub	r3, r2, #14
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L8
	.word	.L8
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L6
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L5
	.word	.L6
.L5:
	mov	r0, r5
	ldr	r1, .L15+8
	bl	dev_warn
	ldr	r0, .L15+12
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r0, r5
	ldr	r1, .L15+16
	bl	dev_warn
	ldr	r0, .L15+12
	b	.L1
.L6:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	bl	adjust_tjmax
	b	.L1
.L12:
	mov	r0, r5
	ldr	r1, .L15+20
	bl	dev_warn
	b	.L3
.L13:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L15+24
	bl	dev_info
	rsb	r0, r4, r4, lsl #5
	add	r0, r4, r0, lsl #2
	lsl	r0, r0, #3
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	MSR_IA32_TEMPERATURE_TARGET
	.word	.LC4
	.word	.LC3
	.word	100000
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	get_tjmax, .-get_tjmax
	.comm	MSR_IA32_TEMPERATURE_TARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
