	.file	"extr_cx24113.c_cx24113_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx24113_init, @function
cx24113_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, QWORD PTR [rdi]
	movabs	rax, 1099511627726
	mov	rdx, QWORD PTR ICP_LEVEL4[rip]
	mov	rcx, QWORD PTR 32[rbp]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR ICP_LEVEL3[rip]
	mov	QWORD PTR 128[rbp], 0
	cmp	DWORD PTR [rcx], 10999
	mov	QWORD PTR 120[rbp], rdx
	mov	QWORD PTR 112[rbp], rdx
	mov	QWORD PTR 104[rbp], rax
	jg	.L2
	mov	QWORD PTR 96[rbp], rax
.L3:
	mov	QWORD PTR 88[rbp], rax
	mov	eax, DWORD PTR ICP_LEVEL1[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	QWORD PTR 72[rbp], 0
	mov	DWORD PTR 80[rbp], eax
	mov	eax, DWORD PTR VCOBANDSEL_1[rip]
	mov	QWORD PTR 64[rbp], 0
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR LNA_MAX_GAIN[rip]
	mov	QWORD PTR 48[rbp], 0
	mov	DWORD PTR 40[rbp], eax
	movabs	rax, 34359738369
	mov	QWORD PTR 8[rbp], rax
	movabs	rax, 17587891081215
	mov	QWORD PTR 16[rbp], rax
	movabs	rax, 4294967297
	mov	QWORD PTR 24[rbp], rax
	call	cx24113_set_Fref@PLT
	mov	esi, 61
	mov	rdi, rbp
	call	cx24113_enable@PLT
	mov	rdi, rbp
	call	cx24113_set_parameters@PLT
	mov	esi, -30
	mov	rdi, rbp
	call	cx24113_set_gain_settings@PLT
	mov	esi, 18025
	mov	rdi, rbp
	call	cx24113_set_bandwidth@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	cx24113_set_clk_inversion@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	esi, 2
	mov	rdi, rbp
	cmp	DWORD PTR [rax], 39999
	jle	.L4
	call	cx24113_readreg@PLT
	mov	rdi, rbp
	mov	esi, 2
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movzx	edx, al
	or	edx, 4
	jmp	cx24113_writereg@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR ICP_LEVEL2[rip]
	mov	QWORD PTR 96[rbp], rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	call	cx24113_readreg@PLT
	mov	rdi, rbp
	mov	esi, 2
	pop	rbp
	.cfi_def_cfa_offset 8
	and	eax, 251
	mov	edx, eax
	jmp	cx24113_writereg@PLT
	.cfi_endproc
.LFE0:
	.size	cx24113_init, .-cx24113_init
	.comm	VCOBANDSEL_1,4,4
	.comm	LNA_MAX_GAIN,4,4
	.comm	ICP_LEVEL4,8,8
	.comm	ICP_LEVEL3,8,8
	.comm	ICP_LEVEL2,8,8
	.comm	ICP_LEVEL1,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_cx24113.c_cx24113_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx24113_init, %function
cx24113_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	r3, .L7
	ldr	r2, [r4, #32]
	mov	ip, #255
	ldr	r0, [r2]
	mvn	lr, #49
	cmp	r0, r3
	str	r1, [r4, #80]
	ldr	r2, .L7+4
	ldrgt	r1, .L7+8
	ldr	r2, [r2]
	ldrgt	r1, [r1]
	strle	r2, [r4, #76]
	strle	r2, [r4, #72]
	strgt	r2, [r4, #76]
	strgt	r2, [r4, #72]
	strgt	r1, [r4, #64]
	mov	r2, #8
	mov	r1, #0
	mov	r5, #1
	ldr	r0, .L7+12
	str	ip, [r4, #4]
	ldr	r3, .L7+16
	ldr	ip, .L7+20
	ldr	r3, [r3]
	str	lr, [r4]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L7+24
	strle	r3, [r4, #68]
	strle	r3, [r4, #64]
	strgt	r3, [r4, #68]
	ldr	r0, [r0]
	str	r3, [r4, #60]
	ldr	r3, .L7+28
	str	r2, [r4, #12]
	str	lr, [r4, #56]
	str	ip, [r4, #44]
	str	r1, [r4, #52]
	str	r1, [r4, #48]
	str	r1, [r4, #40]
	str	r0, [r4, #36]
	str	r5, [r4, #8]
	mov	r0, r4
	str	r5, [r4, #24]
	str	r5, [r4, #28]
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	bl	cx24113_set_Fref
	mov	r1, #61
	mov	r0, r4
	bl	cx24113_enable
	mov	r0, r4
	bl	cx24113_set_parameters
	mvn	r1, #29
	mov	r0, r4
	bl	cx24113_set_gain_settings
	ldr	r1, .L7+32
	mov	r0, r4
	bl	cx24113_set_bandwidth
	mov	r1, r5
	mov	r0, r4
	bl	cx24113_set_clk_inversion
	ldr	r2, [r4, #32]
	ldr	r3, .L7+36
	ldr	r2, [r2]
	mov	r1, #2
	cmp	r2, r3
	mov	r0, r4
	ble	.L4
	bl	cx24113_readreg
	and	r2, r0, #255
	mov	r1, #2
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	orr	r2, r2, #4
	b	cx24113_writereg
.L4:
	bl	cx24113_readreg
	mov	r1, #2
	and	r2, r0, #251
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	cx24113_writereg
.L8:
	.align	2
.L7:
	.word	10999
	.word	ICP_LEVEL4
	.word	ICP_LEVEL2
	.word	VCOBANDSEL_1
	.word	ICP_LEVEL3
	.word	ICP_LEVEL1
	.word	LNA_MAX_GAIN
	.word	4095
	.word	18025
	.word	39999
	.size	cx24113_init, .-cx24113_init
	.comm	VCOBANDSEL_1,4,4
	.comm	LNA_MAX_GAIN,4,4
	.comm	ICP_LEVEL4,4,4
	.comm	ICP_LEVEL3,4,4
	.comm	ICP_LEVEL2,4,4
	.comm	ICP_LEVEL1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
