	.file	"extr_st-asc.c_asc_init_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to get Pinctrl: %d\n"
.LC1:
	.string	"default"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to look up Pinctrl state 'default': %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"no-hw-flowctrl"
	.text
	.p2align 4
	.type	asc_init_port, @function
asc_init_port:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR UPIO_MEM[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	DWORD PTR 84[rdi], eax
	mov	eax, DWORD PTR UPF_BOOT_AUTOCONF[rip]
	mov	QWORD PTR 56[rdi], rsi
	xor	esi, esi
	mov	DWORD PTR 80[rdi], eax
	lea	rax, asc_uart_ops[rip]
	mov	QWORD PTR 72[rdi], rax
	mov	eax, DWORD PTR ASC_FIFO_SIZE[rip]
	mov	DWORD PTR 64[rdi], eax
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	DWORD PTR 48[rbx], eax
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	r12, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR [r12]
	lea	rdi, 32[rbx]
	mov	DWORD PTR 36[rbx], eax
	call	spin_lock_init@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_prepare_enable@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_get_rate@PLT
	xor	edi, edi
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	sete	dil
	call	WARN_ON@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_disable_unprepare@PLT
	mov	rdi, rbp
	call	devm_pinctrl_get@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR DEFAULT[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, QWORD PTR 8[rbx]
	lea	r12, [rax+rdx*8]
	call	pinctrl_lookup_state@PLT
	mov	rdx, QWORD PTR DEFAULT[rip]
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	IS_ERR@PLT
	test	eax, eax
	mov	rax, QWORD PTR [rbx]
	jne	.L14
	mov	rdx, QWORD PTR NO_HW_FLOWCTRL[rip]
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
	lea	rbp, [rax+rdx*8]
	call	pinctrl_lookup_state@PLT
	mov	rdx, QWORD PTR NO_HW_FLOWCTRL[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	IS_ERR@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR NO_HW_FLOWCTRL[rip]
	xor	r12d, r12d
	mov	QWORD PTR [rax+rdx*8], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 40[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, QWORD PTR DEFAULT[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	PTR_ERR@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	asc_init_port, .-asc_init_port
	.comm	asc_uart_ops,4,4
	.comm	UPIO_MEM,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	NO_HW_FLOWCTRL,8,8
	.comm	IORESOURCE_MEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFAULT,8,8
	.comm	ASC_FIFO_SIZE,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_st-asc.c_asc_init_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get Pinctrl: %d\012\000"
	.align	2
.LC1:
	.ascii	"default\000"
	.align	2
.LC2:
	.ascii	"Failed to look up Pinctrl state 'default': %d\012\000"
	.align	2
.LC3:
	.ascii	"no-hw-flowctrl\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asc_init_port, %function
asc_init_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r2, .L15
	ldr	r1, .L15+4
	ldr	r3, .L15+8
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, .L15+12
	str	r0, [r4, #48]
	str	r1, [r4, #44]
	str	r2, [r4, #40]
	mov	r1, #0
	str	r3, [r4, #36]
	mov	r0, r5
	str	r5, [r4, #32]
	bl	platform_get_irq
	ldr	r3, .L15+16
	mov	r2, #0
	ldr	r1, [r3]
	str	r0, [r4, #28]
	mov	r0, r5
	bl	platform_get_resource
	mov	r7, r0
	mov	r0, r5
	mov	r1, r7
	bl	devm_ioremap_resource
	str	r0, [r4, #24]
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L12
	ldr	r3, [r7]
	add	r0, r4, #16
	str	r3, [r4, #20]
	bl	spin_lock_init
	mov	r1, r6
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #8]
	bl	IS_ERR
	bl	WARN_ON
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L15+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r0, [r4, #8]
	bl	clk_prepare_enable
	ldr	r0, [r4, #8]
	bl	clk_get_rate
	mov	r3, r0
	clz	r0, r0
	str	r3, [r4, #12]
	lsr	r0, r0, #5
	bl	WARN_ON
	ldr	r0, [r4, #8]
	bl	clk_disable_unprepare
	mov	r0, r5
	bl	devm_pinctrl_get
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	ldr	r6, .L15+24
	ldr	r1, .L15+28
	ldr	r0, [r4, #4]
	ldr	r7, [r4]
	ldr	r8, [r6]
	bl	pinctrl_lookup_state
	ldr	r2, [r6]
	ldr	r3, [r4]
	str	r0, [r7, r8, lsl #2]
	ldr	r0, [r3, r2, lsl #2]
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L14
	ldr	r5, .L15+32
	ldr	r1, .L15+36
	ldr	r0, [r4, #4]
	ldr	r6, [r4]
	ldr	r8, [r5]
	bl	pinctrl_lookup_state
	ldr	r2, [r5]
	ldr	r3, [r4]
	str	r0, [r6, r8, lsl #2]
	ldr	r0, [r3, r2, lsl #2]
	bl	IS_ERR
	subs	r6, r0, #0
	movne	r6, r7
	ldrne	r2, [r5]
	ldrne	r3, [r4]
	mov	r0, r6
	strne	r7, [r3, r2, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r4, #24]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L14:
	ldr	r2, [r6]
	ldr	r3, [r4]
	ldr	r0, [r3, r2, lsl #2]
	bl	PTR_ERR
	mov	r6, r0
	ldr	r1, .L15+40
	mov	r0, r5
	mov	r2, r6
	bl	dev_err
	b	.L1
.L13:
	ldr	r0, [r4, #4]
	bl	PTR_ERR
	mov	r6, r0
	ldr	r1, .L15+44
	mov	r0, r5
	mov	r2, r6
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	UPF_BOOT_AUTOCONF
	.word	UPIO_MEM
	.word	ASC_FIFO_SIZE
	.word	asc_uart_ops
	.word	IORESOURCE_MEM
	.word	EINVAL
	.word	DEFAULT
	.word	.LC1
	.word	NO_HW_FLOWCTRL
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.size	asc_init_port, .-asc_init_port
	.comm	asc_uart_ops,4,4
	.comm	UPIO_MEM,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	NO_HW_FLOWCTRL,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFAULT,4,4
	.comm	ASC_FIFO_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
