	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina2xx_capture_thread
_ina2xx_capture_thread:                 ## @ina2xx_capture_thread
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_SAMPLING_PERIOD
                                        ## kill: def $eax killed $eax def $rax
	leal	-200(%rax), %ebx
	cmpl	$0, (%r15)
	cmovnel	%eax, %ebx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_ktime_get_ts64
	imull	$1000, %ebx, %ebx               ## imm = 0x3E8
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ina2xx_conversion_ready
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_ktime_get_ts64
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ina2xx_work_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_ktime_get_ts64
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_timespec64_add_ns
	movl	-64(%rbp), %edi
	movl	-56(%rbp), %esi
	callq	_timespec64_sub
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	callq	_timespec64_to_ns
	movl	%eax, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div_s64
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rax,%rax,2), %esi
	sarl	%esi
	movl	%eax, %edi
	callq	_usleep_range
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ina2xx_capture_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina2xx_capture_thread
_ina2xx_capture_thread:                 ; @ina2xx_capture_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	bl	_iio_priv
	mov	x20, x0
	bl	_SAMPLING_PERIOD
	ldr	w8, [x20]
	sub	w9, w0, #200
	cmp	w8, #0
	csel	w21, w9, w0, eq
	add	x0, sp, #24
	bl	_ktime_get_ts64
	mov	w8, #1000
	mul	w21, w21, w8
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ina2xx_conversion_ready
	tbnz	w0, #31, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #24
	bl	_ktime_get_ts64
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ina2xx_work_buffer
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #16
	bl	_ktime_get_ts64
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #24
	mov	x1, x21
	bl	_timespec64_add_ns
	ldr	w0, [sp, #24]
	ldr	w1, [sp, #16]
	bl	_timespec64_sub
	str	w0, [sp, #8]
	add	x0, sp, #8
	bl	_timespec64_to_ns
	mov	w1, #1000
	bl	_div_s64
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w0, w0, lsl #1
	asr	w1, w8, #1
	bl	_usleep_range
	bl	_kthread_should_stop
	cbz	w0, LBB0_1
; %bb.9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ina2xx_capture_thread
.subsections_via_symbols
