	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_write_raw
_at91_adc_write_raw:                    ## @at91_adc_write_raw
	.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	%r8, %rbx
	movl	%edx, %r14d
	callq	_iio_priv
	cmpq	$128, %rbx
	je	LBB0_7
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_10
## %bb.2:
	movq	_AT91_OSR_1SAMPLES@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_AT91_OSR_4SAMPLES@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_AT91_OSR_16SAMPLES@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	je	LBB0_11
## %bb.6:
	movl	%r14d, (%rax)
	movq	%rax, %rdi
	callq	_at91_adc_config_emr
	jmp	LBB0_11
LBB0_7:
	cmpl	%r14d, 4(%rax)
	jg	LBB0_10
## %bb.8:
	cmpl	%r14d, 8(%rax)
	jge	LBB0_9
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_at91_adc_setup_samp_freq
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_OSR_1SAMPLES,4,2          ## @AT91_OSR_1SAMPLES
	.comm	_AT91_OSR_4SAMPLES,4,2          ## @AT91_OSR_4SAMPLES
	.comm	_AT91_OSR_16SAMPLES,4,2         ## @AT91_OSR_16SAMPLES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_at91_adc_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_write_raw
_at91_adc_write_raw:                    ; @at91_adc_write_raw
	.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	x20, x4
	mov	x19, x2
	bl	_iio_priv
	cmp	x20, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x20, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _AT91_OSR_1SAMPLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_OSR_1SAMPLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AT91_OSR_4SAMPLES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AT91_OSR_4SAMPLES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AT91_OSR_16SAMPLES@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AT91_OSR_16SAMPLES@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.gt	LBB0_7
; %bb.6:
	ldr	w8, [x0, #8]
	cmp	w8, w19
	b.ge	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	w19, [x0]
	bl	_at91_adc_config_emr
	mov	w0, #0
	b	LBB0_8
LBB0_10:
	mov	x1, x19
	bl	_at91_adc_setup_samp_freq
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_OSR_1SAMPLES,4,2          ; @AT91_OSR_1SAMPLES
	.comm	_AT91_OSR_4SAMPLES,4,2          ; @AT91_OSR_4SAMPLES
	.comm	_AT91_OSR_16SAMPLES,4,2         ; @AT91_OSR_16SAMPLES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_at91_adc_write_raw
.subsections_via_symbols
