	.file	"extr_dib0090.c_dib0090_get_offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dib0090_get_offset, @function
dib0090_get_offset:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR INTERN_WAIT[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	r12d, [rax+rax*4]
	mov	eax, DWORD PTR [rsi]
	mov	rbx, rsi
	add	r12d, r12d
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L8
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, 29
	call	dib0090_read_reg@PLT
	mov	rdi, rbp
	mov	edx, 4
	mov	esi, 31
	mov	DWORD PTR 0[rbp], eax
	call	dib0090_write_reg@PLT
	mov	eax, r12d
	mov	DWORD PTR [rbx], 128
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 29
	xor	r12d, r12d
	call	dib0090_read_reg@PLT
	sub	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR CT_TUNER_STEP_5[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, 7
	mov	esi, 31
	call	dib0090_write_reg@PLT
	mov	eax, r12d
	mov	DWORD PTR [rbx], 129
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dib0090_get_offset, .-dib0090_get_offset
	.comm	INTERN_WAIT,4,4
	.comm	CT_TUNER_STEP_5,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_dib0090.c_dib0090_get_offset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib0090_get_offset, %function
dib0090_get_offset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	ldr	r2, [r1]
	ldr	r3, [r3]
	cmp	r2, #129
	add	r3, r3, r3, lsl #2
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	lsl	r4, r3, #1
	beq	.L2
	cmp	r2, #130
	beq	.L3
	cmp	r2, #128
	beq	.L8
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, #29
	bl	dib0090_read_reg
	mov	r2, #4
	str	r0, [r6]
	mov	r1, #31
	mov	r0, r6
	bl	dib0090_write_reg
	mov	r3, #128
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, #29
	bl	dib0090_read_reg
	mov	r4, #0
	ldr	r3, [r6]
	ldr	r2, .L9+4
	sub	r3, r3, r0
	str	r3, [r6]
	ldr	r3, [r2]
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L3:
	mov	r2, #7
	mov	r1, #31
	bl	dib0090_write_reg
	mov	r3, #129
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	INTERN_WAIT
	.word	CT_TUNER_STEP_5
	.size	dib0090_get_offset, .-dib0090_get_offset
	.comm	INTERN_WAIT,4,4
	.comm	CT_TUNER_STEP_5,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
