	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_buffer_postenable
_at91_adc_buffer_postenable:            ## @at91_adc_buffer_postenable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movl	8(%rbx), %edi
	movq	_AT91_SAMA5D2_MAX_CHAN_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	%r14, %rsi
	callq	_bitmap_subset
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_at91_adc_configure_touch       ## TAILCALL
LBB0_1:
	movq	_INDIO_ALL_TRIGGERED_MODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_at91_adc_dma_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r14d
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iio_triggered_buffer_postenable ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SAMA5D2_MAX_CHAN_IDX,8,3  ## @AT91_SAMA5D2_MAX_CHAN_IDX
	.comm	_INDIO_ALL_TRIGGERED_MODES,4,2  ## @INDIO_ALL_TRIGGERED_MODES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer postenable failed\n"

	.no_dead_strip	_at91_adc_buffer_postenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_buffer_postenable
_at91_adc_buffer_postenable:            ; @at91_adc_buffer_postenable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _AT91_SAMA5D2_MAX_CHAN_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_SAMA5D2_MAX_CHAN_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, #1
	mov	x1, x20
	bl	_bitmap_subset
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_at91_adc_configure_touch
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _INDIO_ALL_TRIGGERED_MODES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INDIO_ALL_TRIGGERED_MODES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_at91_adc_dma_start
	cbz	w0, LBB0_7
; %bb.4:
	mov	x20, x0
	add	x0, x19, #4
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iio_triggered_buffer_postenable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SAMA5D2_MAX_CHAN_IDX,8,3  ; @AT91_SAMA5D2_MAX_CHAN_IDX
	.comm	_INDIO_ALL_TRIGGERED_MODES,4,2  ; @INDIO_ALL_TRIGGERED_MODES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer postenable failed\n"

	.no_dead_strip	_at91_adc_buffer_postenable
.subsections_via_symbols
