	.file	"extr_vr41xx_siu.c_siu_init_ports.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	siu_init_ports, @function
siu_init_ports:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	test	rbp, rbp
	je	.L6
	mov	eax, DWORD PTR SIU_PORTS_MAX[rip]
	mov	rbx, QWORD PTR siu_uart_ports[rip]
	test	eax, eax
	jle	.L6
	mov	r13, rdi
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, DWORD PTR PORT_UNKNOWN[rip]
	mov	DWORD PTR [rbx], eax
	je	.L3
	mov	esi, r12d
	mov	rdi, r13
	add	rbx, 48
	call	platform_get_irq@PLT
	mov	DWORD PTR -32[rbx], r12d
	mov	edx, r12d
	mov	rdi, r13
	mov	DWORD PTR -8[rbx], eax
	mov	eax, DWORD PTR SIU_BAUD_BASE[rip]
	mov	DWORD PTR -40[rbx], 16
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	sal	eax, 4
	mov	QWORD PTR -16[rbx], 0
	mov	DWORD PTR -44[rbx], eax
	mov	eax, DWORD PTR UPIO_MEM[rip]
	mov	DWORD PTR -24[rbx], eax
	mov	eax, DWORD PTR UPF_IOREMAP[rip]
	or	eax, DWORD PTR UPF_BOOT_AUTOCONF[rip]
	mov	DWORD PTR -36[rbx], eax
	call	platform_get_resource@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbx], eax
.L3:
	add	r12d, 1
	add	rbp, 4
	cmp	DWORD PTR SIU_PORTS_MAX[rip], r12d
	jg	.L4
	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
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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	siu_init_ports, .-siu_init_ports
	.comm	siu_uart_ports,8,8
	.comm	UPIO_MEM,4,4
	.comm	UPF_IOREMAP,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	SIU_PORTS_MAX,4,4
	.comm	SIU_BAUD_BASE,4,4
	.comm	PORT_UNKNOWN,4,4
	.comm	IORESOURCE_MEM,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_vr41xx_siu.c_siu_init_ports.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siu_init_ports, %function
siu_init_ports:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L6
	ldr	r3, .L10
	ldr	r1, .L10+4
	ldr	r2, [r3]
	ldr	r4, [r1]
	cmp	r2, #0
	ble	.L6
	mov	r6, r0
	mov	r7, #0
	ldr	fp, .L10+8
	ldr	r10, .L10+12
	ldr	r9, .L10+16
	ldr	r8, .L10+20
	sub	r5, r5, #4
.L4:
	ldr	r1, .L10+24
	ldr	r2, [r5, #4]!
	ldr	r1, [r1]
	str	r2, [r4]
	cmp	r2, r1
	beq	.L3
	mov	r1, r7
	mov	r0, r6
	bl	platform_get_irq
	mov	r3, #16
	mov	ip, #0
	ldr	r1, [fp]
	ldr	r2, [r9]
	ldr	lr, [r8]
	str	r0, [r4, #32]
	str	r3, [r4, #8]
	ldr	r0, [r10]
	ldr	r3, .L10+28
	orr	r2, r2, lr
	lsl	r1, r1, #4
	str	r1, [r4, #4]
	str	r2, [r4, #12]
	str	r0, [r4, #24]
	mov	r2, r7
	ldr	r1, [r3]
	str	r7, [r4, #16]
	str	ip, [r4, #28]
	mov	r0, r6
	bl	platform_get_resource
	ldr	r2, [r0]
	ldr	r3, .L10
	str	r2, [r4, #20]
	add	r4, r4, #36
.L3:
	ldr	r2, [r3]
	add	r7, r7, #1
	cmp	r2, r7
	bgt	.L4
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r7, #0
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	SIU_PORTS_MAX
	.word	siu_uart_ports
	.word	SIU_BAUD_BASE
	.word	UPIO_MEM
	.word	UPF_IOREMAP
	.word	UPF_BOOT_AUTOCONF
	.word	PORT_UNKNOWN
	.word	IORESOURCE_MEM
	.size	siu_init_ports, .-siu_init_ports
	.comm	siu_uart_ports,4,4
	.comm	UPIO_MEM,4,4
	.comm	UPF_IOREMAP,4,4
	.comm	UPF_BOOT_AUTOCONF,4,4
	.comm	SIU_PORTS_MAX,4,4
	.comm	SIU_BAUD_BASE,4,4
	.comm	PORT_UNKNOWN,4,4
	.comm	IORESOURCE_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
