	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_config_emr
_at91_adc_config_emr:                   ## @at91_adc_config_emr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AT91_SAMA5D2_EMR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_at91_adc_readl
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_AT91_SAMA5D2_EMR_ASTE
	orl	%ebx, %eax
	movq	_AT91_SAMA5D2_EMR_OSR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.at91_adc_config_emr(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_AT91_SAMA5D2_EMR_OSR
	andl	(%r12), %eax
	orl	%eax, %ebx
LBB0_2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_at91_adc_writel                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SAMA5D2_EMR,4,2           ## @AT91_SAMA5D2_EMR
	.comm	_AT91_SAMA5D2_EMR_OSR_MASK,4,2  ## @AT91_SAMA5D2_EMR_OSR_MASK
	.comm	_AT91_SAMA5D2_EMR_OSR_1SAMPLES,4,2 ## @AT91_SAMA5D2_EMR_OSR_1SAMPLES
	.comm	_AT91_SAMA5D2_EMR_OSR_4SAMPLES,4,2 ## @AT91_SAMA5D2_EMR_OSR_4SAMPLES
	.comm	_AT91_SAMA5D2_EMR_OSR_16SAMPLES,4,2 ## @AT91_SAMA5D2_EMR_OSR_16SAMPLES
	.no_dead_strip	_at91_adc_config_emr
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.at91_adc_config_emr
l_switch.table.at91_adc_config_emr:
	.quad	_AT91_SAMA5D2_EMR_OSR_4SAMPLES
	.quad	_AT91_SAMA5D2_EMR_OSR_1SAMPLES
	.quad	_AT91_SAMA5D2_EMR_OSR_16SAMPLES

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_config_emr
_at91_adc_config_emr:                   ; @at91_adc_config_emr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _AT91_SAMA5D2_EMR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AT91_SAMA5D2_EMR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_at91_adc_readl
	mov	x20, x0
	mov	w0, #1
	bl	_AT91_SAMA5D2_EMR_ASTE
Lloh2:
	adrp	x22, _AT91_SAMA5D2_EMR_OSR_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AT91_SAMA5D2_EMR_OSR_MASK@GOTPAGEOFF]
	orr	w8, w0, w20
	ldr	w9, [x22]
	bic	w20, w8, w9
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, l_switch.table.at91_adc_config_emr@PAGE
Lloh5:
	add	x9, x9, l_switch.table.at91_adc_config_emr@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_AT91_SAMA5D2_EMR_OSR
	ldr	w8, [x22]
	and	w8, w8, w0
	orr	w20, w8, w20
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_at91_adc_writel
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SAMA5D2_EMR,4,2           ; @AT91_SAMA5D2_EMR
	.comm	_AT91_SAMA5D2_EMR_OSR_MASK,4,2  ; @AT91_SAMA5D2_EMR_OSR_MASK
	.comm	_AT91_SAMA5D2_EMR_OSR_1SAMPLES,4,2 ; @AT91_SAMA5D2_EMR_OSR_1SAMPLES
	.comm	_AT91_SAMA5D2_EMR_OSR_4SAMPLES,4,2 ; @AT91_SAMA5D2_EMR_OSR_4SAMPLES
	.comm	_AT91_SAMA5D2_EMR_OSR_16SAMPLES,4,2 ; @AT91_SAMA5D2_EMR_OSR_16SAMPLES
	.no_dead_strip	_at91_adc_config_emr
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.at91_adc_config_emr
l_switch.table.at91_adc_config_emr:
	.quad	_AT91_SAMA5D2_EMR_OSR_4SAMPLES
	.quad	_AT91_SAMA5D2_EMR_OSR_1SAMPLES
	.quad	_AT91_SAMA5D2_EMR_OSR_16SAMPLES

.subsections_via_symbols
