	.file	"extr_siba.c_siba_get_port_rid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	siba_get_port_rid, @function
siba_get_port_rid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	call	device_get_parent@PLT
	cmp	rax, r12
	je	.L2
	mov	rdi, r12
	call	device_get_parent@PLT
	mov	r8d, r15d
	mov	ecx, r14d
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rax
	pop	rbp
	.cfi_remember_state
	.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
	jmp	BHND_BUS_GET_PORT_RID@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	device_get_ivars@PLT
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rax
	mov	rbp, rax
	call	siba_find_addrspace@PLT
	test	rax, rax
	je	.L3
.L7:
	mov	eax, DWORD PTR [rax]
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	siba_find_cfg_block@PLT
	test	rax, rax
	jne	.L7
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	siba_get_port_rid, .-siba_get_port_rid
	.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_siba.c_siba_get_port_rid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siba_get_port_rid, %function
siba_get_port_rid:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r8, [sp, #24]
	bl	device_get_parent
	cmp	r0, r5
	beq	.L2
	mov	r0, r5
	bl	device_get_parent
	mov	r3, r7
	mov	r2, r6
	mov	r1, r4
	str	r8, [sp, #24]
	pop	{r4, r5, r6, r7, r8, lr}
	b	BHND_BUS_GET_PORT_RID
.L2:
	mov	r0, r4
	bl	device_get_ivars
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	mov	r4, r0
	bl	siba_find_addrspace
	cmp	r0, #0
	beq	.L3
.L7:
	ldr	r0, [r0]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	siba_find_cfg_block
	cmp	r0, #0
	bne	.L7
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	siba_get_port_rid, .-siba_get_port_rid
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
