	.file	"extr_ehea_main.c_ehea_setup_ports.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ibm,hea-port-no"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"bad device node: eth_dn name=%s"
	.section	.rodata.str1.1
.LC2:
	.string	"creating MR failed"
.LC3:
	.string	"%s -> logical port id #%d"
	.text
	.p2align 4
	.type	ehea_setup_ports, @function
ehea_setup_ports:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rax]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbp
	mov	rdi, r14
	call	of_get_next_child@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, rbp
	call	of_get_property@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L13
	mov	rdi, r12
	call	ehea_add_adapter_mr@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR [r12]
	movsx	rcx, r13d
	mov	esi, DWORD PTR [rbx]
	mov	rdx, rbp
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rcx
	lea	r8, [rax+rcx*8]
	mov	QWORD PTR [rsp], r8
	call	ehea_setup_single_port@PLT
	mov	r8, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR [r8], rax
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax+rcx*8]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, .LC3[rip]
	mov	esi, DWORD PTR [rax]
	call	ehea_info@PLT
.L8:
	add	r13d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r12
	call	ehea_remove_adapter_mr@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	ehea_error@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	ehea_error@PLT
	mov	rdi, rbp
	call	of_node_put@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ehea_setup_ports, .-ehea_setup_ports
	.comm	EIO,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_ehea_main.c_ehea_setup_ports.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ibm,hea-port-no\000"
	.align	2
.LC1:
	.ascii	"bad device node: eth_dn name=%s\000"
	.align	2
.LC2:
	.ascii	"creating MR failed\000"
	.align	2
.LC3:
	.ascii	"%s -> logical port id #%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_setup_ports, %function
ehea_setup_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}
	mov	r6, #0
	mov	r5, r0
	mov	r4, r6
	ldr	r3, [r0, #4]
	ldr	r8, .L15
	ldr	r7, [r3]
	ldr	r9, .L15+4
.L2:
	mov	r1, r4
	mov	r0, r7
	bl	of_get_next_child
	subs	r4, r0, #0
	beq	.L12
	mov	r2, #0
	mov	r1, r8
	bl	of_get_property
	subs	fp, r0, #0
	beq	.L13
	mov	r0, r5
	bl	ehea_add_adapter_mr
	cmp	r0, #0
	bne	.L14
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [fp]
	ldr	r10, [r5]
	bl	ehea_setup_single_port
	ldr	r2, [r5]
	str	r0, [r10, r6, lsl #2]
	ldr	r3, [r2, r6, lsl #2]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r3]
	mov	r0, r9
	ldr	r2, [fp]
	ldr	r1, [r3]
	bl	ehea_info
.L8:
	add	r6, r6, #1
	b	.L2
.L7:
	mov	r0, r5
	bl	ehea_remove_adapter_mr
	b	.L8
.L13:
	ldr	r1, [r4]
	ldr	r0, .L15+8
	bl	ehea_error
	b	.L2
.L12:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r0, .L15+12
	bl	ehea_error
	mov	r0, r4
	bl	of_node_put
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	EIO
	.size	ehea_setup_ports, .-ehea_setup_ports
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
