	.file	"extr_uart_dev_ns8250.c_ns8250_bus_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"8250 or 16450 or compatible"
.LC1:
	.string	"16550 or compatible"
.LC2:
	.string	"16650 or compatible"
.LC3:
	.string	"16750 or compatible"
.LC4:
	.string	"16950 or compatible"
.LC5:
	.string	"16x50 with 256 byte FIFO"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"Non-standard ns8250 class UART with FIFOs"
	.text
	.p2align 4
	.globl	ns8250_bus_probe
	.type	ns8250_bus_probe, @function
ns8250_bus_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	lea	r12, 32[rdi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	mov	rdi, r12
	call	ns8250_probe@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR MCR_IE[rip]
	cmp	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 4[rsp], eax
	je	.L31
	mov	eax, DWORD PTR 4[rsp]
	or	eax, DWORD PTR MCR_DTR[rip]
	or	eax, DWORD PTR MCR_RTS[rip]
	mov	DWORD PTR 4[rsp], eax
.L4:
	mov	esi, DWORD PTR UART_DRAIN_TRANSMITTER[rip]
	mov	rdi, r12
	call	ns8250_drain@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L32
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	esi, DWORD PTR REG_MCR[rip]
	mov	edx, DWORD PTR MCR_LOOPBACK[rip]
	mov	rdi, r12
	or	edx, DWORD PTR MCR_IE[rip]
	or	edx, DWORD PTR MCR_DTR[rip]
	or	edx, DWORD PTR MCR_RTS[rip]
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	esi, DWORD PTR REG_FCR[rip]
	mov	edx, DWORD PTR FCR_ENABLE[rip]
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	esi, DWORD PTR REG_IIR[rip]
	mov	rdi, r12
	call	uart_getreg@PLT
	test	DWORD PTR IIR_FIFO_MASK[rip], eax
	je	.L33
	mov	esi, DWORD PTR REG_FCR[rip]
	mov	edx, DWORD PTR FCR_ENABLE[rip]
	mov	rdi, r12
	xor	r14d, r14d
	or	edx, DWORD PTR FCR_XMT_RST[rip]
	or	edx, DWORD PTR FCR_RCV_RST[rip]
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	rdi, r12
	call	ns8250_delay@PLT
	mov	esi, DWORD PTR UART_DRAIN_RECEIVER[rip]
	mov	rdi, r12
	or	esi, DWORD PTR UART_DRAIN_TRANSMITTER[rip]
	mov	r13d, eax
	call	ns8250_drain@PLT
	test	eax, eax
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR REG_DATA[rip]
	xor	edx, edx
	mov	rdi, r12
	xor	ebx, ebx
	mov	ebp, 30
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	DWORD PTR [rsp], r14d
	add	r14d, 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	sub	ebp, 1
	je	.L34
	mov	edi, r13d
	call	DELAY@PLT
.L8:
	mov	esi, DWORD PTR REG_LSR[rip]
	mov	rdi, r12
	call	uart_getreg@PLT
	or	ebx, eax
	test	DWORD PTR LSR_TEMT[rip], ebx
	je	.L35
	test	DWORD PTR LSR_OE[rip], ebx
	jne	.L36
	cmp	r14d, 260
	jne	.L6
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR REG_MCR[rip]
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	esi, DWORD PTR UART_FLUSH_TRANSMITTER[rip]
	mov	rdi, r12
	or	esi, DWORD PTR UART_FLUSH_RECEIVER[rip]
	call	ns8250_flush@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 16[rax]
	mov	eax, 259
.L17:
	sub	eax, 224
	cmp	eax, 32
	ja	.L18
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC5[rip]
	mov	DWORD PTR [rax], 256
	call	device_set_desc@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L34:
	mov	esi, DWORD PTR REG_IER[rip]
	mov	rdi, r12
	call	uart_getreg@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR REG_IER[rip]
	mov	rdi, r12
	and	eax, DWORD PTR [rcx]
	mov	edx, eax
	call	uart_setreg@PLT
.L29:
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR REG_MCR[rip]
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	esi, DWORD PTR REG_FCR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 16[rax]
.L18:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC6[rip]
	mov	DWORD PTR [rax], 16
	call	device_set_desc@PLT
.L14:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rax], 16
	jmp	.L1
