	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_read_info_raw       ## -- Begin function st_sensors_read_info_raw
	.p2align	4, 0x90
_st_sensors_read_info_raw:              ## @st_sensors_read_info_raw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_iio_priv
	movq	%rax, %r15
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	_INDIO_BUFFER_TRIGGERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_st_sensors_set_enable
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	8(%r15), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cltd
	idivl	(%r15)
	movl	%eax, %edi
	callq	_msleep
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_st_sensors_read_axis_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movb	(%r12), %cl
	sarl	%cl, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_st_sensors_set_enable
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_BUFFER_TRIGGERED,8,3     ## @INDIO_BUFFER_TRIGGERED
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_read_info_raw       ; -- Begin function st_sensors_read_info_raw
	.p2align	2
_st_sensors_read_info_raw:              ; @st_sensors_read_info_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x23, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _INDIO_BUFFER_TRIGGERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_BUFFER_TRIGGERED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	mov	w1, #1
	bl	_st_sensors_set_enable
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
	ldr	w9, [x23]
	sdiv	w0, w8, w9
	bl	_msleep
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_st_sensors_read_axis_data
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x22]
	asr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_st_sensors_set_enable
LBB0_5:
	mov	x24, x0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_BUFFER_TRIGGERED,8,3     ; @INDIO_BUFFER_TRIGGERED
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
