	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_read_lpc       ## -- Begin function cros_ec_sensors_read_lpc
	.p2align	4, 0x90
_cros_ec_sensors_read_lpc:              ## @cros_ec_sensors_read_lpc
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_iio_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movl	$6, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r15d
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_cros_ec_sensors_read_until_not_busy
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_cros_ec_sensors_read_data_unsafe
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EC_MEMMAP_ACC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	callq	_cros_ec_sensors_cmd_read_u8
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EC_MEMMAP_ACC_STATUS_BUSY_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	andl	%r14d, %r13d
	andl	-44(%rbp), %eax
	cmpl	%r13d, %eax
	jne	LBB0_1
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_MEMMAP_ACC_STATUS_BUSY_BIT,4,2 ## @EC_MEMMAP_ACC_STATUS_BUSY_BIT
	.comm	_EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK,4,2 ## @EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EC_MEMMAP_ACC_STATUS,4,2       ## @EC_MEMMAP_ACC_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_read_lpc       ; -- Begin function cros_ec_sensors_read_lpc
	.p2align	2
_cros_ec_sensors_read_lpc:              ; @cros_ec_sensors_read_lpc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_iio_priv
	mov	x22, x0
	ldr	x23, [x0]
	str	wzr, [sp, #12]
	mov	w25, #6
Lloh0:
	adrp	x26, _EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x27, _EC_MEMMAP_ACC_STATUS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EC_MEMMAP_ACC_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_cros_ec_sensors_read_until_not_busy
	mov	x24, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w28, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_cros_ec_sensors_read_data_unsafe
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x23
	bl	_cros_ec_sensors_cmd_read_u8
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w8, w28, w24
	ldr	w9, [sp, #12]
Lloh4:
	adrp	x10, _EC_MEMMAP_ACC_STATUS_BUSY_BIT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _EC_MEMMAP_ACC_STATUS_BUSY_BIT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	ldr	w11, [x26]
	orr	w10, w11, w10
	and	w9, w10, w9
	cmp	w9, w8
	b.ne	LBB0_1
; %bb.6:
	mov	w24, #0
	b	LBB0_9
LBB0_7:
	mov	x24, x0
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_MEMMAP_ACC_STATUS_BUSY_BIT,4,2 ; @EC_MEMMAP_ACC_STATUS_BUSY_BIT
	.comm	_EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK,4,2 ; @EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EC_MEMMAP_ACC_STATUS,4,2       ; @EC_MEMMAP_ACC_STATUS
.subsections_via_symbols
