	.file	"extr_ni_at_a2150.c_a2150_get_timing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	a2150_get_timing, @function
a2150_get_timing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR thisboard[rip]
	mov	rdx, QWORD PTR [rax]
	mov	ebx, DWORD PTR [rdx]
	lea	r8d, 0[0+rbx*8]
	mov	ebx, DWORD PTR 8[rax]
	lea	r11d, -1[rbx]
	movsx	rcx, r11d
	mov	r9d, DWORD PTR [rdx+rcx*4]
	mov	ecx, DWORD PTR [rsi]
	cmp	ecx, r9d
	jnb	.L2
	mov	DWORD PTR [rsi], r9d
	mov	ecx, r9d
.L2:
	cmp	r8d, ecx
	jnb	.L3
	mov	DWORD PTR [rsi], r8d
.L3:
	mov	r15d, DWORD PTR 8[rax]
	xor	ecx, ecx
	xor	ebp, ebp
	xor	r13d, r13d
	mov	r12d, 3
	lea	ebx, -1[r15]
.L4:
	xor	edi, edi
	test	r15d, r15d
	jg	.L7
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rax
.L7:
	mov	eax, DWORD PTR [rdx+rdi*4]
	mov	r10d, edi
	sal	eax, cl
	cmp	r8d, eax
	jle	.L5
	cmp	DWORD PTR [rsi], eax
	cmovbe	r13d, edi
	cmovbe	r12d, ecx
	cmovbe	r8d, eax
.L5:
	cmp	r9d, eax
	jge	.L6
	cmp	DWORD PTR [rsi], eax
	cmovnb	r11d, r10d
	cmovnb	ebp, ecx
	cmovnb	r9d, eax
.L6:
	lea	rax, 1[rdi]
	cmp	rbx, rdi
	jne	.L17
.L10:
	add	ecx, 1
	cmp	ecx, 4
	jne	.L4
	and	r14d, DWORD PTR TRIG_ROUND_MASK[rip]
	cmp	r14d, 128
	je	.L11
	cmp	r14d, 130
	je	.L12
	mov	eax, DWORD PTR [rsi]
	mov	edx, r8d
	sub	edx, eax
	sub	eax, r9d
	cmp	edx, eax
	cmovb	r9d, r8d
	mov	DWORD PTR [rsi], r9d
.L14:
	mov	eax, DWORD PTR CLOCK_MASK[rip]
	mov	rdx, QWORD PTR devpriv[rip]
	not	eax
	and	DWORD PTR [rdx], eax
	cmp	DWORD PTR [rsi], r8d
	je	.L21
	mov	edi, r11d
	call	CLOCK_SELECT_BITS@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	CLOCK_DIVISOR_BITS@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	or	ebx, eax
	or	DWORD PTR [rdx], ebx
.L16:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	edi, r13d
	call	CLOCK_SELECT_BITS@PLT
	mov	edi, r12d
	mov	ebx, eax
	call	CLOCK_DIVISOR_BITS@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	or	ebx, eax
	or	DWORD PTR [rdx], ebx
	jmp	.L16
.L11:
	mov	DWORD PTR [rsi], r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR [rsi], r9d
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	a2150_get_timing, .-a2150_get_timing
	.comm	thisboard,8,8
	.comm	devpriv,8,8
	.comm	TRIG_ROUND_MASK,4,4
	.comm	CLOCK_MASK,4,4
	.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_ni_at_a2150.c_a2150_get_timing.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	a2150_get_timing, %function
a2150_get_timing:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r3]
	ldr	ip, [r1]
	ldr	r0, [r3, #4]
	ldr	fp, [r3]
	sub	r0, r0, #1
	ldr	r4, [fp, r0, lsl #2]
	ldr	lr, [fp]
	cmp	ip, r4
	movcc	ip, r4
	lsl	lr, lr, #3
	strcc	r4, [r1]
	cmp	lr, ip
	mov	ip, #0
	mov	r10, r2
	mov	r7, ip
	mov	r9, ip
	mov	r8, #3
	strcc	lr, [r1]
	ldr	r6, [r3, #4]
	sub	sp, sp, #12
.L4:
	cmp	r6, #0
	movgt	r2, #0
	subgt	r5, fp, #4
	strgt	r10, [sp, #4]
	ble	.L10
.L7:
	ldr	r3, [r5, #4]!
	cmp	lr, r3, lsl ip
	lsl	r3, r3, ip
	ble	.L5
	ldr	r10, [r1]
	cmp	r10, r3
	movls	r9, r2
	movls	r8, ip
	movls	lr, r3
.L5:
	cmp	r4, r3
	bge	.L6
	ldr	r10, [r1]
	cmp	r10, r3
	movcs	r0, r2
	movcs	r7, ip
	movcs	r4, r3
.L6:
	add	r2, r2, #1
	cmp	r6, r2
	bne	.L7
	ldr	r10, [sp, #4]
.L10:
	add	ip, ip, #1
	cmp	ip, #4
	bne	.L4
	ldr	r3, .L22+4
	ldr	r2, [r3]
	and	r2, r2, r10
	cmp	r2, #128
	streq	lr, [r1]
	beq	.L14
	cmp	r2, #130
	streq	r4, [r1]
	beq	.L14
	ldr	r3, [r1]
	sub	r2, lr, r3
	sub	r3, r3, r4
	cmp	r2, r3
	movcs	r3, r4
	movcc	r3, lr
	str	r3, [r1]
.L14:
	ldr	r5, .L22+8
	ldr	r3, .L22+12
	ldr	r2, [r5]
	ldr	ip, [r3]
	ldr	r3, [r2]
	bic	r3, r3, ip
	str	r3, [r2]
	ldr	r3, [r1]
	cmp	r3, lr
	beq	.L21
	bl	CLOCK_SELECT_BITS
	mov	r4, r0
	mov	r0, r7
.L19:
	bl	CLOCK_DIVISOR_BITS
	orr	r4, r4, r0
	mov	r0, #0
	ldr	r2, [r5]
	ldr	r3, [r2]
	orr	r4, r3, r4
	str	r4, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r9
	bl	CLOCK_SELECT_BITS
	mov	r4, r0
	mov	r0, r8
	b	.L19
.L23:
	.align	2
.L22:
	.word	thisboard
	.word	TRIG_ROUND_MASK
	.word	devpriv
	.word	CLOCK_MASK
	.size	a2150_get_timing, .-a2150_get_timing
	.comm	thisboard,4,4
	.comm	devpriv,4,4
	.comm	TRIG_ROUND_MASK,4,4
	.comm	CLOCK_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
