	.file	"extr_yam.c_yam_check_uart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	yam_check_uart, @function
yam_check_uart:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR c_uart_16450[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR c_uart_unknown[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR c_uart_16550[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR c_uart_16550A[rip]
	mov	DWORD PTR 12[rsp], eax
	call	MCR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	MCR@PLT
	mov	edi, ebx
	or	edi, 16
	mov	esi, eax
	movzx	edi, dil
	call	outb@PLT
	mov	edi, ebp
	call	MSR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	MCR@PLT
	mov	edi, 26
	mov	esi, eax
	call	outb@PLT
	mov	edi, ebp
	call	MSR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	MCR@PLT
	movzx	edi, bl
	and	r12d, -16
	mov	esi, eax
	call	outb@PLT
	mov	edi, ebp
	call	MSR@PLT
	movzx	edi, r13b
	mov	esi, eax
	call	outb@PLT
	cmp	r12b, -112
	je	.L2
	mov	r12d, DWORD PTR c_uart_unknown[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	edi, ebp
	call	RBR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	call	RBR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	call	FCR@PLT
	mov	edi, 1
	mov	esi, eax
	call	outb@PLT
	mov	edi, ebp
	call	IIR@PLT
	mov	edi, eax
	call	inb@PLT
	sar	eax, 6
	and	eax, 3
	mov	r12d, DWORD PTR [rsp+rax*4]
	cmp	DWORD PTR c_uart_16450[rip], r12d
	jne	.L1
	mov	edi, ebp
	call	SCR@PLT
	mov	edi, 90
	mov	esi, eax
	call	outb@PLT
	mov	edi, ebp
	call	SCR@PLT
	mov	edi, eax
	call	inb@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	SCR@PLT
	mov	edi, 165
	mov	esi, eax
	call	outb@PLT
	mov	edi, ebp
	call	SCR@PLT
	mov	edi, eax
	call	inb@PLT
	cmp	bl, 90
	jne	.L6
	cmp	al, -91
	je	.L1
.L6:
	mov	r12d, DWORD PTR c_uart_8250[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	yam_check_uart, .-yam_check_uart
	.comm	c_uart_unknown,4,4
	.comm	c_uart_8250,4,4
	.comm	c_uart_16550A,4,4
	.comm	c_uart_16550,4,4
	.comm	c_uart_16450,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_yam.c_yam_check_uart.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	yam_check_uart, %function
yam_check_uart:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L11
	ldr	r9, .L11+4
	ldr	r8, .L11+8
	ldr	r3, .L11+12
	ldr	ip, [r9]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	lr, .L11+16
	ldr	r1, [r8]
	sub	sp, sp, #28
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	mov	r4, r0
	str	ip, [sp, #4]
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	str	r1, [sp, #8]
	bl	MCR
	bl	inb
	mov	r6, r0
	mov	r0, r4
	bl	MCR
	mov	r1, r0
	orr	r0, r6, #16
	and	r0, r0, #255
	bl	outb
	mov	r0, r4
	bl	MSR
	bl	inb
	mov	r7, r0
	mov	r0, r4
	bl	MCR
	mov	r1, r0
	mov	r0, #26
	bl	outb
	mov	r0, r4
	bl	MSR
	bl	inb
	mov	r5, r0
	mov	r0, r4
	bl	MCR
	mov	r1, r0
	and	r0, r6, #255
	bl	outb
	mov	r0, r4
	bl	MSR
	and	r5, r5, #240
	mov	r1, r0
	and	r0, r7, #255
	bl	outb
	cmp	r5, #144
	beq	.L2
	ldr	r5, [r8]
.L1:
	ldr	r3, .L11+16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r0, r4
	bl	RBR
	bl	inb
	mov	r0, r4
	bl	RBR
	bl	inb
	mov	r0, r4
	bl	FCR
	mov	r1, r0
	mov	r0, #1
	bl	outb
	mov	r0, r4
	bl	IIR
	bl	inb
	lsr	r0, r0, #4
	add	r3, sp, #24
	and	r0, r0, #12
	add	r0, r3, r0
	ldr	r5, [r0, #-20]
	ldr	r3, [r9]
	cmp	r3, r5
	bne	.L1
	mov	r0, r4
	bl	SCR
	mov	r1, r0
	mov	r0, #90
	bl	outb
	mov	r0, r4
	bl	SCR
	bl	inb
	mov	r6, r0
	mov	r0, r4
	bl	SCR
	mov	r1, r0
	mov	r0, #165
	bl	outb
	mov	r0, r4
	bl	SCR
	bl	inb
	and	r6, r6, #255
	and	r0, r0, #255
	cmp	r0, #165
	cmpeq	r6, #90
	ldrne	r3, .L11+20
	ldrne	r5, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	c_uart_16550
	.word	c_uart_16450
	.word	c_uart_unknown
	.word	c_uart_16550A
	.word	.LC0
	.word	c_uart_8250
	.size	yam_check_uart, .-yam_check_uart
	.comm	c_uart_unknown,4,4
	.comm	c_uart_8250,4,4
	.comm	c_uart_16550A,4,4
	.comm	c_uart_16550,4,4
	.comm	c_uart_16450,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
