	.file	"extr_pnpinfo.c_get_serial.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	get_serial
	.type	get_serial, @function
get_serial:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	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	ebx, 106
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	bzero@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, ebx
	sar	eax
	xor	ebx, eax
	xor	ebx, r15d
	sal	ebx, 7
	movzx	ebx, bl
	or	ebx, eax
	mov	eax, DWORD PTR [rdx]
	sar	eax
	mov	ecx, eax
	or	cl, -128
	test	r13b, r13b
	cmovne	eax, ecx
	mov	DWORD PTR [rdx], eax
.L9:
	add	r14d, 1
.L7:
	mov	edi, DWORD PTR rd_port[rip]
	lea	edi, 3[0+rdi*4]
	call	inb@PLT
	mov	edi, 250
	mov	r15d, eax
	call	DELAY@PLT
	mov	edi, DWORD PTR rd_port[rip]
	lea	edi, 3[0+rdi*4]
	call	inb@PLT
	mov	edi, 250
	cmp	eax, 170
	sete	r13b
	cmp	r15d, 85
	sete	al
	and	r13d, eax
	call	DELAY@PLT
	mov	eax, r14d
	movzx	r15d, r13b
	sar	eax, 3
	or	r12d, r15d
	cdqe
	lea	rdx, 0[rbp+rax*4]
	cmp	r14d, 63
	jbe	.L17
	mov	eax, DWORD PTR [rdx]
	sar	eax
	mov	ecx, eax
	or	cl, -128
	test	r13b, r13b
	cmovne	eax, ecx
	mov	DWORD PTR [rdx], eax
	cmp	r14d, 71
	jne	.L9
	test	r12d, r12d
	je	.L1
	xor	r12d, r12d
	cmp	DWORD PTR 32[rbp], ebx
	sete	r12b
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	get_serial, .-get_serial
	.comm	rd_port,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_pnpinfo.c_get_serial.c"
	.text
	.align	2
	.global	get_serial
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_serial, %function
get_serial:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #0
	mov	r1, #9
	mov	r8, r0
	mov	r7, r5
	bl	bzero
	mov	r6, #106
	ldr	r9, .L20
	b	.L7
.L19:
	ldr	r2, [r8, r1, lsl #2]
	orr	r6, r3, r6, asr #1
	asr	r3, r2, #1
	cmp	r4, #0
	orr	r2, r3, #128
	strne	r2, [r8, r1, lsl #2]
	streq	r3, [r8, r1, lsl #2]
.L9:
	add	r5, r5, #1
.L7:
	ldr	r0, [r9]
	lsl	r0, r0, #2
	orr	r0, r0, #3
	bl	inb
	mov	r4, r0
	mov	r0, #250
	bl	DELAY
	ldr	r0, [r9]
	lsl	r0, r0, #2
	orr	r0, r0, #3
	bl	inb
	cmp	r0, #170
	cmpeq	r4, #85
	moveq	r4, #1
	movne	r4, #0
	mov	r0, #250
	bl	DELAY
	eor	r3, r6, r6, asr #1
	eor	r3, r3, r4
	lsl	r3, r3, #7
	cmp	r5, #63
	and	r3, r3, #255
	orr	r7, r7, r4
	asr	r1, r5, #3
	bls	.L19
	ldr	r3, [r8, r1, lsl #2]
	cmp	r4, #0
	asr	r3, r3, #1
	orrne	r3, r3, #128
	cmp	r5, #71
	str	r3, [r8, r1, lsl #2]
	bne	.L9
	cmp	r7, #0
	ldrne	r7, [r8, #32]
	subne	r7, r7, r6
	clzne	r7, r7
	lsrne	r7, r7, #5
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	rd_port
	.size	get_serial, .-get_serial
	.comm	rd_port,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
