	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iio_update_buffers
___iio_update_buffers:                  ## @__iio_update_buffers
	.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, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	-48(%rbp), %rcx
	callq	_iio_verify_update
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_iio_buffer_request_update
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
LBB0_3:
	movq	%r14, %rdi
	callq	_iio_disable_buffers
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	movq	%r14, %rdi
	callq	_iio_buffer_deactivate_all
LBB0_11:
	movl	-48(%rbp), %esi
	movq	%r14, %rdi
	callq	_iio_free_scan_mask
	movl	%r12d, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_iio_buffer_deactivate
LBB0_6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_iio_buffer_activate
LBB0_8:
	movq	%r14, %rdi
	callq	_list_empty
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iio_enable_buffers
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___iio_update_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iio_update_buffers
___iio_update_buffers:                  ; @__iio_update_buffers
	.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, x2
	mov	x20, x1
	mov	x19, x0
	add	x3, sp, #8
	bl	_iio_verify_update
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_iio_buffer_request_update
	mov	x22, x0
	cbnz	w0, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_iio_disable_buffers
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_iio_buffer_deactivate_all
LBB0_5:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_iio_free_scan_mask
LBB0_6:
	mov	x0, x22
	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
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_iio_buffer_deactivate
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_iio_buffer_activate
LBB0_11:
	mov	x0, x19
	bl	_list_empty
	cbz	x0, LBB0_13
; %bb.12:
	mov	w22, #0
	b	LBB0_6
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_iio_enable_buffers
	mov	x22, x0
	cbnz	w0, LBB0_4
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___iio_update_buffers
.subsections_via_symbols