.L31:
	mov	r8d, DWORD PTR UART_PARITY_NONE[rip]
	mov	ecx, 1
	mov	edx, 8
	mov	rdi, r12
	mov	esi, 115200
	call	ns8250_init@PLT
	jmp	.L4
.L33:
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR REG_MCR[rip]
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	rax, QWORD PTR 8[rsp]
	movabs	rcx, 4294967297
	lea	rsi, .LC0[rip]
	mov	QWORD PTR [rax], rcx
	mov	edi, DWORD PTR 16[rax]
	call	device_set_desc@PLT
	jmp	.L1
.L36:
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR REG_MCR[rip]
	mov	rdi, r12
	call	uart_setreg@PLT
	mov	esi, DWORD PTR UART_FLUSH_RECEIVER[rip]
	mov	rdi, r12
	or	esi, DWORD PTR UART_FLUSH_TRANSMITTER[rip]
	call	ns8250_flush@PLT
	mov	ecx, DWORD PTR [rsp]
	lea	edx, -14[rcx]
	mov	eax, ecx
	cmp	edx, 2
	ja	.L13
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	DWORD PTR [rax], 16
	mov	edi, DWORD PTR 16[rax]
	call	device_set_desc@PLT
	jmp	.L14
.L13:
	mov	ecx, DWORD PTR [rsp]
	lea	edx, -28[rcx]
	cmp	edx, 4
	ja	.L15
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	mov	DWORD PTR [rax], 32
	mov	edi, DWORD PTR 16[rax]
	call	device_set_desc@PLT
	jmp	.L14
.L15:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 16[rcx]
	mov	ecx, DWORD PTR [rsp]
	lea	edx, -56[rcx]
	cmp	edx, 8
	jbe	.L37
	mov	edx, DWORD PTR [rsp]
	sub	edx, 112
	cmp	edx, 16
	ja	.L17
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC4[rip]
	mov	DWORD PTR [rax], 128
	call	device_set_desc@PLT
	jmp	.L14
.L37:
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC3[rip]
	mov	DWORD PTR [rax], 64
	call	device_set_desc@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	ns8250_bus_probe, .-ns8250_bus_probe
	.comm	UART_PARITY_NONE,4,4
	.comm	UART_FLUSH_TRANSMITTER,4,4
	.comm	UART_FLUSH_RECEIVER,4,4
	.comm	UART_DRAIN_TRANSMITTER,4,4
	.comm	UART_DRAIN_RECEIVER,4,4
	.comm	REG_MCR,4,4
	.comm	REG_LSR,4,4
	.comm	REG_IIR,4,4
	.comm	REG_IER,4,4
	.comm	REG_FCR,4,4
	.comm	REG_DATA,4,4
	.comm	MCR_RTS,4,4
	.comm	MCR_LOOPBACK,4,4
	.comm	MCR_IE,4,4
	.comm	MCR_DTR,4,4
	.comm	LSR_TEMT,4,4
	.comm	LSR_OE,4,4
	.comm	IIR_FIFO_MASK,4,4
	.comm	FCR_XMT_RST,4,4
	.comm	FCR_UART_ON,4,4
	.comm	FCR_RCV_RST,4,4
	.comm	FCR_ENABLE,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_uart_dev_ns8250.c_ns8250_bus_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"8250 or 16450 or compatible\000"
	.align	2
.LC1:
	.ascii	"16550 or compatible\000"
	.align	2
.LC2:
	.ascii	"16650 or compatible\000"
	.align	2
.LC3:
	.ascii	"16750 or compatible\000"
	.align	2
.LC4:
	.ascii	"16950 or compatible\000"
	.align	2
.LC5:
	.ascii	"16x50 with 256 byte FIFO\000"
	.align	2
