	.file	"extr_dib3000mc.c_dib3000mc_get_frontend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dib3000mc_get_frontend, @function
dib3000mc_get_frontend:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	mov	esi, 458
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, rbp
	call	dib3000mc_read_word@PLT
	mov	edx, DWORD PTR INVERSION_AUTO[rip]
	test	ah, 1
	mov	DWORD PTR 40[rbx], edx
	mov	edx, DWORD PTR 0[rbp]
	mov	DWORD PTR 32[rbx], edx
	mov	edx, DWORD PTR TRANSMISSION_MODE_2K[rip]
	cmovne	edx, DWORD PTR TRANSMISSION_MODE_8K[rip]
	mov	DWORD PTR 28[rbx], edx
	mov	edx, eax
	and	edx, 3
	cmp	edx, 2
	je	.L4
	cmp	edx, 3
	je	.L5
	cmp	edx, 1
	je	.L6
	mov	edx, DWORD PTR GUARD_INTERVAL_1_32[rip]
	mov	DWORD PTR 24[rbx], edx
.L7:
	mov	edx, eax
	sar	edx, 13
	and	edx, 3
	je	.L8
	cmp	edx, 1
	je	.L9
	mov	edx, DWORD PTR QAM_64[rip]
	mov	DWORD PTR 20[rbx], edx
.L11:
	mov	edx, DWORD PTR HIERARCHY_NONE[rip]
	mov	ecx, eax
	sar	ecx, 5
	mov	DWORD PTR 16[rbx], edx
	mov	edx, ecx
	and	edx, 7
	cmp	edx, 3
	je	.L12
	and	ecx, 4
	jne	.L13
	cmp	edx, 1
	je	.L14
	cmp	edx, 2
	jne	.L16
	mov	rdx, QWORD PTR FEC_2_3[rip]
	mov	QWORD PTR 8[rbx], rdx
.L18:
	sar	eax, 2
	mov	edx, eax
	and	edx, 7
	cmp	edx, 3
	je	.L19
