	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iio_buffer_store_enable
_iio_buffer_store_enable:               ## @iio_buffer_store_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_to_iio_dev
	movq	%rax, %r15
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rdi
	callq	_iio_buffer_is_active
	movl	-28(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rdx
	movq	%r15, %rdi
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movq	%rdx, %rsi
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
LBB0_5:
	callq	___iio_update_buffers
	movl	%eax, %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovsl	%ebx, %r14d
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_iio_buffer_store_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iio_buffer_store_enable
_iio_buffer_store_enable:               ; @iio_buffer_store_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	x19, x3
	mov	x21, x2
	bl	_dev_to_iio_dev
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_strtobool
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x0, [x20, #8]
	bl	_iio_buffer_is_active
	ldr	w8, [sp, #12]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	x2, [x20, #8]
	mov	x0, x20
	cbz	w8, LBB0_4
; %bb.3:
	mov	x1, x2
	mov	x2, #0
	b	LBB0_5
LBB0_4:
	mov	x1, #0
LBB0_5:
	bl	___iio_update_buffers
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w21, #0
	csel	w21, w21, w19, lt
LBB0_7:
	mov	x0, x21
	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
	.no_dead_strip	_iio_buffer_store_enable
.subsections_via_symbols
