	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sensor_hwmon_index
_get_sensor_hwmon_index:                ## @get_sensor_hwmon_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	_INVALID_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	je	LBB0_7
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movl	%edx, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, (%rsi,%rcx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi,%rcx), %rax
	cmpq	8(%rdi), %rax
	jne	LBB0_6
## %bb.5:
	movl	16(%rsi,%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_sensor_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rdi), %rdx
	movl	(%rcx,%rdx,4), %eax
	incl	%eax
	movl	%eax, (%rcx,%rdx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_INDEX,8,3              ## @INVALID_INDEX
	.comm	_sensor_groups,8,3              ## @sensor_groups
	.no_dead_strip	_get_sensor_hwmon_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sensor_hwmon_index
_get_sensor_hwmon_index:                ; @get_sensor_hwmon_index
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INVALID_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INVALID_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _sensor_groups@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sensor_groups@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w0, w10, #1
	str	w0, [x8, x9]
	ret
LBB0_2:
	mov	w9, w2
	add	x10, x1, #16
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-16]
	cmp	x11, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x11, [x10, #-8]
	ldr	x12, [x0, #8]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.6:
	ldr	w0, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_INDEX,8,3              ; @INVALID_INDEX
	.comm	_sensor_groups,8,3              ; @sensor_groups
	.no_dead_strip	_get_sensor_hwmon_index
.subsections_via_symbols
