	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_sensors_idx_to_reg
_cros_ec_sensors_idx_to_reg:            ## @cros_ec_sensors_idx_to_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rax
	movq	_MOTIONSENSE_TYPE_ACCEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EC_MEMMAP_ACC_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CROS_EC_SENSOR_MAX_AXIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	8(%rdi), %ecx
	addl	%ecx, %esi
	leal	4(,%rsi,4), %ecx
	jmp	LBB0_3
LBB0_2:
	movq	_EC_MEMMAP_GYRO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$2, %esi
	movl	%esi, %eax
LBB0_3:
	addl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOTIONSENSE_TYPE_ACCEL,8,3     ## @MOTIONSENSE_TYPE_ACCEL
	.comm	_EC_MEMMAP_ACC_DATA,4,2         ## @EC_MEMMAP_ACC_DATA
	.comm	_CROS_EC_SENSOR_MAX_AXIS,4,2    ## @CROS_EC_SENSOR_MAX_AXIS
	.comm	_EC_MEMMAP_GYRO_DATA,4,2        ## @EC_MEMMAP_GYRO_DATA
	.no_dead_strip	_cros_ec_sensors_idx_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_sensors_idx_to_reg
_cros_ec_sensors_idx_to_reg:            ; @cros_ec_sensors_idx_to_reg
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MOTIONSENSE_TYPE_ACCEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MOTIONSENSE_TYPE_ACCEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EC_MEMMAP_ACC_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_MEMMAP_ACC_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
Lloh6:
	adrp	x10, _CROS_EC_SENSOR_MAX_AXIS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CROS_EC_SENSOR_MAX_AXIS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	madd	w9, w10, w9, w1
	lsl	w9, w9, #2
	add	w9, w9, #4
	add	w0, w9, w8
	ret
LBB0_2:
Lloh9:
	adrp	x8, _EC_MEMMAP_GYRO_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_MEMMAP_GYRO_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	lsl	w8, w1, #2
	add	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MOTIONSENSE_TYPE_ACCEL,8,3     ; @MOTIONSENSE_TYPE_ACCEL
	.comm	_EC_MEMMAP_ACC_DATA,4,2         ; @EC_MEMMAP_ACC_DATA
	.comm	_CROS_EC_SENSOR_MAX_AXIS,4,2    ; @CROS_EC_SENSOR_MAX_AXIS
	.comm	_EC_MEMMAP_GYRO_DATA,4,2        ; @EC_MEMMAP_GYRO_DATA
	.no_dead_strip	_cros_ec_sensors_idx_to_reg
.subsections_via_symbols
