	.file	"extr_pcl816.c_start_pacer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mode %d, divisor1 %d, divisor2 %d\n"
	.text
	.p2align 4
	.type	start_pacer, @function
start_pacer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR PCL816_CTRCTL[rip]
	add	rsi, QWORD PTR [rdi]
	mov	edi, 50
	call	outb@PLT
	mov	rsi, QWORD PTR PCL816_CTR0[rip]
	mov	edi, 255
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	xor	edi, edi
	mov	rsi, QWORD PTR PCL816_CTR0[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	edi, 1
	call	udelay@PLT
	mov	rsi, QWORD PTR PCL816_CTRCTL[rip]
	mov	edi, 180
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	rsi, QWORD PTR PCL816_CTRCTL[rip]
	mov	edi, 116
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	edi, 1
	call	udelay@PLT
	cmp	ebp, 1
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, r13d
	mov	edx, r12d
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	DPRINTK@PLT
	movzx	edi, r13b
	mov	rsi, QWORD PTR PCL816_CTR2[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	eax, r13d
	mov	rsi, QWORD PTR PCL816_CTR2[rip]
	add	rsi, QWORD PTR [rbx]
	movzx	edi, ah
	call	outb@PLT
	movzx	edi, r12b
	mov	rsi, QWORD PTR PCL816_CTR1[rip]
	add	rsi, QWORD PTR [rbx]
	call	outb@PLT
	mov	rsi, QWORD PTR PCL816_CTR1[rip]
	mov	eax, r12d
	add	rsi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	movzx	edi, ah
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	outb@PLT
	.cfi_endproc
.LFE0:
	.size	start_pacer, .-start_pacer
	.comm	PCL816_CTRCTL,8,8
	.comm	PCL816_CTR2,8,8
	.comm	PCL816_CTR1,8,8
	.comm	PCL816_CTR0,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_pcl816.c_start_pacer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mode %d, divisor1 %d, divisor2 %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_pacer, %function
start_pacer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r8, .L5
	ldr	r0, [r0]
	ldr	r1, [r8]
	ldr	r9, .L5+4
	add	r1, r0, r1
	mov	r0, #50
	mov	r6, r2
	mov	r7, r3
	bl	outb
	ldr	r3, [r9]
	ldr	r1, [r4]
	mov	r0, #255
	add	r1, r1, r3
	bl	outb
	ldr	r3, [r9]
	ldr	r1, [r4]
	mov	r0, #0
	add	r1, r1, r3
	bl	outb
	mov	r0, #1
	bl	udelay
	ldr	r3, [r8]
	ldr	r1, [r4]
	mov	r0, #180
	add	r1, r1, r3
	bl	outb
	ldr	r3, [r8]
	ldr	r1, [r4]
	mov	r0, #116
	add	r1, r1, r3
	bl	outb
	mov	r0, #1
	bl	udelay
	cmp	r5, #1
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r8, .L5+8
	mov	r2, r6
	mov	r1, r5
	mov	r3, r7
	ldr	r0, .L5+12
	bl	DPRINTK
	ldr	r3, [r8]
	ldr	r1, [r4]
	and	r0, r7, #255
	add	r1, r1, r3
	bl	outb
	ldr	r3, [r8]
	ldr	r1, [r4]
	ldr	r5, .L5+16
	lsr	r0, r7, #8
	add	r1, r1, r3
	and	r0, r0, #255
	bl	outb
	ldr	r3, [r5]
	ldr	r1, [r4]
	and	r0, r6, #255
	add	r1, r1, r3
	bl	outb
	ldr	r3, [r5]
	ldr	r1, [r4]
	lsr	r0, r6, #8
	add	r1, r1, r3
	and	r0, r0, #255
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	outb
.L6:
	.align	2
.L5:
	.word	PCL816_CTRCTL
	.word	PCL816_CTR0
	.word	PCL816_CTR2
	.word	.LC0
	.word	PCL816_CTR1
	.size	start_pacer, .-start_pacer
	.comm	PCL816_CTRCTL,4,4
	.comm	PCL816_CTR2,4,4
	.comm	PCL816_CTR1,4,4
	.comm	PCL816_CTR0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
