	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_trigger_handler_dma
_at91_adc_trigger_handler_dma:          ## @at91_adc_trigger_handler_dma
	.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	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_at91_adc_dma_size_done
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%rax, %r13
	movq	_AT91_SAMA5D2_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_at91_adc_readl
	movq	_AT91_SAMA5D2_IER_GOVRE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info_ratelimited
LBB0_2:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_div_s64
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_div_s64
	subl	8(%rbx), %r13d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_div_s64
	cmpl	%r12d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_5
## %bb.3:
	movslq	%r12d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rsi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%eax, %r14d
	callq	_at91_adc_adjust_val_osr_array
	movq	16(%rbx), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	movl	8(%rbx), %edx
	addl	%r13d, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_push_to_buffers_with_timestamp
	subl	%r12d, %r15d
	movq	16(%rbx), %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %rsi
	movl	%r14d, %eax
	movl	$0, %ecx
	cmovaeq	%rcx, %rsi
	movq	%rsi, 16(%rbx)
	addl	%r14d, %r13d
	cmpl	%r12d, %r15d
	jge	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iio_get_time_ns
	movl	%eax, 8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SAMA5D2_ISR,4,2           ## @AT91_SAMA5D2_ISR
	.comm	_AT91_SAMA5D2_IER_GOVRE,4,2     ## @AT91_SAMA5D2_IER_GOVRE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: conversion overrun detected\n"

	.no_dead_strip	_at91_adc_trigger_handler_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_trigger_handler_dma
_at91_adc_trigger_handler_dma:          ; @at91_adc_trigger_handler_dma
	.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, x0
	bl	_iio_priv
	mov	x19, x0
	bl	_at91_adc_dma_size_done
	mov	x21, x0
	mov	x0, x20
	bl	_iio_get_time_ns
	mov	x23, x0
Lloh0:
	adrp	x8, _AT91_SAMA5D2_ISR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_SAMA5D2_ISR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_adc_readl
Lloh3:
	adrp	x8, _AT91_SAMA5D2_IER_GOVRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AT91_SAMA5D2_IER_GOVRE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info_ratelimited
LBB0_2:
	ldp	w0, w1, [x19]
	bl	_div_s64
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_div_s64
	mov	x1, x0
	ldr	w8, [x19, #8]
	sub	w0, w23, w8
	bl	_div_s64
	cmp	w21, w22
	b.lt	LBB0_5
; %bb.3:
	mov	x23, x0
	mov	w24, #0
	sxtw	x25, w22
	ldr	x8, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	mov	x2, x22
	bl	_at91_adc_adjust_val_osr_array
	ldp	x9, x8, [x19, #16]
	add	x1, x8, x9, lsl #2
	ldr	w8, [x19, #8]
	add	w2, w24, w8
	mov	x0, x20
	bl	_iio_push_to_buffers_with_timestamp
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x25
	cmp	x8, x9
	csel	x8, x8, xzr, lo
	str	x8, [x19, #16]
	add	w24, w24, w23
	sub	w21, w21, w22
	cmp	w21, w22
	b.ge	LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_iio_get_time_ns
	str	w0, [x19, #8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SAMA5D2_ISR,4,2           ; @AT91_SAMA5D2_ISR
	.comm	_AT91_SAMA5D2_IER_GOVRE,4,2     ; @AT91_SAMA5D2_IER_GOVRE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: conversion overrun detected\n"

	.no_dead_strip	_at91_adc_trigger_handler_dma
.subsections_via_symbols
