	.file	"extr_cb_pcidas64.c_set_ai_pacing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"convert counter 0x%x\n"
.LC1:
	.string	"scan counter 0x%x\n"
	.text
	.p2align 4
	.type	set_ai_pacing, @function
set_ai_pacing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	check_adc_timing@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	select_master_clock@PLT
	mov	rdi, rbp
	call	board@PLT
	mov	rdx, QWORD PTR LAYOUT_4020[rip]
	mov	rsi, r12
	mov	rdi, rbp
	cmp	QWORD PTR [rax], rdx
	je	.L6
	call	ai_convert_counter_6xxx@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	ebx, eax
	call	ai_scan_counter_6xxx@PLT
	mov	r13d, eax
	mov	r12d, eax
	movzx	r14d, ax
	sar	r13d, 16
	movzx	r13d, r13b
.L3:
	mov	rdi, rbp
	call	priv@PLT
	movzx	edi, bx
	mov	rsi, QWORD PTR ADC_SAMPLE_INTERVAL_LOWER_REG[rip]
	add	rsi, QWORD PTR [rax]
	call	writew@PLT
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	sar	ebx, 16
	call	DEBUG_PRINT@PLT
	mov	rdi, rbp
	call	priv@PLT
	movzx	edi, bl
	mov	rsi, QWORD PTR ADC_SAMPLE_INTERVAL_UPPER_REG[rip]
	add	rsi, QWORD PTR [rax]
	call	writew@PLT
	mov	rdi, rbp
	call	priv@PLT
	mov	edi, r14d
	mov	rsi, QWORD PTR ADC_DELAY_INTERVAL_LOWER_REG[rip]
	add	rsi, QWORD PTR [rax]
	call	writew@PLT
	mov	rdi, rbp
	call	priv@PLT
	mov	edi, r13d
	mov	rsi, QWORD PTR ADC_DELAY_INTERVAL_UPPER_REG[rip]
	add	rsi, QWORD PTR [rax]
	call	writew@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	lea	rdi, .LC1[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	DEBUG_PRINT@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	call	ai_convert_counter_4020@PLT
	xor	r13d, r13d
	xor	r14d, r14d
	xor	r12d, r12d
	mov	ebx, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	set_ai_pacing, .-set_ai_pacing
	.comm	LAYOUT_4020,8,8
	.comm	ADC_SAMPLE_INTERVAL_UPPER_REG,8,8
	.comm	ADC_SAMPLE_INTERVAL_LOWER_REG,8,8
	.comm	ADC_DELAY_INTERVAL_UPPER_REG,8,8
	.comm	ADC_DELAY_INTERVAL_LOWER_REG,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cb_pcidas64.c_set_ai_pacing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"convert counter 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"scan counter 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_ai_pacing, %function
set_ai_pacing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	bl	check_adc_timing
	mov	r1, r6
	mov	r0, r4
	bl	select_master_clock
	mov	r0, r4
	bl	board
	ldr	r3, .L7
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r1, r6
	cmp	r2, r3
	mov	r0, r4
	beq	.L6
	bl	ai_convert_counter_6xxx
	mov	r1, r6
	mov	r5, r0
	mov	r0, r4
	bl	ai_scan_counter_6xxx
	mov	r6, r0
	lsl	r8, r0, #16
	asr	r7, r0, #16
	lsr	r8, r8, #16
	and	r7, r7, #255
.L3:
	mov	r0, r4
	bl	priv
	ldr	r3, .L7+4
	ldr	r1, [r0]
	ldr	r3, [r3]
	lsl	r0, r5, #16
	add	r1, r1, r3
	lsr	r0, r0, #16
	bl	writew
	mov	r1, r5
	ldr	r0, .L7+8
	bl	DEBUG_PRINT
	mov	r0, r4
	bl	priv
	ldr	r3, .L7+12
	ldr	r1, [r0]
	ldr	r3, [r3]
	asr	r5, r5, #16
	add	r1, r1, r3
	and	r0, r5, #255
	bl	writew
	mov	r0, r4
	bl	priv
	ldr	r3, .L7+16
	ldr	r1, [r0]
	ldr	r3, [r3]
	mov	r0, r8
	add	r1, r1, r3
	bl	writew
	mov	r0, r4
	bl	priv
	ldr	r3, .L7+20
	ldr	r1, [r0]
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, r1, r3
	bl	writew
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L7+24
	b	DEBUG_PRINT
.L6:
	mov	r7, #0
	bl	ai_convert_counter_4020
	mov	r8, r7
	mov	r5, r0
	mov	r6, r7
	b	.L3
.L8:
	.align	2
.L7:
	.word	LAYOUT_4020
	.word	ADC_SAMPLE_INTERVAL_LOWER_REG
	.word	.LC0
	.word	ADC_SAMPLE_INTERVAL_UPPER_REG
	.word	ADC_DELAY_INTERVAL_LOWER_REG
	.word	ADC_DELAY_INTERVAL_UPPER_REG
	.word	.LC1
	.size	set_ai_pacing, .-set_ai_pacing
	.comm	LAYOUT_4020,4,4
	.comm	ADC_SAMPLE_INTERVAL_UPPER_REG,4,4
	.comm	ADC_SAMPLE_INTERVAL_LOWER_REG,4,4
	.comm	ADC_DELAY_INTERVAL_UPPER_REG,4,4
	.comm	ADC_DELAY_INTERVAL_LOWER_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
