	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_set_enable          ## -- Begin function st_sensors_set_enable
	.p2align	4, 0x90
_st_sensors_set_enable:                 ## @st_sensors_set_enable
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r14
	movq	8(%rax), %rdi
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	movl	20(%rdi), %ecx
	movq	24(%rdi), %rax
	movq	(%rdi), %rsi
	movb	$1, %bl
	cmpq	%rsi, %rax
	jne	LBB0_6
## %bb.2:
	movq	32(%rdi), %rdx
	cmpq	8(%rdi), %rdx
	jne	LBB0_3
## %bb.4:
	movl	16(%r14), %esi
	leaq	-48(%rbp), %rdx
	callq	_st_sensors_match_odr
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	-44(%rbp), %ecx
	movq	8(%r14), %rdi
	movq	(%rdi), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_9:
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdx
	movl	16(%rdi), %ecx
	movq	%r15, %rdi
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	$0, (%r14)
	jmp	LBB0_11
LBB0_3:
	movq	%rax, %rsi
LBB0_6:
	movq	8(%rdi), %rdx
	movq	%r15, %rdi
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movl	$1, (%r14)
	testb	%bl, %bl
	jne	LBB0_11
## %bb.8:
	movl	-48(%rbp), %ecx
	movl	%ecx, 16(%r14)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_set_enable          ; -- Begin function st_sensors_set_enable
	.p2align	2
_st_sensors_set_enable:                 ; @st_sensors_set_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	bl	_iio_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	w21, LBB0_5
; %bb.1:
	ldr	w3, [x0, #20]
	ldr	x8, [x0, #24]
	ldr	x1, [x0]
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.2:
	ldr	x9, [x0, #32]
	ldr	x10, [x0, #8]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x19, #16]
	mov	x2, sp
	bl	_st_sensors_match_odr
	tbnz	w0, #31, LBB0_12
; %bb.4:
	mov	w21, #0
	ldr	w3, [sp, #4]
	ldr	x0, [x19, #8]
	ldr	x1, [x0]
	b	LBB0_9
LBB0_5:
	ldp	x1, x2, [x0]
	ldr	w3, [x0, #16]
	mov	x0, x20
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_12
; %bb.6:
	str	wzr, [x19]
	b	LBB0_12
LBB0_7:
	mov	w21, #1
	b	LBB0_9
LBB0_8:
	mov	w21, #1
	mov	x1, x8
LBB0_9:
	ldr	x2, [x0, #8]
	mov	x0, x20
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_12
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
	tbnz	w21, #0, LBB0_12
; %bb.11:
	ldr	w8, [sp]
	str	w8, [x19, #16]
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