.LC6:
	.ascii	"Non-standard ns8250 class UART with FIFOs\000"
	.text
	.align	2
	.global	ns8250_bus_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns8250_bus_probe, %function
ns8250_bus_probe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r6, r0, #24
	sub	sp, sp, #28
	mov	fp, r0
	mov	r0, r6
	bl	ns8250_probe
	subs	r3, r0, #0
	str	r3, [sp, #12]
	bne	.L1
	ldr	r3, [fp, #20]
	ldr	r4, .L38
	cmp	r3, #0
	ldr	r3, [r4]
	str	r3, [sp, #16]
	beq	.L30
	ldr	r3, .L38+4
	ldr	r2, .L38+8
	ldr	r1, [sp, #16]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r1, r3
	orr	r3, r3, r2
	str	r3, [sp, #16]
.L4:
	ldr	r5, .L38+12
	mov	r0, r6
	ldr	r1, [r5]
	bl	ns8250_drain
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L31
.L1:
	ldr	r0, [sp, #12]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r3, .L38+16
	ldr	r1, .L38+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r2, .L38+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	orr	r3, r3, r1
	orr	r2, r3, r2
	ldr	r3, .L38+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	ldr	r4, .L38+24
	ldr	r3, .L38+28
	ldr	r2, [r4]
	ldr	r1, [r3]
	mov	r0, r6
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	ldr	r3, .L38+32
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_getreg
	ldr	r3, .L38+36
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L32
	ldr	r1, .L38+40
	ldr	r2, .L38+44
	ldr	r1, [r1]
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r2, r3, r2
	ldr	r3, .L38+28
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	mov	r0, r6
	bl	ns8250_delay
	ldr	r2, .L38+48
	ldr	r3, [r5]
	ldr	r1, [r2]
	mov	r9, r0
	orr	r1, r1, r3
	mov	r0, r6
	bl	ns8250_drain
	cmp	r0, #0
	bne	.L33
	ldr	r10, [sp, #12]
	ldr	r8, .L38+52
	ldr	r7, .L38+56
	str	fp, [sp, #20]
.L6:
	ldr	r3, .L38+60
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	uart_setreg
	mov	r0, r6
	mov	fp, r10
	bl	uart_barrier
	mov	r4, #0
	mov	r5, #30
	add	r10, r10, #1
	b	.L8
.L35:
	subs	r5, r5, #1
	beq	.L34
	mov	r0, r9
	bl	DELAY
.L8:
	mov	r0, r6
	ldr	r1, [r8]
	bl	uart_getreg
	ldr	r3, [r7]
	orr	r4, r4, r0
	tst	r4, r3
	beq	.L35
	ldr	r3, .L38+64
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L36
	cmp	r10, #260
	bne	.L6
	ldr	r3, .L38+20
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	fp, [sp, #20]
	bl	uart_setreg
	ldr	r2, .L38+68
	ldr	r3, .L38+72
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r1, r1, r3
	bl	ns8250_flush
	ldr	r0, [fp, #16]
	ldr	r3, .L38+76
.L17:
	sub	r3, r3, #224
	cmp	r3, #32
	bhi	.L18
	mov	r3, #256
	ldr	r1, .L38+80
	str	r3, [fp]
	bl	device_set_desc
	b	.L14
.L34:
	ldr	r4, .L38+84
	mov	r0, r6
	ldr	r1, [r4]
	ldr	fp, [sp, #20]
	bl	uart_getreg
	ldr	r2, [fp]
	ldr	r1, [r4]
	and	r2, r2, r0
	mov	r0, r6
	bl	uart_setreg
	ldr	r3, .L38+20
	ldr	r2, [sp, #16]
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_setreg
	mov	r2, r5
.L28:
	ldr	r3, .L38+28
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	ldr	r0, [fp, #16]
.L18:
	mov	r3, #16
	ldr	r1, .L38+88
	str	r3, [fp]
	bl	device_set_desc
.L14:
	mov	r3, #16
	ldr	r0, [sp, #12]
	str	r3, [fp, #4]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	ldr	r2, .L38+92
	mov	r3, #1
	ldr	r1, [r2]
	mov	r0, r6
	str	r1, [sp]
	mov	r2, #8
	ldr	r1, .L38+96
	bl	ns8250_init
	b	.L4
.L32:
	ldr	r3, .L38+20
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	mov	r0, r6
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	mov	r3, #1
	ldr	r0, [fp, #16]
	ldr	r1, .L38+100
	str	r3, [fp, #4]
	str	r3, [fp]
	bl	device_set_desc
	ldr	r0, [sp, #12]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	mov	r4, fp
	ldr	r3, .L38+20
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	fp, [sp, #20]
	bl	uart_setreg
	ldr	r2, .L38+72
	ldr	r3, .L38+68
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r1, r1, r3
	bl	ns8250_flush
	sub	r3, r4, #14
	cmp	r3, #2
	mov	r3, r4
	bhi	.L13
	mov	r3, #16
	ldr	r1, .L38+104
	ldr	r0, [fp, #16]
	str	r3, [fp]
	bl	device_set_desc
	b	.L14
.L33:
	ldr	r3, .L38+20
	ldr	r2, [sp, #16]
	mov	r0, r6
	ldr	r1, [r3]
	bl	uart_setreg
	ldr	r2, [sp, #12]
	b	.L28
.L13:
	sub	r2, r4, #28
	cmp	r2, #4
	bhi	.L15
	mov	r3, #32
	ldr	r1, .L38+108
	ldr	r0, [fp, #16]
	str	r3, [fp]
	bl	device_set_desc
	b	.L14
.L15:
	sub	r2, r4, #56
	cmp	r2, #8
	ldr	r0, [fp, #16]
	bls	.L37
	sub	r2, r4, #112
	cmp	r2, #16
	bhi	.L17
	mov	r3, #128
	ldr	r1, .L38+112
	str	r3, [fp]
	bl	device_set_desc
	b	.L14
.L37:
	mov	r3, #64
	ldr	r1, .L38+116
	str	r3, [fp]
	bl	device_set_desc
	b	.L14
.L39:
	.align	2
.L38:
	.word	MCR_IE
	.word	MCR_DTR
	.word	MCR_RTS
	.word	UART_DRAIN_TRANSMITTER
	.word	MCR_LOOPBACK
	.word	REG_MCR
	.word	FCR_ENABLE
	.word	REG_FCR
	.word	REG_IIR
	.word	IIR_FIFO_MASK
	.word	FCR_XMT_RST
	.word	FCR_RCV_RST
	.word	UART_DRAIN_RECEIVER
	.word	REG_LSR
	.word	LSR_TEMT
	.word	REG_DATA
	.word	LSR_OE
	.word	UART_FLUSH_TRANSMITTER
	.word	UART_FLUSH_RECEIVER
	.word	259
	.word	.LC5
	.word	REG_IER
	.word	.LC6
	.word	UART_PARITY_NONE
	.word	115200
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	ns8250_bus_probe, .-ns8250_bus_probe
	.comm	UART_PARITY_NONE,4,4
	.comm	UART_FLUSH_TRANSMITTER,4,4
	.comm	UART_FLUSH_RECEIVER,4,4
	.comm	UART_DRAIN_TRANSMITTER,4,4
	.comm	UART_DRAIN_RECEIVER,4,4
	.comm	REG_MCR,4,4
	.comm	REG_LSR,4,4
	.comm	REG_IIR,4,4
	.comm	REG_IER,4,4
	.comm	REG_FCR,4,4
	.comm	REG_DATA,4,4
	.comm	MCR_RTS,4,4
	.comm	MCR_LOOPBACK,4,4
	.comm	MCR_IE,4,4
	.comm	MCR_DTR,4,4
	.comm	LSR_TEMT,4,4
	.comm	LSR_OE,4,4
	.comm	IIR_FIFO_MASK,4,4
	.comm	FCR_XMT_RST,4,4
	.comm	FCR_UART_ON,4,4
	.comm	FCR_RCV_RST,4,4
	.comm	FCR_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
