	.file	"extr_synclink.c_usc_enable_loopback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usc_enable_loopback, @function
usc_enable_loopback:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, esi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR IOCR[rip]
	mov	rbx, rdi
	test	r8d, r8d
	je	.L2
	call	usc_InReg@PLT
	mov	edx, DWORD PTR BIT7[rip]
	mov	esi, DWORD PTR IOCR[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR BIT6[rip]
	or	edx, eax
	call	usc_OutReg@PLT
	mov	esi, DWORD PTR CMCR[rip]
	mov	edx, 3940
	mov	rdi, rbx
	call	usc_OutReg@PLT
	mov	ecx, DWORD PTR 24[rbx]
	test	ecx, ecx
	je	.L3
	mov	esi, DWORD PTR TC0R[rip]
	mov	rax, QWORD PTR MGSL_BUS_TYPE_PCI[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L9
	mov	eax, 14745600
.L7:
	cdq
	mov	rdi, rbx
	idiv	ecx
	lea	edx, -1[rax]
	call	usc_OutReg@PLT
.L5:
	mov	esi, DWORD PTR HCR[rip]
	mov	rdi, rbx
	call	usc_InReg@PLT
	mov	esi, DWORD PTR HCR[rip]
	mov	rdi, rbx
	mov	r8d, eax
	mov	eax, DWORD PTR BIT1[rip]
	not	eax
	and	eax, r8d
	or	eax, DWORD PTR BIT0[rip]
	mov	edx, eax
	call	usc_OutReg@PLT
	mov	esi, DWORD PTR IOCR[rip]
	mov	rdi, rbx
	call	usc_InReg@PLT
	mov	esi, DWORD PTR IOCR[rip]
	mov	rdi, rbx
	and	eax, 65528
	mov	edx, eax
	or	edx, 4
	call	usc_OutReg@PLT
	mov	DWORD PTR 8[rbx], 768
	mov	edi, 768
	mov	rsi, QWORD PTR CCAR[rip]
	add	rsi, QWORD PTR 16[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	outw@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	usc_InReg@PLT
	mov	edx, DWORD PTR BIT7[rip]
	or	edx, DWORD PTR BIT6[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR IOCR[rip]
	not	edx
	and	edx, eax
	call	usc_OutReg@PLT
	mov	DWORD PTR 8[rbx], 0
	mov	rsi, QWORD PTR CCAR[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 16[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	outw@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR TC0R[rip]
	mov	edx, 8
	mov	rdi, rbx
	call	usc_OutReg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 11059200
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	usc_enable_loopback, .-usc_enable_loopback
	.comm	TC0R,4,4
	.comm	MGSL_BUS_TYPE_PCI,8,8
	.comm	IOCR,4,4
	.comm	HCR,4,4
	.comm	CMCR,4,4
	.comm	CCAR,8,8
	.comm	BIT7,4,4
	.comm	BIT6,4,4
	.comm	BIT1,4,4
	.comm	BIT0,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_synclink.c_usc_enable_loopback.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usc_enable_loopback, %function
usc_enable_loopback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L9
	subs	r6, r1, #0
	ldr	r5, [r7]
	mov	r4, r0
	mov	r1, r5
	beq	.L2
	bl	usc_InReg
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r1, r5
	orr	r2, r3, r2
	orr	r2, r2, r0
	mov	r0, r4
	bl	usc_OutReg
	ldr	r3, .L9+12
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L9+16
	bl	usc_OutReg
	ldr	r1, [r4, #12]
	cmp	r1, #0
	beq	.L3
	ldr	r3, .L9+20
	ldr	r0, [r4]
	ldr	r2, [r3]
	ldr	r3, .L9+24
	cmp	r0, r2
	movne	r0, #14745600
	ldreq	r0, .L9+28
	ldr	r5, [r3]
	bl	__aeabi_idiv
	mov	r1, r5
	sub	r2, r0, #1
	mov	r0, r4
	bl	usc_OutReg
.L5:
	ldr	r3, .L9+32
	mov	r0, r4
	ldr	r5, [r3]
	mov	r1, r5
	bl	usc_InReg
	ldr	r3, .L9+36
	ldr	r2, .L9+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	bic	r0, r0, r3
	orr	r2, r0, r2
	mov	r1, r5
	mov	r0, r4
	bl	usc_OutReg
	ldr	r5, [r7]
	mov	r0, r4
	mov	r1, r5
	bl	usc_InReg
	ldr	r2, .L9+44
	mov	r1, r5
	and	r2, r2, r0
	orr	r2, r2, #4
	mov	r0, r4
	bl	usc_OutReg
	mov	r0, #768
	ldr	r3, .L9+48
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	str	r0, [r4, #4]
	add	r1, r1, r3
	pop	{r4, r5, r6, r7, r8, lr}
	b	outw
.L2:
	bl	usc_InReg
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r1, r5
	orr	r2, r3, r2
	bic	r2, r0, r2
	mov	r0, r4
	bl	usc_OutReg
	ldr	r3, .L9+48
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	mov	r0, r6
	str	r6, [r4, #4]
	add	r1, r1, r3
	pop	{r4, r5, r6, r7, r8, lr}
	b	outw
.L3:
	ldr	r3, .L9+24
	mov	r2, #8
	mov	r0, r4
	ldr	r1, [r3]
	bl	usc_OutReg
	b	.L5
.L10:
	.align	2
.L9:
	.word	IOCR
	.word	BIT7
	.word	BIT6
	.word	CMCR
	.word	3940
	.word	MGSL_BUS_TYPE_PCI
	.word	TC0R
	.word	11059200
	.word	HCR
	.word	BIT1
	.word	BIT0
	.word	65528
	.word	CCAR
	.size	usc_enable_loopback, .-usc_enable_loopback
	.comm	TC0R,4,4
	.comm	MGSL_BUS_TYPE_PCI,4,4
	.comm	IOCR,4,4
	.comm	HCR,4,4
	.comm	CMCR,4,4
	.comm	CCAR,4,4
	.comm	BIT7,4,4
	.comm	BIT6,4,4
	.comm	BIT1,4,4
	.comm	BIT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
