	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tiadc_worker_h
_tiadc_worker_h:                        ## @tiadc_worker_h
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	movq	(%rax), %rbx
	movq	_REG_FIFO1CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tiadc_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	movq	_FIFOREAD_DATA_MASK@GOTPCREL(%rip), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_iio_push_to_buffers
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmpl	$2, (%r15)
	movl	$0, %r12d
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	%r15, %rbx
	movq	%r13, %r15
	movq	_REG_FIFO1@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_tiadc_readl
	andl	(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r12
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r13
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	movq	_REG_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQENB_FIFO1THRES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_tiadc_writel
	movq	_REG_IRQENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_tiadc_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_FIFO1CNT,4,2               ## @REG_FIFO1CNT
	.comm	_REG_FIFO1,4,2                  ## @REG_FIFO1
	.comm	_FIFOREAD_DATA_MASK,4,2         ## @FIFOREAD_DATA_MASK
	.comm	_REG_IRQSTATUS,4,2              ## @REG_IRQSTATUS
	.comm	_IRQENB_FIFO1THRES,4,2          ## @IRQENB_FIFO1THRES
	.comm	_REG_IRQENABLE,4,2              ## @REG_IRQENABLE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tiadc_worker_h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tiadc_worker_h
_tiadc_worker_h:                        ; @tiadc_worker_h
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _REG_FIFO1CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_FIFO1CNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tiadc_readl
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, x0
	mov	w23, #0
Lloh3:
	adrp	x24, _REG_FIFO1@GOTPAGE
Lloh4:
	ldr	x24, [x24, _REG_FIFO1@GOTPAGEOFF]
Lloh5:
	adrp	x25, _FIFOREAD_DATA_MASK@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FIFOREAD_DATA_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_iio_push_to_buffers
	add	w23, w26, w23
	cmp	w23, w22
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x24]
	mov	x0, x19
	bl	_tiadc_readl
	ldr	w8, [x25]
	and	w8, w8, w0
	str	w8, [x21, x26, lsl #2]
	add	x26, x26, #1
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x26, w8, sxtw
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
Lloh7:
	adrp	x8, _REG_IRQSTATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_IRQSTATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x20, _IRQENB_FIFO1THRES@GOTPAGE
Lloh11:
	ldr	x20, [x20, _IRQENB_FIFO1THRES@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_tiadc_writel
Lloh12:
	adrp	x8, _REG_IRQENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_IRQENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_tiadc_writel
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_FIFO1CNT,4,2               ; @REG_FIFO1CNT
	.comm	_REG_FIFO1,4,2                  ; @REG_FIFO1
	.comm	_FIFOREAD_DATA_MASK,4,2         ; @FIFOREAD_DATA_MASK
	.comm	_REG_IRQSTATUS,4,2              ; @REG_IRQSTATUS
	.comm	_IRQENB_FIFO1THRES,4,2          ; @IRQENB_FIFO1THRES
	.comm	_REG_IRQENABLE,4,2              ; @REG_IRQENABLE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tiadc_worker_h
.subsections_via_symbols
