	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_set_dataready_irq   ## -- Begin function st_sensors_set_dataready_irq
	.p2align	4, 0x90
_st_sensors_set_dataready_irq:          ## @st_sensors_set_dataready_irq
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	8(%rax), %rcx
	cmpq	$0, 16(%rcx)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_2
LBB0_4:
	movq	32(%rcx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.5:
	movq	40(%rcx), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	cmpl	$1, 4(%rbx)
	sete	%al
	movq	8(%rbx), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rsi
	movq	8(%rcx,%rax), %rdx
	movl	%r14d, (%rbx)
	movq	%r15, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_st_sensors_write_data_with_mask ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	cmpq	$0, 48(%rcx)
	je	LBB0_6
## %bb.3:
	movl	%r14d, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_set_dataready_irq   ; -- Begin function st_sensors_set_dataready_irq
	.p2align	2
_st_sensors_set_dataready_irq:          ; @st_sensors_set_dataready_irq
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x8]
	cbz	x9, LBB0_5
LBB0_2:
	ldr	x1, [x8, #32]
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x2, [x8, #40]
	mov	x0, x20
	mov	x3, x19
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_8
LBB0_4:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	cset	w8, eq
	ldr	x9, [x21, #8]
	lsl	x8, x8, #4
	mov	w10, #8
	mov	w11, #24
	csel	x10, x11, x10, eq
	ldr	x2, [x9, x10]
	ldr	x1, [x9, x8]
	str	w19, [x21]
	mov	x0, x20
	mov	x3, x19
	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
	b	_st_sensors_write_data_with_mask
LBB0_5:
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w0, #0
	str	w19, [x21]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
