	.file	"extr_uart_bus_octeonusart.c_uart_octeon_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uart_octeon_probe, @function
uart_octeon_probe:
.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, 8
	.cfi_def_cfa_offset 48
	call	device_get_unit@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	device_get_softc@PLT
	lea	rdi, uart_sysdevs[rip]
	mov	rbx, rax
	lea	rax, uart_oct16550_class[rip]
	mov	QWORD PTR 16[rbx], rax
	call	SLIST_FIRST@PLT
	mov	edx, 12
	mov	rsi, rbx
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	bcopy@PLT
	mov	eax, DWORD PTR uart_bus_space_mem[rip]
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR 8[rbx], eax
	call	uart_getrange@PLT
	xor	edi, edi
	mov	r13d, eax
	call	CVMX_MIO_UARTX_RBR@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	ecx, ecx
	lea	r8, 4[rbx]
	mov	esi, eax
	mov	edx, r13d
	call	bus_space_map@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR ENXIO[rip]
	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
.L2:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, r12d
	xor	ecx, ecx
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rbx]
	mov	edi, ebp
	xor	r8d, r8d
	call	uart_bus_probe@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	uart_octeon_probe, .-uart_octeon_probe
	.comm	uart_sysdevs,4,4
	.comm	uart_oct16550_class,4,4
	.comm	uart_bus_space_mem,4,4
	.comm	ENXIO,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_bus_octeonusart.c_uart_octeon_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_octeon_probe, %function
uart_octeon_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #16
	mov	r5, r0
	bl	device_get_unit
	mov	r7, r0
	mov	r0, r5
	bl	device_get_softc
	mov	r4, r0
	ldr	r3, .L6
	ldr	r0, .L6+4
	str	r3, [r4, #12]
	bl	SLIST_FIRST
	mov	r1, r4
	mov	r2, #12
	str	r0, [r4, #16]
	bl	bcopy
	ldr	r3, .L6+8
	mov	r0, #0
	ldr	r8, [r3]
	str	r8, [r4, #8]
	bl	CVMX_MIO_UARTX_RBR
	mov	r6, r0
	ldr	r0, [r4, #12]
	bl	uart_getrange
	add	r3, r4, #4
	mov	r2, r0
	str	r3, [sp]
	mov	r1, r6
	mov	r3, #0
	mov	r0, r8
	bl	bus_space_map
	subs	r3, r0, #0
	beq	.L2
	ldr	r3, .L6+12
	ldr	r0, [r3]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, [r4]
	mov	r0, r5
	mov	r2, r3
	stm	sp, {r3, r7}
	str	r3, [sp, #8]
	bl	uart_bus_probe
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	uart_oct16550_class
	.word	uart_sysdevs
	.word	uart_bus_space_mem
	.word	ENXIO
	.size	uart_octeon_probe, .-uart_octeon_probe
	.comm	uart_sysdevs,4,4
	.comm	uart_oct16550_class,4,4
	.comm	uart_bus_space_mem,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
