	.file	"extr_fsi-scom.c_get_indirect_scom_form0.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_indirect_scom_form0, @function
get_indirect_scom_form0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR XSCOM_ADDR_INDIRECT_PART[rip]
	and	edx, DWORD PTR XSCOM_ADDR_DIRECT_PART[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	and	esi, ebp
	or	esi, DWORD PTR XSCOM_DATA_IND_READ[rip]
	mov	DWORD PTR 20[rsp], esi
	call	__put_scom@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L1
	mov	ebx, DWORD PTR [r14]
	and	ebx, DWORD PTR SCOM_STATUS_ANY_ERR[rip]
	jne	.L1
	mov	eax, DWORD PTR SCOM_MAX_IND_RETRIES[rip]
	test	eax, eax
	jle	.L1
	lea	r15, 20[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR SCOM_STATUS_ANY_ERR[rip], eax
	jne	.L1
	mov	eax, DWORD PTR XSCOM_DATA_IND_ERR_MASK[rip]
	mov	edx, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR XSCOM_DATA_IND_ERR_SHIFT[rip]
	and	eax, edx
	sar	eax, cl
	mov	ecx, DWORD PTR SCOM_STATUS_PIB_RESP_SHIFT[rip]
	mov	edi, eax
	sal	edi, cl
	mov	DWORD PTR [r14], edi
	mov	ecx, DWORD PTR XSCOM_DATA_IND_DATA[rip]
	and	ecx, edx
	mov	DWORD PTR 0[r13], ecx
	test	DWORD PTR XSCOM_DATA_IND_COMPLETE[rip], edx
	jne	.L1
	cmp	DWORD PTR SCOM_PIB_BLOCKED[rip], eax
	jne	.L1
	mov	edi, 1
	add	ebx, 1
	call	msleep@PLT
	cmp	DWORD PTR SCOM_MAX_IND_RETRIES[rip], ebx
	jle	.L1
.L5:
	mov	rcx, r14
	mov	edx, ebp
	mov	rsi, r15
	mov	rdi, r12
	call	__get_scom@PLT
	test	eax, eax
	je	.L11
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_indirect_scom_form0, .-get_indirect_scom_form0
	.comm	XSCOM_DATA_IND_READ,4,4
	.comm	XSCOM_DATA_IND_ERR_SHIFT,4,4
	.comm	XSCOM_DATA_IND_ERR_MASK,4,4
	.comm	XSCOM_DATA_IND_DATA,4,4
	.comm	XSCOM_DATA_IND_COMPLETE,4,4
	.comm	XSCOM_ADDR_INDIRECT_PART,4,4
	.comm	XSCOM_ADDR_DIRECT_PART,4,4
	.comm	SCOM_STATUS_PIB_RESP_SHIFT,4,4
	.comm	SCOM_STATUS_ANY_ERR,4,4
	.comm	SCOM_PIB_BLOCKED,4,4
	.comm	SCOM_MAX_IND_RETRIES,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_fsi-scom.c_get_indirect_scom_form0.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_indirect_scom_form0, %function
get_indirect_scom_form0:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r1
	mov	r6, r2
	ldr	r2, .L13
	ldr	lr, .L13+4
	ldr	r1, [r2]
	ldr	r2, .L13+8
	sub	sp, sp, #20
	ldr	lr, [lr]
	ldr	r2, [r2]
	str	ip, [sp]
	and	r1, r1, r6
	ldr	ip, .L13+12
	orr	r1, r1, lr
	and	r2, r2, r6
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r4, r3
	mov	r7, r0
	str	r1, [sp, #8]
	bl	__put_scom
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L1
	ldr	r8, .L13+16
	ldr	r5, [r4]
	ldr	r3, [r8]
	ands	r5, r5, r3
	bne	.L1
	ldr	r9, .L13+20
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L1
	ldr	fp, .L13+24
	ldr	r10, .L13+28
	b	.L5
.L11:
	ldr	r1, [r4]
	ldr	r2, [r8]
	tst	r1, r2
	bne	.L1
	ldr	r1, [sp, #8]
	ldr	r2, [fp]
	ldr	r3, .L13+32
	ldr	ip, [r10]
	ldr	r0, [r3]
	and	r2, r2, r1
	asr	r2, r2, ip
	ldr	r3, .L13+36
	lsl	r0, r2, r0
	str	r0, [r4]
	ldr	r0, [r3]
	ldr	r3, [sp]
	and	r0, r0, r1
	str	r0, [r3]
	ldr	r3, .L13+40
	ldr	r0, [r3]
	tst	r1, r0
	bne	.L1
	ldr	r3, .L13+44
	ldr	r1, [r3]
	cmp	r1, r2
	bne	.L1
	mov	r0, #1
	bl	msleep
	ldr	r2, [r9]
	add	r5, r5, #1
	cmp	r2, r5
	ble	.L1
.L5:
	mov	r3, r4
	mov	r2, r6
	mov	r0, r7
	add	r1, sp, #8
	bl	__get_scom
	cmp	r0, #0
	beq	.L11
	str	r0, [sp, #4]
.L1:
	ldr	r3, .L13+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	ldr	r0, [sp, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	XSCOM_ADDR_INDIRECT_PART
	.word	XSCOM_DATA_IND_READ
	.word	XSCOM_ADDR_DIRECT_PART
	.word	.LC0
	.word	SCOM_STATUS_ANY_ERR
	.word	SCOM_MAX_IND_RETRIES
	.word	XSCOM_DATA_IND_ERR_MASK
	.word	XSCOM_DATA_IND_ERR_SHIFT
	.word	SCOM_STATUS_PIB_RESP_SHIFT
	.word	XSCOM_DATA_IND_DATA
	.word	XSCOM_DATA_IND_COMPLETE
	.word	SCOM_PIB_BLOCKED
	.size	get_indirect_scom_form0, .-get_indirect_scom_form0
	.comm	XSCOM_DATA_IND_READ,4,4
	.comm	XSCOM_DATA_IND_ERR_SHIFT,4,4
	.comm	XSCOM_DATA_IND_ERR_MASK,4,4
	.comm	XSCOM_DATA_IND_DATA,4,4
	.comm	XSCOM_DATA_IND_COMPLETE,4,4
	.comm	XSCOM_ADDR_INDIRECT_PART,4,4
	.comm	XSCOM_ADDR_DIRECT_PART,4,4
	.comm	SCOM_STATUS_PIB_RESP_SHIFT,4,4
	.comm	SCOM_STATUS_ANY_ERR,4,4
	.comm	SCOM_PIB_BLOCKED,4,4
	.comm	SCOM_MAX_IND_RETRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
