	.file	"extr_multiq3.c_multiq3_encoder_insn_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	multiq3_encoder_insn_read, @function
multiq3_encoder_insn_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	CR_CHAN@PLT
	mov	r12d, DWORD PTR MULTIQ3_CONTROL_MUST[rip]
	or	r12d, DWORD PTR MULTIQ3_AD_MUX_EN[rip]
	sal	eax, 3
	or	r12d, eax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR MULTIQ3_CONTROL[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR 0[rbp]
	add	r13d, 1
	call	outw@PLT
	mov	edi, DWORD PTR MULTIQ3_BP_RESET[rip]
	mov	rsi, QWORD PTR MULTIQ3_ENC_CONTROL[rip]
	add	r15, 4
	add	rsi, QWORD PTR 0[rbp]
	call	outb@PLT
	mov	edi, DWORD PTR MULTIQ3_TRSFRCNTR_OL[rip]
	mov	rsi, QWORD PTR MULTIQ3_ENC_CONTROL[rip]
	add	rsi, QWORD PTR 0[rbp]
	call	outb@PLT
	mov	rdi, QWORD PTR MULTIQ3_ENC_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	inb@PLT
	mov	rdi, QWORD PTR MULTIQ3_ENC_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r14d, eax
	call	inb@PLT
	mov	rdi, QWORD PTR MULTIQ3_ENC_DATA[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	ebx, eax
	call	inb@PLT
	sal	ebx, 8
	sal	eax, 16
	or	ebx, eax
	mov	rax, QWORD PTR 8[rsp]
	or	ebx, r14d
	add	ebx, 8388608
	and	ebx, 16777215
	mov	DWORD PTR -4[r15], ebx
	cmp	DWORD PTR [rax], r13d
	jg	.L3
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	multiq3_encoder_insn_read, .-multiq3_encoder_insn_read
	.comm	MULTIQ3_TRSFRCNTR_OL,4,4
	.comm	MULTIQ3_ENC_DATA,8,8
	.comm	MULTIQ3_ENC_CONTROL,8,8
	.comm	MULTIQ3_CONTROL_MUST,4,4
	.comm	MULTIQ3_CONTROL,8,8
	.comm	MULTIQ3_BP_RESET,4,4
	.comm	MULTIQ3_AD_MUX_EN,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_multiq3.c_multiq3_encoder_insn_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiq3_encoder_insn_read, %function
multiq3_encoder_insn_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r2
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r0, [r2, #4]
	mov	r8, r3
	bl	CR_CHAN
	ldr	r1, .L8
	ldr	r3, .L8+4
	ldr	r10, [r1]
	ldr	r1, [r3]
	ldr	r3, [fp]
	orr	r10, r10, r1
	cmp	r3, #0
	orr	r3, r10, r0, lsl #3
	mov	r6, #0
	str	r3, [sp, #4]
	ble	.L1
	ldr	r3, .L8+8
	ldr	r9, .L8+12
	ldr	r7, .L8+16
	sub	r8, r8, #4
.L3:
	ldr	r2, [r3]
	ldr	r1, [r4]
	ldr	r0, [sp, #4]
	add	r1, r1, r2
	bl	outw
	ldr	r2, [r9]
	ldr	r3, .L8+20
	ldr	r1, [r4]
	ldr	r0, [r3]
	add	r1, r1, r2
	bl	outb
	ldr	r3, .L8+24
	ldr	r2, [r9]
	ldr	r1, [r4]
	ldr	r0, [r3]
	add	r1, r1, r2
	bl	outb
	ldr	r2, [r7]
	ldr	r0, [r4]
	add	r6, r6, #1
	add	r0, r0, r2
	bl	inb
	ldr	ip, [r4]
	ldr	r1, [r7]
	mov	r10, r0
	add	r0, ip, r1
	bl	inb
	ldr	lr, [r4]
	ldr	ip, [r7]
	mov	r5, r0
	add	r0, lr, ip
	bl	inb
	lsl	r2, r0, #16
	orr	r2, r2, r5, lsl #8
	orr	r2, r2, r10
	add	r2, r2, #8388608
	bic	r2, r2, #-16777216
	str	r2, [r8, #4]!
	ldr	r2, [fp]
	ldr	r3, .L8+8
	cmp	r2, r6
	bgt	.L3
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	MULTIQ3_CONTROL_MUST
	.word	MULTIQ3_AD_MUX_EN
	.word	MULTIQ3_CONTROL
	.word	MULTIQ3_ENC_CONTROL
	.word	MULTIQ3_ENC_DATA
	.word	MULTIQ3_BP_RESET
	.word	MULTIQ3_TRSFRCNTR_OL
	.size	multiq3_encoder_insn_read, .-multiq3_encoder_insn_read
	.comm	MULTIQ3_TRSFRCNTR_OL,4,4
	.comm	MULTIQ3_ENC_DATA,4,4
	.comm	MULTIQ3_ENC_CONTROL,4,4
	.comm	MULTIQ3_CONTROL_MUST,4,4
	.comm	MULTIQ3_CONTROL,4,4
	.comm	MULTIQ3_BP_RESET,4,4
	.comm	MULTIQ3_AD_MUX_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
