	.file	"extr_windfarm_pm112.c_pm112_new_sensor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cpu-temp-"
.LC1:
	.string	"cpu-power-"
.LC2:
	.string	"hd-temp"
.LC3:
	.string	"slots-power"
.LC4:
	.string	"backside-temp"
	.text
	.p2align 4
	.type	pm112_new_sensor, @function
pm112_new_sensor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, 9
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	call	strncmp@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR [rbx]
	mov	ecx, DWORD PTR 40[rax]
	test	ecx, ecx
	je	.L20
.L4:
	mov	eax, DWORD PTR nr_cores[rip]
	test	eax, eax
	je	.L11
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR sens_cpu_temp[rip]
	mov	rsi, QWORD PTR sens_cpu_power[rip]
	xor	eax, eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR [rsi+rax*8], 0
	je	.L1
	lea	rdx, 1[rax]
	cmp	rax, rdi
	je	.L11
	mov	rax, rdx
.L13:
	cmp	QWORD PTR [rcx+rax*8], 0
	jne	.L21
.L1:
	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
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR 36[rax]
	sub	eax, 48
	cmp	DWORD PTR NR_CORES[rip], eax
	jbe	.L4
	mov	ebp, eax
	mov	rax, QWORD PTR sens_cpu_temp[rip]
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L4
	mov	rdi, rbx
	call	wf_get_sensor@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR sens_cpu_temp[rip]
	mov	QWORD PTR [rax+rbp*8], rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR have_all_sensors[rip], 1
	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	rdi, QWORD PTR [rbx]
	mov	edx, 10
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 44[rax]
	test	edx, edx
	jne	.L4
	mov	eax, DWORD PTR 40[rax]
	sub	eax, 48
	cmp	DWORD PTR NR_CORES[rip], eax
	jbe	.L4
	mov	ebp, eax
	mov	rax, QWORD PTR sens_cpu_power[rip]
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L4
	mov	rdi, rbx
	call	wf_get_sensor@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR sens_cpu_power[rip]
	mov	QWORD PTR [rax+rbp*8], rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, 8
	lea	rdi, .LC2[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L7
	cmp	QWORD PTR hd_temp[rip], 0
	jne	.L4
	mov	rdi, rbx
	call	wf_get_sensor@PLT
	test	rax, rax
	jne	.L4
	mov	QWORD PTR hd_temp[rip], rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 12
	lea	rdi, .LC3[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	je	.L22
	mov	ecx, 14
	lea	rdi, .LC4[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L1
	cmp	QWORD PTR u4_temp[rip], 0
	jne	.L4
	mov	rdi, rbx
	call	wf_get_sensor@PLT
	test	rax, rax
	jne	.L4
	mov	QWORD PTR u4_temp[rip], rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	QWORD PTR slots_power[rip], 0
	jne	.L4
	mov	rdi, rbx
	call	wf_get_sensor@PLT
	test	rax, rax
	jne	.L4
	mov	QWORD PTR slots_power[rip], rbx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pm112_new_sensor, .-pm112_new_sensor
	.comm	u4_temp,8,8
	.comm	slots_power,8,8
	.comm	sens_cpu_temp,8,8
	.comm	sens_cpu_power,8,8
	.comm	nr_cores,4,4
	.comm	hd_temp,8,8
	.comm	have_all_sensors,4,4
	.comm	NR_CORES,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_windfarm_pm112.c_pm112_new_sensor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cpu-temp-\000"
	.align	2
.LC1:
	.ascii	"cpu-power-\000"
	.align	2
.LC2:
	.ascii	"hd-temp\000"
	.align	2
.LC3:
	.ascii	"slots-power\000"
	.align	2
.LC4:
	.ascii	"backside-temp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm112_new_sensor, %function
pm112_new_sensor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r0
	mov	r2, #9
	mov	r0, r5
	ldr	r1, .L35
	bl	strncmp
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r5, #40]
	cmp	r3, #0
	beq	.L33
.L4:
	ldr	r3, .L35+4
	ldr	ip, [r3]
	cmp	ip, #0
	beq	.L11
	mov	r3, #0
	ldr	r2, .L35+8
	ldr	r1, .L35+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	sub	r2, r2, #4
	sub	r1, r1, #4
.L13:
	ldr	r0, [r2, #4]!
	add	r3, r3, #1
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r1, #4]!
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	cmp	r3, ip
	bne	.L13
.L11:
	mov	r2, #1
	ldr	r3, .L35+16
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, #10
	mov	r0, r5
	ldr	r1, .L35+20
	bl	strncmp
	cmp	r0, #0
	bne	.L6
	ldr	r3, [r5, #44]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L35+24
	ldr	r5, [r5, #40]
	ldr	r3, [r3]
	sub	r5, r5, #48
	cmp	r3, r5
	bls	.L4
	ldr	r6, .L35+12
	ldr	r3, [r6]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, #0
	bne	.L4
.L28:
	mov	r0, r4
	bl	wf_get_sensor
	cmp	r0, #0
	ldreq	r3, [r6]
	streq	r4, [r3, r5, lsl #2]
	b	.L4
.L33:
	ldr	r3, .L35+24
	ldr	r5, [r5, #36]
	ldr	r3, [r3]
	sub	r5, r5, #48
	cmp	r3, r5
	bls	.L4
	ldr	r6, .L35+8
	ldr	r3, [r6]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, #0
	bne	.L4
	b	.L28
.L6:
	mov	r0, r5
	ldr	r1, .L35+28
	bl	strcmp
	cmp	r0, #0
	beq	.L34
	mov	r0, r5
	ldr	r1, .L35+32
	bl	strcmp
	cmp	r0, #0
	bne	.L8
	ldr	r5, .L35+36
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L4
	b	.L30
.L34:
	ldr	r5, .L35+40
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L4
	b	.L30
.L8:
	mov	r0, r5
	ldr	r1, .L35+44
	bl	strcmp
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r5, .L35+48
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L4
.L30:
	mov	r0, r4
	bl	wf_get_sensor
	cmp	r0, #0
	streq	r4, [r5]
	b	.L4
.L36:
	.align	2
.L35:
	.word	.LC0
	.word	nr_cores
	.word	sens_cpu_temp
	.word	sens_cpu_power
	.word	have_all_sensors
	.word	.LC1
	.word	NR_CORES
	.word	.LC2
	.word	.LC3
	.word	slots_power
	.word	hd_temp
	.word	.LC4
	.word	u4_temp
	.size	pm112_new_sensor, .-pm112_new_sensor
	.comm	u4_temp,4,4
	.comm	slots_power,4,4
	.comm	sens_cpu_temp,4,4
	.comm	sens_cpu_power,4,4
	.comm	nr_cores,4,4
	.comm	hd_temp,4,4
	.comm	have_all_sensors,4,4
	.comm	NR_CORES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
