	.file	"extr_lpc32xx_hs.c_serial_lpc32xx_startup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	serial_lpc32xx_startup, @function
serial_lpc32xx_startup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 8[rdi]
	mov	rsi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	mov	rdi, rbx
	call	__serial_uart_flush@PLT
	mov	edi, DWORD PTR [rbx]
	call	LPC32XX_HSUART_IIR@PLT
	mov	edi, DWORD PTR LPC32XX_HSU_TX_INT[rip]
	or	edi, DWORD PTR LPC32XX_HSU_FE_INT[rip]
	mov	esi, eax
	or	edi, DWORD PTR LPC32XX_HSU_BRK_INT[rip]
	or	edi, DWORD PTR LPC32XX_HSU_RX_OE_INT[rip]
	call	writel@PLT
	mov	edi, DWORD PTR [rbx]
	call	LPC32XX_HSUART_RATE@PLT
	mov	edi, 255
	mov	esi, eax
	call	writel@PLT
	mov	edi, 20
	mov	ebp, DWORD PTR LPC32XX_HSU_TX_TL8B[rip]
	or	ebp, DWORD PTR LPC32XX_HSU_RX_TL32B[rip]
	call	LPC32XX_HSU_OFFSET@PLT
	mov	edi, DWORD PTR [rbx]
	or	ebp, DWORD PTR LPC32XX_HSU_TMO_INACT_4B[rip]
	or	ebp, eax
	call	LPC32XX_HSUART_CTRL@PLT
	mov	edi, ebp
	mov	esi, eax
	call	writel@PLT
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	lpc32xx_loopback_set@PLT
	mov	rdi, r12
	mov	rsi, r13
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR MODNAME[rip]
	xor	edx, edx
	mov	esi, DWORD PTR serial_lpc32xx_interrupt[rip]
	mov	r8, rbx
	call	request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	add	rsp, 8
	.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
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	LPC32XX_HSUART_CTRL@PLT
	mov	edi, DWORD PTR LPC32XX_HSU_RX_INT_EN[rip]
	or	edi, DWORD PTR LPC32XX_HSU_ERR_INT_EN[rip]
	or	edi, ebp
	mov	esi, eax
	call	writel@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	serial_lpc32xx_startup, .-serial_lpc32xx_startup
	.comm	serial_lpc32xx_interrupt,4,4
	.comm	MODNAME,4,4
	.comm	LPC32XX_HSU_TX_TL8B,4,4
	.comm	LPC32XX_HSU_TX_INT,4,4
	.comm	LPC32XX_HSU_TMO_INACT_4B,4,4
	.comm	LPC32XX_HSU_RX_TL32B,4,4
	.comm	LPC32XX_HSU_RX_OE_INT,4,4
	.comm	LPC32XX_HSU_RX_INT_EN,4,4
	.comm	LPC32XX_HSU_FE_INT,4,4
	.comm	LPC32XX_HSU_ERR_INT_EN,4,4
	.comm	LPC32XX_HSU_BRK_INT,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_lpc32xx_hs.c_serial_lpc32xx_startup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial_lpc32xx_startup, %function
serial_lpc32xx_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, #0
	mov	r4, r0
	add	r7, r0, #8
	sub	sp, sp, #8
	mov	r1, r8
	mov	r0, r7
	bl	spin_lock_irqsave
	mov	r0, r4
	bl	__serial_uart_flush
	ldr	r1, .L6
	ldr	r3, .L6+4
	ldr	r2, .L6+8
	ldr	r5, [r1]
	ldr	r1, [r3]
	ldr	r3, .L6+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r5, r5, r1
	orr	r5, r5, r2
	ldr	r0, [r4]
	orr	r5, r5, r3
	bl	LPC32XX_HSUART_IIR
	mov	r1, r0
	mov	r0, r5
	bl	writel
	ldr	r0, [r4]
	bl	LPC32XX_HSUART_RATE
	mov	r1, r0
	mov	r0, #255
	bl	writel
	ldr	r2, .L6+16
	ldr	r3, .L6+20
	mov	r0, #20
	ldr	r5, [r3]
	ldr	r6, [r2]
	bl	LPC32XX_HSU_OFFSET
	mov	r3, r0
	ldr	r2, .L6+24
	orr	r6, r6, r5
	ldr	r5, [r2]
	ldr	r0, [r4]
	orr	r5, r6, r5
	orr	r5, r5, r3
	bl	LPC32XX_HSUART_CTRL
	mov	r1, r0
	mov	r0, r5
	bl	writel
	mov	r1, r8
	ldr	r0, [r4, #12]
	bl	lpc32xx_loopback_set
	mov	r1, r8
	mov	r0, r7
	bl	spin_unlock_irqrestore
	ldr	r2, .L6+28
	ldr	r3, .L6+32
	str	r4, [sp]
	ldr	r1, [r2]
	ldr	r0, [r4, #4]
	mov	r2, r8
	ldr	r3, [r3]
	bl	request_irq
	subs	r6, r0, #0
	beq	.L5
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L6+36
	ldr	r2, .L6+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4]
	orr	r3, r3, r2
	orr	r5, r3, r5
	bl	LPC32XX_HSUART_CTRL
	mov	r1, r0
	mov	r0, r5
	bl	writel
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	LPC32XX_HSU_TX_INT
	.word	LPC32XX_HSU_FE_INT
	.word	LPC32XX_HSU_BRK_INT
	.word	LPC32XX_HSU_RX_OE_INT
	.word	LPC32XX_HSU_TX_TL8B
	.word	LPC32XX_HSU_RX_TL32B
	.word	LPC32XX_HSU_TMO_INACT_4B
	.word	serial_lpc32xx_interrupt
	.word	MODNAME
	.word	LPC32XX_HSU_RX_INT_EN
	.word	LPC32XX_HSU_ERR_INT_EN
	.size	serial_lpc32xx_startup, .-serial_lpc32xx_startup
	.comm	serial_lpc32xx_interrupt,4,4
	.comm	MODNAME,4,4
	.comm	LPC32XX_HSU_TX_TL8B,4,4
	.comm	LPC32XX_HSU_TX_INT,4,4
	.comm	LPC32XX_HSU_TMO_INACT_4B,4,4
	.comm	LPC32XX_HSU_RX_TL32B,4,4
	.comm	LPC32XX_HSU_RX_OE_INT,4,4
	.comm	LPC32XX_HSU_RX_INT_EN,4,4
	.comm	LPC32XX_HSU_FE_INT,4,4
	.comm	LPC32XX_HSU_ERR_INT_EN,4,4
	.comm	LPC32XX_HSU_BRK_INT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
