	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_baro_read
_cros_ec_baro_read:                     ## @cros_ec_baro_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r12
	movl	$0, -44(%rbp)
	movl	(%r14), %r15d
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_6
## %bb.2:
	movl	$1, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_cros_ec_sensors_read_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_MOTIONSENSE_CMD_SENSOR_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_EC_MOTION_SENSE_NO_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cros_ec_motion_send_host_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_CROS_EC_SENSOR_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$10, %eax
	shll	%cl, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_cros_ec_sensors_core_read
	movl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MOTIONSENSE_CMD_SENSOR_RANGE,4,2 ## @MOTIONSENSE_CMD_SENSOR_RANGE
	.comm	_EC_MOTION_SENSE_NO_VALUE,4,2   ## @EC_MOTION_SENSE_NO_VALUE
	.comm	_CROS_EC_SENSOR_BITS,4,2        ## @CROS_EC_SENSOR_BITS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.no_dead_strip	_cros_ec_baro_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_baro_read
_cros_ec_baro_read:                     ; @cros_ec_baro_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	bl	_iio_priv
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	w25, [x24]
	bl	_mutex_lock
	cmp	x22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_6
; %bb.2:
	mov	w8, #1
	lsl	w1, w8, w25
	add	x2, sp, #12
	mov	x0, x23
	bl	_cros_ec_sensors_read_cmd
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x20]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _MOTIONSENSE_CMD_SENSOR_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOTIONSENSE_CMD_SENSOR_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EC_MOTION_SENSE_NO_VALUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EC_MOTION_SENSE_NO_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_cros_ec_motion_send_host_cmd
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20]
Lloh9:
	adrp	x8, _CROS_EC_SENSOR_BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CROS_EC_SENSOR_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #10
	lsl	w8, w9, w8
	str	w8, [x21]
Lloh12:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_cros_ec_sensors_core_read
	mov	x22, x0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MOTIONSENSE_CMD_SENSOR_RANGE,4,2 ; @MOTIONSENSE_CMD_SENSOR_RANGE
	.comm	_EC_MOTION_SENSE_NO_VALUE,4,2   ; @EC_MOTION_SENSE_NO_VALUE
	.comm	_CROS_EC_SENSOR_BITS,4,2        ; @CROS_EC_SENSOR_BITS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.no_dead_strip	_cros_ec_baro_read
.subsections_via_symbols
