	.file	"extr_lpc32xx_hs.c_serial_hs_lpc32xx_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error: Number of possible ports exceeded (%d)!\n"
	.align 8
.LC1:
	.string	"Error getting mem resource for HS UART port %d\n"
	.text
	.p2align 4
	.type	serial_hs_lpc32xx_probe, @function
serial_hs_lpc32xx_probe:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR uarts_registered[rip]
	cmp	rdx, QWORD PTR MAX_PORTS[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	jnb	.L7
	lea	rax, 0[0+rdx*8]
	xor	esi, esi
	sub	rax, rdx
	mov	rdx, QWORD PTR lpc32xx_hs_ports[rip]
	lea	rbp, [rdx+rax*8]
	mov	edx, 56
	mov	rdi, rbp
	call	memset@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r13
	call	platform_get_resource@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 48[rbp], 0
	xor	esi, esi
	mov	rdi, r13
	mov	DWORD PTR 12[rbp], eax
	call	platform_get_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR UPIO_MEM32[rip]
	lea	rdi, 16[rbp]
	mov	DWORD PTR 4[rbp], 2
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR LPC32XX_MAIN_OSC_FREQ[rip]
	mov	QWORD PTR 32[rbp], r13
	mov	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR UPF_BOOT_AUTOCONF[rip]
	or	eax, DWORD PTR UPF_FIXED_PORT[rip]
	or	eax, DWORD PTR UPF_IOREMAP[rip]
	mov	DWORD PTR 8[rbp], eax
	lea	rax, serial_lpc32xx_pops[rip]
	mov	QWORD PTR 24[rbp], rax
	mov	rax, QWORD PTR uarts_registered[rip]
	mov	DWORD PTR 20[rbp], eax
	lea	rdx, 1[rax]
	mov	QWORD PTR uarts_registered[rip], rdx
	call	spin_lock_init@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, 1
	call	lpc32xx_loopback_set@PLT
	mov	rsi, rbp
	lea	rdi, lpc32xx_hs_reg[rip]
	call	uart_add_one_port@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12d, eax
	call	platform_set_drvdata@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	add	rdx, 1
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR uarts_registered[rip]
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	serial_hs_lpc32xx_probe, .-serial_hs_lpc32xx_probe
	.comm	uarts_registered,8,8
	.comm	serial_lpc32xx_pops,4,4
	.comm	lpc32xx_hs_reg,4,4
	.comm	lpc32xx_hs_ports,8,8
	.comm	UPIO_MEM32,4,4
	.comm	UPF_IOREMAP,4,4
	.comm	UPF_FIXED_PORT,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	MAX_PORTS,8,8
	.comm	LPC32XX_MAIN_OSC_FREQ,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENXIO,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_hs_lpc32xx_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: Number of possible ports exceeded (%d)!\012\000"
	.align	2
.LC1:
	.ascii	"Error getting mem resource for HS UART port %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	serial_hs_lpc32xx_probe, %function
serial_hs_lpc32xx_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, .L9
	ldr	r9, .L9+4
	ldr	r3, [r3]
	ldr	r2, [r9]
	cmp	r2, r3
	bcs	.L7
	mov	r7, r0
	ldr	r1, .L9+8
	add	r3, r2, r2, lsl #2
	ldr	r8, [r1]
	add	r3, r2, r3, lsl #1
	add	r5, r8, r3, lsl #2
	mov	r2, #44
	mov	r1, #0
	mov	r0, r5
	lsl	r4, r3, #2
	bl	memset
	ldr	r3, .L9+12
	mov	r2, #0
	mov	r0, r7
	ldr	r1, [r3]
	bl	platform_get_resource
	cmp	r0, #0
	beq	.L8
	mov	r1, #0
	ldr	r3, [r0]
	mov	r0, r7
	str	r1, [r5, #40]
	str	r3, [r5, #12]
	bl	platform_get_irq
	subs	r6, r0, #0
	blt	.L1
	mov	r1, #2
	ldr	r3, .L9+16
	ldr	r2, .L9+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, .L9+24
	orr	r3, r3, r2
	ldr	r2, .L9+28
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, .L9+32
	orr	r3, r3, ip
	str	r6, [r8, r4]
	ldr	r0, [r0]
	str	r3, [r5, #8]
	str	r2, [r5, #36]
	ldr	r3, [r9]
	ldr	r2, .L9+36
	str	r0, [r5, #32]
	str	r2, [r5, #24]
	str	r3, [r5, #20]
	str	r1, [r5, #4]
	add	r3, r3, #1
	str	r7, [r5, #28]
	add	r0, r5, #16
	str	r3, [r9]
	bl	spin_lock_init
	mov	r1, #1
	ldr	r0, [r5, #12]
	bl	lpc32xx_loopback_set
	mov	r1, r5
	ldr	r0, .L9+40
	bl	uart_add_one_port
	mov	r1, r5
	mov	r6, r0
	mov	r0, r7
	bl	platform_set_drvdata
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r1, .L9+44
	add	r2, r2, #1
	bl	dev_err
	ldr	r3, .L9+48
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r7
	ldr	r2, [r9]
	ldr	r1, .L9+52
	bl	dev_err
	ldr	r3, .L9+48
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	MAX_PORTS
	.word	uarts_registered
	.word	lpc32xx_hs_ports
	.word	IORESOURCE_MEM
	.word	UPF_BOOT_AUTOCONF
	.word	UPF_FIXED_PORT
	.word	UPF_IOREMAP
	.word	UPIO_MEM32
	.word	LPC32XX_MAIN_OSC_FREQ
	.word	serial_lpc32xx_pops
	.word	lpc32xx_hs_reg
	.word	.LC0
	.word	ENXIO
	.word	.LC1
	.size	serial_hs_lpc32xx_probe, .-serial_hs_lpc32xx_probe
	.comm	uarts_registered,4,4
	.comm	serial_lpc32xx_pops,4,4
	.comm	lpc32xx_hs_reg,4,4
	.comm	lpc32xx_hs_ports,4,4
	.comm	UPIO_MEM32,4,4
	.comm	UPF_IOREMAP,4,4
	.comm	UPF_FIXED_PORT,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	MAX_PORTS,4,4
	.comm	LPC32XX_MAIN_OSC_FREQ,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
