	.file	"extr_ctau.c_ctg_inx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ctg_inx
	.type	ctg_inx, @function
ctg_inx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR 8[rax]
	call	GMD0@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR 8[rax]
	call	GLDR@PLT
	cmp	QWORD PTR 8[r15], 0
	movzx	r14d, BYTE PTR GLDR_C0[rip]
	mov	r12d, eax
	je	.L3
	movzx	r14d, BYTE PTR GLDR_C1[rip]
.L3:
	mov	rax, QWORD PTR [r15]
	mov	r13d, DWORD PTR GMD1_NCS0[rip]
	or	r13d, DWORD PTR GMD1_NCS1[rip]
	mov	edi, DWORD PTR 8[rax]
	or	r13d, DWORD PTR [rax]
	call	GMD1@PLT
	mov	esi, r13d
	mov	edi, eax
	call	outb@PLT
	mov	rax, QWORD PTR [r15]
	cmp	QWORD PTR 8[r15], 0
	mov	esi, DWORD PTR GMD1_NCS1[rip]
	mov	r13d, DWORD PTR [rax]
	je	.L5
	mov	esi, DWORD PTR GMD1_NCS0[rip]
.L5:
	mov	edi, DWORD PTR 8[rax]
	or	r13d, esi
	call	GMD1@PLT
	mov	esi, r13d
	xor	r13d, r13d
	mov	edi, eax
	call	outb@PLT
	lea	esi, [rbx+rbx]
	mov	rax, QWORD PTR [r15]
	mov	edi, ebp
	movzx	ebx, BYTE PTR LX_READ[rip]
	mov	edx, DWORD PTR 4[rax]
	or	ebx, esi
	movzx	esi, bl
	xor	ebx, ebx
	call	ctg_output@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [r15]
	mov	edi, ebp
	mov	esi, DWORD PTR 4[rax]
	or	esi, DWORD PTR GMD0_SCLK[rip]
	call	outb@PLT
	mov	edi, r12d
	call	inb@PLT
	test	al, r14b
	je	.L6
	mov	eax, 1
	mov	ecx, ebx
	sal	eax, cl
	or	r13d, eax
.L6:
	mov	rax, QWORD PTR [r15]
	mov	edi, ebp
	add	ebx, 1
	mov	esi, DWORD PTR 4[rax]
	call	outb@PLT
	cmp	ebx, 8
	jne	.L7
	mov	rax, QWORD PTR [r15]
	mov	ebp, DWORD PTR GMD1_NCS0[rip]
	or	ebp, DWORD PTR GMD1_NCS1[rip]
	mov	edi, DWORD PTR 8[rax]
	or	ebp, DWORD PTR [rax]
	call	GMD1@PLT
	mov	esi, ebp
	mov	edi, eax
	call	outb@PLT
	add	rsp, 8
	.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	ctg_inx, .-ctg_inx
	.comm	LX_READ,1,1
	.comm	GMD1_NCS1,4,4
	.comm	GMD1_NCS0,4,4
	.comm	GMD0_SCLK,4,4
	.comm	GLDR_C1,1,1
	.comm	GLDR_C0,1,1
	.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_ctau.c_ctg_inx.c"
	.text
	.align	2
	.global	ctg_inx
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctg_inx, %function
ctg_inx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	ldr	r0, [r2, #8]
	mov	r6, r1
	bl	GMD0
	ldr	r2, [fp]
	mov	r5, r0
	ldr	r0, [r2, #8]
	bl	GLDR
	ldr	r2, [fp, #4]
	mov	r7, r0
	cmp	r2, #0
	ldrne	r2, .L14
	ldreq	r2, .L14+4
	ldr	r4, .L14+8
	ldrb	r9, [r2]	@ zero_extendqisi2
	ldr	r2, [fp]
	mov	r10, #1
	ldr	r0, [r2, #8]
	bl	GMD1
	ldr	r3, .L14+12
	ldr	r1, [fp]
	ldr	ip, [r3]
	ldr	r2, [r4]
	ldr	r1, [r1]
	orr	r2, r2, ip
	orr	r1, r2, r1
	bl	outb
	ldr	r2, [fp]
	ldr	r8, .L14+16
	ldr	r0, [r2, #8]
	bl	GMD1
	ldr	r1, [fp, #4]
	ldr	r2, [fp]
	cmp	r1, #0
	ldrne	r1, [r4]
	mov	r4, #0
	ldreq	r3, .L14+12
	ldr	r2, [r2]
	ldreq	r1, [r3]
	orr	r1, r2, r1
	bl	outb
	ldr	r1, .L14+20
	ldr	r2, [fp]
	ldrb	r1, [r1]	@ zero_extendqisi2
	mov	r0, r5
	orr	r1, r1, r6, lsl #1
	ldr	r2, [r2, #4]
	and	r1, r1, #255
	bl	ctg_output
	mov	r6, r4
.L7:
	ldr	r1, [fp]
	ldr	r2, [r8]
	ldr	r1, [r1, #4]
	mov	r0, r5
	orr	r1, r1, r2
	bl	outb
	mov	r0, r7
	bl	inb
	mov	r2, r0
	tst	r2, r9
	ldr	r2, [fp]
	orrne	r6, r6, r10, lsl r4
	mov	r0, r5
	ldr	r1, [r2, #4]
	add	r4, r4, #1
	andne	r6, r6, #255
	bl	outb
	cmp	r4, #8
	bne	.L7
	ldr	r2, [fp]
	ldr	r0, [r2, #8]
	bl	GMD1
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	ldr	r1, [fp]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	bl	outb
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	GLDR_C1
	.word	GLDR_C0
	.word	GMD1_NCS0
	.word	GMD1_NCS1
	.word	GMD0_SCLK
	.word	LX_READ
	.size	ctg_inx, .-ctg_inx
	.comm	LX_READ,1,1
	.comm	GMD1_NCS1,4,4
	.comm	GMD1_NCS0,4,4
	.comm	GMD0_SCLK,4,4
	.comm	GLDR_C1,1,1
	.comm	GLDR_C0,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