.L29:
	test	al, 4
	jne	.L20
	cmp	edx, 1
	je	.L21
	cmp	edx, 2
	jne	.L23
	mov	rax, QWORD PTR FEC_2_3[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	cmp	edx, 5
	jne	.L23
	mov	rax, QWORD PTR FEC_5_6[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	cmp	edx, 5
	jne	.L16
	mov	rdx, QWORD PTR FEC_5_6[rip]
	sar	eax, 2
	mov	QWORD PTR 8[rbx], rdx
	mov	edx, eax
	and	edx, 7
	cmp	edx, 3
	jne	.L29
.L19:
	mov	rax, QWORD PTR FEC_3_4[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR QPSK[rip]
	mov	DWORD PTR 20[rbx], edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR QAM_16[rip]
	mov	DWORD PTR 20[rbx], edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR GUARD_INTERVAL_1_8[rip]
	mov	DWORD PTR 24[rbx], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR GUARD_INTERVAL_1_16[rip]
	mov	DWORD PTR 24[rbx], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR GUARD_INTERVAL_1_4[rip]
	mov	DWORD PTR 24[rbx], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR FEC_7_8[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, QWORD PTR FEC_3_4[rip]
	mov	QWORD PTR 8[rbx], rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, QWORD PTR FEC_1_2[rip]
	mov	QWORD PTR 8[rbx], rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdx, QWORD PTR FEC_7_8[rip]
	mov	QWORD PTR 8[rbx], rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR FEC_1_2[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dib3000mc_get_frontend, .-dib3000mc_get_frontend
	.comm	TRANSMISSION_MODE_8K,4,4
	.comm	TRANSMISSION_MODE_2K,4,4
	.comm	QPSK,4,4
	.comm	QAM_64,4,4
	.comm	QAM_16,4,4
	.comm	INVERSION_AUTO,4,4
	.comm	HIERARCHY_NONE,4,4
	.comm	GUARD_INTERVAL_1_8,4,4
	.comm	GUARD_INTERVAL_1_4,4,4
	.comm	GUARD_INTERVAL_1_32,4,4
	.comm	GUARD_INTERVAL_1_16,4,4
	.comm	FEC_7_8,8,8
	.comm	FEC_5_6,8,8
	.comm	FEC_3_4,8,8
	.comm	FEC_2_3,8,8
	.comm	FEC_1_2,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_dib3000mc.c_dib3000mc_get_frontend.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib3000mc_get_frontend, %function
dib3000mc_get_frontend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r1
	mov	r0, r5
	ldr	r1, .L29
	bl	dib3000mc_read_word
	ldr	r3, .L29+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r0, #256
	str	r3, [r4, #28]
	ldreq	r3, .L29+8
	ldrne	r3, .L29+12
	str	r2, [r4, #24]
	ldr	r2, [r3]
	and	r3, r0, #3
	cmp	r3, #2
	str	r2, [r4, #20]
	beq	.L4
	cmp	r3, #3
	beq	.L5
	cmp	r3, #1
	ldrne	r3, .L29+16
	ldreq	r3, .L29+20
	ldr	r3, [r3]
	str	r3, [r4, #16]
.L7:
	asr	r3, r0, #13
	ands	r3, r3, #3
	beq	.L8
	cmp	r3, #1
	beq	.L9
	ldr	r3, .L29+24
	ldr	r3, [r3]
	str	r3, [r4, #12]
.L11:
	ldr	r2, .L29+28
	asr	r3, r0, #5
	ldr	r2, [r2]
	and	r3, r3, #7
	sub	r3, r3, #1
	str	r2, [r4, #8]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L12
	.word	.L13
.L8:
	ldr	r3, .L29+32
	ldr	r3, [r3]
	str	r3, [r4, #12]
	b	.L11
.L9:
	ldr	r3, .L29+36
	ldr	r3, [r3]
	str	r3, [r4, #12]
	b	.L11
.L5:
	ldr	r3, .L29+40
	ldr	r3, [r3]
	str	r3, [r4, #16]
	b	.L7
.L4:
	ldr	r3, .L29+44
	ldr	r3, [r3]
	str	r3, [r4, #16]
	b	.L7
.L13:
	ldr	r3, .L29+48
	ldr	r3, [r3]
	str	r3, [r4, #4]
.L18:
	asr	r0, r0, #2
	and	r0, r0, #7
	sub	r0, r0, #1
	cmp	r0, #4
	ldrls	pc, [pc, r0, asl #2]
	b	.L19
.L21:
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L19
	.word	.L20
.L20:
	ldr	r3, .L29+48
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L29+52
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r3, .L29+56
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L24:
	ldr	r3, .L29+60
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r3, .L29+60
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L18
.L16:
	ldr	r3, .L29+56
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L18
.L15:
	ldr	r3, .L29+52
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L18
.L19:
	ldr	r3, .L29+64
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L29+64
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L18
.L30:
	.align	2
.L29:
	.word	458
	.word	INVERSION_AUTO
	.word	TRANSMISSION_MODE_2K
	.word	TRANSMISSION_MODE_8K
	.word	GUARD_INTERVAL_1_32
	.word	GUARD_INTERVAL_1_16
	.word	QAM_64
	.word	HIERARCHY_NONE
	.word	QPSK
	.word	QAM_16
	.word	GUARD_INTERVAL_1_4
	.word	GUARD_INTERVAL_1_8
	.word	FEC_5_6
	.word	FEC_3_4
	.word	FEC_2_3
	.word	FEC_1_2
	.word	FEC_7_8
	.size	dib3000mc_get_frontend, .-dib3000mc_get_frontend
	.comm	TRANSMISSION_MODE_8K,4,4
	.comm	TRANSMISSION_MODE_2K,4,4
	.comm	QPSK,4,4
	.comm	QAM_64,4,4
	.comm	QAM_16,4,4
	.comm	INVERSION_AUTO,4,4
	.comm	HIERARCHY_NONE,4,4
	.comm	GUARD_INTERVAL_1_8,4,4
	.comm	GUARD_INTERVAL_1_4,4,4
	.comm	GUARD_INTERVAL_1_32,4,4
	.comm	GUARD_INTERVAL_1_16,4,4
	.comm	FEC_7_8,4,4
	.comm	FEC_5_6,4,4
	.comm	FEC_3_4,4,4
	.comm	FEC_2_3,4,4
	.comm	FEC_1_2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
