	.file	"extr_mxs-auart.c_mxs_auart_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"serial%d out of range\n"
.LC1:
	.string	"Failed to initialize GPIOs.\n"
.LC2:
	.string	"Found APPUART ASM9260\n"
.LC3:
	.string	"Found APPUART %d.%d.%d\n"
	.text
	.p2align 4
	.type	mxs_auart_probe, @function
mxs_auart_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	rsi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR mxs_auart_dt_ids[rip]
	call	of_match_device@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 88
	mov	rdi, r13
	mov	r14, rax
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 56[rax], r13
	mov	rsi, rbx
	mov	rdi, rax
	mov	rbp, rax
	mov	QWORD PTR 80[rax], r13
	call	serial_mxs_probe_dt@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L4
	mov	r12, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbp], r12
.L5:
	mov	rdi, QWORD PTR auart_port[rip]
	call	ARRAY_SIZE@PLT
	cmp	rax, r12
	jbe	.L22
	test	r14, r14
	je	.L7
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 72[rbp], eax
.L7:
	mov	rsi, rbx
	mov	rdi, rbp
	call	mxs_get_clks@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	platform_get_resource@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	mov	eax, DWORD PTR [rax]
	mov	rdi, r12
	mov	DWORD PTR 52[rbp], eax
	call	resource_size@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	call	ioremap@PLT
	mov	DWORD PTR 48[rbp], eax
	test	eax, eax
	jne	.L10
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L9:
	mov	rdi, rbp
	call	is_asm9260_auart@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 4[rbp]
	call	clk_disable_unprepare@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	clk_disable_unprepare@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	jne	.L1
	mov	r12, QWORD PTR 8[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rax, mxs_auart_ops[rip]
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 40[rbp], rax
	mov	eax, DWORD PTR UPIO_MEM[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR MXS_AUART_FIFO_SIZE[rip]
	mov	DWORD PTR 28[rbp], eax
	call	clk_get_rate@PLT
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR PORT_IMX[rip]
	mov	DWORD PTR 20[rbp], eax
	call	mxs_init_regs@PLT
	mov	QWORD PTR 64[rbp], 0
	xor	esi, esi
	mov	rdi, rbx
	call	platform_get_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	DWORD PTR 16[rbp], eax
	mov	rdi, r13
	call	dev_name@PLT
	mov	edx, DWORD PTR mxs_auart_irq_handle[rip]
	mov	esi, r12d
	xor	ecx, ecx
	mov	r8d, eax
	mov	r9, rbp
	mov	rdi, r13
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rsi, rbp
	mov	rdi, rbx
	call	platform_set_drvdata@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	mxs_auart_init_gpios@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	mov	rdi, rbp
	call	mxs_auart_request_gpio_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR auart_port[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rax+rdx*8], rbp
	call	mxs_auart_reset_deassert@PLT
	lea	rdi, auart_driver[rip]
	lea	rsi, 8[rbp]
	call	uart_add_one_port@PLT
	mov	rdi, rbp
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	call	is_asm9260_auart@PLT
	test	rax, rax
	je	.L13
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_info@PLT
	jmp	.L1
.L24:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L9
.L13:
	mov	esi, DWORD PTR REG_VERSION[rip]
	mov	rdi, rbp
	call	mxs_read@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	mov	ecx, eax
	mov	edx, eax
	movzx	r8d, ax
	xor	eax, eax
	sar	ecx, 16
	shr	edx, 24
	movzx	ecx, cl
	call	dev_info@PLT
	jmp	.L1
.L25:
	call	mxs_auart_free_gpio_irq@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR auart_port[rip]
	mov	QWORD PTR [rax+rdx*8], 0
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	mxs_auart_probe, .-mxs_auart_probe
	.comm	mxs_auart_ops,4,4
	.comm	mxs_auart_irq_handle,4,4
	.comm	mxs_auart_dt_ids,4,4
	.comm	auart_port,8,8
	.comm	auart_driver,4,4
	.comm	UPIO_MEM,4,4
	.comm	REG_VERSION,4,4
	.comm	PORT_IMX,4,4
	.comm	MXS_AUART_FIFO_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_mxs-auart.c_mxs_auart_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"serial%d out of range\012\000"
	.align	2
.LC1:
	.ascii	"Failed to initialize GPIOs.\012\000"
	.align	2
.LC2:
	.ascii	"Found APPUART ASM9260\012\000"
	.align	2
.LC3:
	.ascii	"Found APPUART %d.%d.%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxs_auart_probe, %function
mxs_auart_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L27
	add	r7, r0, #4
	mov	r1, r7
	sub	sp, sp, #8
	mov	r6, r0
	ldr	r0, [r3]
	bl	of_match_device
	ldr	r2, .L27+4
	mov	r8, r0
	mov	r1, #60
	mov	r0, r7
	ldr	r2, [r2]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L22
	mov	r1, r6
	str	r7, [r4, #44]
	str	r7, [r4, #56]
	bl	serial_mxs_probe_dt
	subs	r5, r0, #0
	ble	.L4
	ldr	r5, [r6]
	str	r5, [r4, #8]
.L5:
	ldr	r9, .L27+8
	ldr	r0, [r9]
	bl	ARRAY_SIZE
	cmp	r0, r5
	bls	.L23
	cmp	r8, #0
	ldrne	r3, [r8]
	mov	r1, r6
	ldrne	r2, [r3]
	mov	r0, r4
	strne	r3, [r6, #8]
	strne	r2, [r4, #52]
	bl	mxs_get_clks
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L27+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource
	subs	r3, r0, #0
	beq	.L24
	ldr	r8, [r3]
	str	r8, [r4, #40]
	bl	resource_size
	mov	r1, r0
	mov	r0, r8
	bl	ioremap
	cmp	r0, #0
	str	r0, [r4, #36]
	bne	.L10
	ldr	r3, .L27+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L9:
	mov	r0, r4
	bl	is_asm9260_auart
	cmp	r0, #0
	beq	.L1
	ldr	r0, [r4, #4]
	bl	clk_disable_unprepare
	ldr	r0, [r4]
	bl	clk_disable_unprepare
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	bne	.L1
	ldr	r5, [r4, #8]
	b	.L5
.L22:
	ldr	r3, .L27+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	ldr	r3, .L27+20
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L9
.L23:
	mov	r0, r7
	ldr	r2, [r4, #8]
	ldr	r1, .L27+24
	bl	dev_err
	ldr	r3, .L27+28
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r2, .L27+32
	ldr	r3, .L27+36
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L27+40
	str	r1, [r4, #28]
	str	r2, [r4, #24]
	str	r3, [r4, #32]
	ldr	r0, [r4, #4]
	bl	clk_get_rate
	ldr	r3, .L27+44
	str	r0, [r4, #20]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r4, #16]
	bl	mxs_init_regs
	mov	r1, r5
	str	r5, [r4, #48]
	mov	r0, r6
	bl	platform_get_irq
	mov	r8, r5
	subs	r5, r0, #0
	blt	.L9
	ldr	r3, .L27+48
	str	r5, [r4, #12]
	mov	r0, r7
	ldr	r10, [r3]
	bl	dev_name
	mov	r1, r5
	stm	sp, {r0, r4}
	mov	r2, r10
	mov	r3, r8
	mov	r0, r7
	bl	devm_request_irq
	subs	r5, r0, #0
	bne	.L9
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r1, r7
	mov	r0, r4
	bl	mxs_auart_init_gpios
	subs	r5, r0, #0
	bne	.L25
	mov	r0, r4
	bl	mxs_auart_request_gpio_irq
	subs	r5, r0, #0
	bne	.L9
	ldr	r2, [r4, #8]
	ldr	r3, [r9]
	mov	r0, r4
	str	r4, [r3, r2, lsl #2]
	bl	mxs_auart_reset_deassert
	ldr	r0, .L27+52
	add	r1, r4, #8
	bl	uart_add_one_port
	subs	r5, r0, #0
	mov	r0, r4
	bne	.L26
	bl	is_asm9260_auart
	cmp	r0, #0
	beq	.L13
	mov	r0, r7
	ldr	r1, .L27+56
	bl	dev_info
	b	.L1
.L25:
	mov	r0, r7
	ldr	r1, .L27+60
	bl	dev_err
	b	.L9
.L13:
	ldr	r3, .L27+64
	mov	r0, r4
	ldr	r1, [r3]
	bl	mxs_read
	mov	r2, r0
	lsl	r1, r0, #16
	lsr	r1, r1, #16
	asr	r3, r0, #16
	str	r1, [sp]
	mov	r0, r7
	ldr	r1, .L27+68
	and	r3, r3, #255
	lsr	r2, r2, #24
	bl	dev_info
	b	.L1
.L26:
	bl	mxs_auart_free_gpio_irq
	ldr	r2, [r6]
	ldr	r3, [r9]
	str	r8, [r3, r2, lsl #2]
	b	.L9
.L28:
	.align	2
.L27:
	.word	mxs_auart_dt_ids
	.word	GFP_KERNEL
	.word	auart_port
	.word	IORESOURCE_MEM
	.word	ENOMEM
	.word	ENXIO
	.word	.LC0
	.word	EINVAL
	.word	UPIO_MEM
	.word	MXS_AUART_FIFO_SIZE
	.word	mxs_auart_ops
	.word	PORT_IMX
	.word	mxs_auart_irq_handle
	.word	auart_driver
	.word	.LC2
	.word	.LC1
	.word	REG_VERSION
	.word	.LC3
	.size	mxs_auart_probe, .-mxs_auart_probe
	.comm	mxs_auart_ops,4,4
	.comm	mxs_auart_irq_handle,4,4
	.comm	mxs_auart_dt_ids,4,4
	.comm	auart_port,4,4
	.comm	auart_driver,4,4
	.comm	UPIO_MEM,4,4
	.comm	REG_VERSION,4,4
	.comm	PORT_IMX,4,4
	.comm	MXS_AUART_FIFO_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
