	.file	"extr_amba-pl010.c_pl010_startup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"uart-pl010"
	.text
	.p2align 4
	.type	pl010_startup, @function
pl010_startup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	clk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	clk_get_rate@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR pl010_int[rip]
	xor	edx, edx
	mov	DWORD PTR 20[rbx], eax
	mov	r8, rbx
	lea	rcx, .LC0[rip]
	call	request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	rdi, QWORD PTR UART01x_FR[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readb@PLT
	and	eax, DWORD PTR UART01x_FR_MODEM_ANY[rip]
	mov	rsi, QWORD PTR UART010_CR[rip]
	mov	edi, DWORD PTR UART01x_CR_UARTEN[rip]
	add	rsi, QWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], eax
	or	edi, DWORD PTR UART010_CR_RIE[rip]
	or	edi, DWORD PTR UART010_CR_RTIE[rip]
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	clk_disable@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pl010_startup, .-pl010_startup
	.comm	pl010_int,4,4
	.comm	UART01x_FR_MODEM_ANY,4,4
	.comm	UART01x_FR,8,8
	.comm	UART01x_CR_UARTEN,4,4
	.comm	UART010_CR_RTIE,4,4
	.comm	UART010_CR_RIE,4,4
	.comm	UART010_CR,8,8
	.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_amba-pl010.c_pl010_startup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uart-pl010\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pl010_startup, %function
pl010_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #4]
	bl	clk_enable
	subs	r4, r0, #0
	beq	.L6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r0, [r5, #4]
	bl	clk_get_rate
	ldr	r3, .L8
	str	r0, [r5, #16]
	str	r5, [sp]
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [r5, #12]
	ldr	r3, .L8+4
	bl	request_irq
	subs	r4, r0, #0
	bne	.L7
	ldr	r3, .L8+8
	ldr	r0, [r5, #8]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readb
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	ldr	r2, [r2]
	ldr	r3, .L8+20
	ldr	ip, [r1]
	and	r2, r2, r0
	ldr	r1, .L8+24
	ldr	r0, .L8+28
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r2, [r5]
	ldr	r2, [r5, #8]
	orr	r3, r3, ip
	orr	r0, r3, r0
	add	r1, r2, r1
	bl	writel
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	ldr	r0, [r5, #4]
	bl	clk_disable
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	.align	2
.L8:
	.word	pl010_int
	.word	.LC0
	.word	UART01x_FR
	.word	UART01x_FR_MODEM_ANY
	.word	UART010_CR_RIE
	.word	UART01x_CR_UARTEN
	.word	UART010_CR
	.word	UART010_CR_RTIE
	.size	pl010_startup, .-pl010_startup
	.comm	pl010_int,4,4
	.comm	UART01x_FR_MODEM_ANY,4,4
	.comm	UART01x_FR,4,4
	.comm	UART01x_CR_UARTEN,4,4
	.comm	UART010_CR_RTIE,4,4
	.comm	UART010_CR_RIE,4,4
	.comm	UART010_CR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
