	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_capture        ## -- Begin function cros_ec_sensors_capture
	.p2align	4, 0x90
_cros_ec_sensors_capture:               ## @cros_ec_sensors_capture
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rdi
	movl	16(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	16(%rbx), %rbx
	movq	%r15, %rdi
	callq	_iio_get_time_ns
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
LBB0_2:
	movl	(%r15), %edi
	callq	_iio_trigger_notify_done
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cros_ec_sensors_capture        ; -- Begin function cros_ec_sensors_capture
	.p2align	2
_cros_ec_sensors_capture:               ; @cros_ec_sensors_capture
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_iio_priv
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x21, #16]
	ldr	w2, [x19, #16]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	ldr	w1, [x9]
	ldr	x2, [x21, #16]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x21, [x21, #16]
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_iio_push_to_buffers_with_timestamp
LBB0_2:
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
