	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_core_read      ## -- Begin function cros_ec_sensors_core_read
	.p2align	4, 0x90
_cros_ec_sensors_core_read:             ## @cros_ec_sensors_core_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	cmpq	$129, %r8
	je	LBB0_5
## %bb.1:
	cmpq	$128, %r8
	jne	LBB0_7
## %bb.2:
	movq	_MOTIONSENSE_CMD_EC_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_EC_MOTION_SENSE_NO_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cros_ec_motion_send_host_cmd
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	movl	4(%rax), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_MOTIONSENSE_CMD_SENSOR_ODR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_EC_MOTION_SENSE_NO_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cros_ec_motion_send_host_cmd
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOTIONSENSE_CMD_EC_RATE,4,2    ## @MOTIONSENSE_CMD_EC_RATE
	.comm	_EC_MOTION_SENSE_NO_VALUE,8,3   ## @EC_MOTION_SENSE_NO_VALUE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MOTIONSENSE_CMD_SENSOR_ODR,4,2 ## @MOTIONSENSE_CMD_SENSOR_ODR
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_core_read      ; -- Begin function cros_ec_sensors_core_read
	.p2align	2
_cros_ec_sensors_core_read:             ; @cros_ec_sensors_core_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	cmp	x4, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	x4, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _MOTIONSENSE_CMD_EC_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOTIONSENSE_CMD_EC_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh3:
	adrp	x8, _EC_MOTION_SENSE_NO_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_MOTION_SENSE_NO_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	x0, x20
	mov	w1, #0
	bl	_cros_ec_motion_send_host_cmd
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _MOTIONSENSE_CMD_SENSOR_ODR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MOTIONSENSE_CMD_SENSOR_ODR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh9:
	adrp	x8, _EC_MOTION_SENSE_NO_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_MOTION_SENSE_NO_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_cros_ec_motion_send_host_cmd
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x20]
	ldr	w8, [x8]
LBB0_6:
	str	w8, [x19]
Lloh12:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MOTIONSENSE_CMD_EC_RATE,4,2    ; @MOTIONSENSE_CMD_EC_RATE
	.comm	_EC_MOTION_SENSE_NO_VALUE,8,3   ; @EC_MOTION_SENSE_NO_VALUE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MOTIONSENSE_CMD_SENSOR_ODR,4,2 ; @MOTIONSENSE_CMD_SENSOR_ODR
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
