	.file	"extr_8250_port.c_serial8250_set_defaults.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	serial8250_set_defaults
	.type	serial8250_set_defaults, @function
serial8250_set_defaults:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	add	rdi, 16
	mov	eax, DWORD PTR 16[rbx]
	test	DWORD PTR UPF_FIXED_TYPE[rip], eax
	je	.L3
	mov	r10d, DWORD PTR 24[rbx]
	mov	eax, DWORD PTR 20[rbx]
	test	r10d, r10d
	je	.L13
.L4:
	mov	r8d, DWORD PTR 12[rbx]
	test	r8d, r8d
	jne	.L5
	mov	rsi, QWORD PTR uart_config[rip]
	mov	edx, eax
	lea	rdx, [rdx+rdx*2]
	lea	rdx, [rsi+rdx*4]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 12[rbx], edx
.L5:
	mov	ecx, DWORD PTR 8[rbx]
	test	ecx, ecx
	jne	.L3
	mov	rdx, QWORD PTR uart_config[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*4]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[rbx], eax
.L3:
	call	set_io_from_upio@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 8[rax], 0
	jne	.L9
	mov	rdx, QWORD PTR serial8250_tx_dma[rip]
	mov	QWORD PTR 8[rax], rdx
.L9:
	cmp	QWORD PTR [rax], 0
	jne	.L1
	mov	rdx, QWORD PTR serial8250_rx_dma[rip]
	mov	QWORD PTR [rax], rdx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r9, QWORD PTR uart_config[rip]
	mov	edx, eax
	lea	rdx, [rdx+rdx*2]
	lea	rdx, [r9+rdx*4]
	mov	edx, DWORD PTR 8[rdx]
	mov	DWORD PTR 24[rbx], edx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	serial8250_set_defaults, .-serial8250_set_defaults
	.comm	uart_config,8,8
	.comm	serial8250_tx_dma,8,8
	.comm	serial8250_rx_dma,8,8
	.comm	UPF_FIXED_TYPE,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_8250_port.c_serial8250_set_defaults.c"
	.text
	.align	2
	.global	serial8250_set_defaults
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial8250_set_defaults, %function
serial8250_set_defaults:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	ldr	r2, [r0, #12]
	ldr	r3, [r3]
	push	{r4, lr}
	tst	r2, r3
	mov	r4, r0
	add	r0, r0, #12
	beq	.L3
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	cmp	r2, #0
	beq	.L13
.L4:
	ldr	r2, [r4, #8]
	cmp	r2, #0
	bne	.L5
	ldr	r1, .L14+4
	add	r2, r3, r3, lsl #1
	ldr	r1, [r1]
	add	r2, r1, r2, lsl #2
	ldr	r2, [r2, #4]
	str	r2, [r4, #8]
.L5:
	ldr	r2, [r4, #4]
	cmp	r2, #0
	ldreq	r2, .L14+4
	addeq	r3, r3, r3, lsl #1
	ldreq	r2, [r2]
	ldreq	r3, [r2, r3, lsl #2]
	streq	r3, [r4, #4]
.L3:
	bl	set_io_from_upio
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r2, [r3, #4]
	cmp	r2, #0
	ldreq	r2, .L14+8
	ldreq	r2, [r2]
	streq	r2, [r3, #4]
	ldr	r2, [r3]
	cmp	r2, #0
	ldreq	r2, .L14+12
	ldreq	r2, [r2]
	streq	r2, [r3]
	pop	{r4, pc}
.L13:
	ldr	r1, .L14+4
	add	r2, r3, r3, lsl #1
	ldr	r1, [r1]
	add	r2, r1, r2, lsl #2
	ldr	r2, [r2, #8]
	str	r2, [r4, #20]
	b	.L4
.L15:
	.align	2
.L14:
	.word	UPF_FIXED_TYPE
	.word	uart_config
	.word	serial8250_tx_dma
	.word	serial8250_rx_dma
	.size	serial8250_set_defaults, .-serial8250_set_defaults
	.comm	uart_config,4,4
	.comm	serial8250_tx_dma,4,4
	.comm	serial8250_rx_dma,4,4
	.comm	UPF_FIXED_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
