	.file	"extr_ibmpowernv.c_get_sensor_hwmon_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_sensor_hwmon_index, @function
get_sensor_hwmon_index:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR INVALID_INDEX[rip]
	mov	rcx, QWORD PTR 8[rdi]
	je	.L2
	test	edx, edx
	jle	.L2
	sub	edx, 1
	lea	rdx, [rdx+rdx*2]
	lea	rdx, 24[rsi+rdx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rsi, 24
	cmp	rsi, rdx
	je	.L2
.L5:
	cmp	rax, QWORD PTR [rsi]
	jne	.L3
	cmp	QWORD PTR 8[rsi], rcx
	jne	.L3
	mov	eax, DWORD PTR 16[rsi]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR sensor_groups[rip]
	lea	rdx, [rax+rcx*4]
	mov	eax, DWORD PTR [rdx]
	add	eax, 1
	mov	DWORD PTR [rdx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	get_sensor_hwmon_index, .-get_sensor_hwmon_index
	.comm	sensor_groups,8,8
	.comm	INVALID_INDEX,8,8
	.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_ibmpowernv.c_get_sensor_hwmon_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_sensor_hwmon_index, %function
get_sensor_hwmon_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	ip, [r0]
	ldr	r3, [r3]
	str	lr, [sp, #-4]!
	cmp	ip, r3
	ldr	lr, [r0, #4]
	beq	.L2
	cmp	r2, #0
	ble	.L2
	mov	r3, #0
	b	.L5
.L3:
	cmp	r2, r3
	add	r1, r1, #12
	beq	.L2
.L5:
	ldr	r0, [r1]
	add	r3, r3, #1
	cmp	ip, r0
	bne	.L3
	ldr	r0, [r1, #4]
	cmp	r0, lr
	bne	.L3
	ldr	r0, [r1, #8]
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r0, [r3, lr, lsl #2]
	add	r0, r0, #1
	str	r0, [r3, lr, lsl #2]
	ldr	pc, [sp], #4
.L10:
	.align	2
.L9:
	.word	INVALID_INDEX
	.word	sensor_groups
	.size	get_sensor_hwmon_index, .-get_sensor_hwmon_index
	.comm	sensor_groups,4,4
	.comm	INVALID_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
