	.file	"extr_fm_ncsw.c_FmResumeStalledPort.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IPC reply length mismatch"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Either IPC or 'baseAddress' is required!"
	.align 8
.LC2:
	.string	"Not available for this FM revision!"
	.section	.rodata.str1.1
.LC3:
	.string	"Can't get port status"
	.text
	.p2align 4
	.globl	FmResumeStalledPort
	.type	FmResumeStalledPort, @function
FmResumeStalledPort:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	mov	r13, QWORD PTR 32[rdi]
	mov	rcx, QWORD PTR NCSW_MASTER_ID[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 16[rdi]
	cmp	QWORD PTR [rdi], rcx
	je	.L2
	test	eax, eax
	je	.L18
.L3:
	mov	rax, QWORD PTR 8[rbp]
	cmp	DWORD PTR [rax], 5
	jg	.L19
.L8:
	lea	rdx, 48[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	FmIsPortStalled@PLT
	test	rax, rax
	jne	.L20
.L9:
	mov	eax, DWORD PTR 48[rsp]
	test	eax, eax
	jne	.L10
.L16:
	mov	rax, QWORD PTR E_OK[rip]
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, r13
	call	fman_resume_stalled_port@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 24[rdi]
	cmp	QWORD PTR [rax], 0
	jne	.L22
.L4:
	mov	rsi, QWORD PTR E_NOT_SUPPORTED[rip]
	mov	edi, DWORD PTR MINOR[rip]
	lea	rdx, .LC1[rip]
	call	RETURN_ERROR@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	DWORD PTR [rax], 5
	jle	.L8
.L19:
	mov	rsi, QWORD PTR E_NOT_AVAILABLE[rip]
	mov	edi, DWORD PTR MINOR[rip]
	lea	rdx, .LC2[rip]
	call	RETURN_ERROR@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	test	eax, eax
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, QWORD PTR E_INVALID_STATE[rip]
	mov	edi, DWORD PTR MAJOR[rip]
	lea	rdx, .LC3[rip]
	call	RETURN_ERROR@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	lea	r13, 16[rsp]
	xor	esi, esi
	lea	r14, 48[rsp]
	mov	edx, 24
	mov	rdi, r13
	call	memset@PLT
	xor	esi, esi
	mov	edx, 24
	mov	rdi, r14
	call	memset@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	xor	r9d, r9d
	mov	rcx, r14
	mov	eax, DWORD PTR FM_RESUME_STALLED_PORT[rip]
	mov	edx, 8
	mov	rsi, r13
	mov	DWORD PTR 40[rsp], eax
	mov	rax, QWORD PTR 32[rsp]
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 24[rbp]
	mov	DWORD PTR 20[rsp], 4
	push	0
	.cfi_def_cfa_offset 144
	mov	rdi, QWORD PTR [rax]
	lea	r8, 28[rsp]
	call	XX_IpcSendMessage@PLT
	cmp	QWORD PTR E_OK[rip], rax
	pop	rdx
	.cfi_def_cfa_offset 136
	mov	rsi, rax
	pop	rcx
	.cfi_def_cfa_offset 128
	jne	.L23
.L5:
	cmp	DWORD PTR 12[rsp], 4
	jne	.L24
.L6:
	movsx	rax, DWORD PTR 48[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR E_INVALID_VALUE[rip]
	mov	edi, DWORD PTR MAJOR[rip]
	lea	rdx, .LC0[rip]
	call	RETURN_ERROR@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, QWORD PTR NO_MSG[rip]
	mov	edi, DWORD PTR MINOR[rip]
	call	RETURN_ERROR@PLT
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	FmResumeStalledPort, .-FmResumeStalledPort
	.comm	NO_MSG,8,8
	.comm	NCSW_MASTER_ID,8,8
	.comm	MINOR,4,4
	.comm	MAJOR,4,4
	.comm	FM_RESUME_STALLED_PORT,4,4
	.comm	E_OK,8,8
	.comm	E_NOT_SUPPORTED,8,8
	.comm	E_NOT_AVAILABLE,8,8
	.comm	E_INVALID_VALUE,8,8
	.comm	E_INVALID_STATE,8,8
	.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_fm_ncsw.c_FmResumeStalledPort.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Either IPC or 'baseAddress' is required!\000"
	.align	2
.LC1:
	.ascii	"Not available for this FM revision!\000"
	.align	2
.LC2:
	.ascii	"Can't get port status\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FmResumeStalledPort
	.syntax unified
	.arm
	.fpu softvfp
	.type	FmResumeStalledPort, %function
FmResumeStalledPort:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L24
	ldr	r2, [r0]
	ldr	r3, [r3]
	sub	sp, sp, #8
	cmp	r2, r3
	ldr	r3, .L24+4
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r1
	ldr	r6, [r0, #16]
	ldr	r3, [r0, #8]
	beq	.L2
	cmp	r3, #0
	beq	.L19
.L3:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #5
	bgt	.L20
.L5:
	mov	r0, r4
	mov	r2, sp
	mov	r1, r5
	bl	FmIsPortStalled
	cmp	r0, #0
	bne	.L21
.L6:
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L7
.L17:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r1, r5
	mov	r0, r6
	bl	fman_resume_stalled_port
	b	.L17
.L19:
	ldr	r2, [r0, #12]
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L23
.L4:
	ldr	r3, .L24+12
	ldr	r2, .L24+16
	ldr	r0, [r3]
	ldr	r1, [r2]
	ldr	r2, .L24+20
	bl	RETURN_ERROR
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #5
	ble	.L5
.L20:
	ldr	r2, .L24+24
	ldr	r3, .L24+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r2, .L24+28
	bl	RETURN_ERROR
	b	.L5
.L2:
	cmp	r3, #0
	bne	.L3
	b	.L4
.L21:
	ldr	r2, .L24+32
	ldr	r3, .L24+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r2, .L24+40
	bl	RETURN_ERROR
	b	.L6
.L23:
	str	r3, [r3]
	.inst	0xe7f000f0
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	NCSW_MASTER_ID
	.word	.LC3
	.word	E_OK
	.word	MINOR
	.word	E_NOT_SUPPORTED
	.word	.LC0
	.word	E_NOT_AVAILABLE
	.word	.LC1
	.word	E_INVALID_STATE
	.word	MAJOR
	.word	.LC2
	.size	FmResumeStalledPort, .-FmResumeStalledPort
	.comm	NO_MSG,4,4
	.comm	NCSW_MASTER_ID,4,4
	.comm	MINOR,4,4
	.comm	MAJOR,4,4
	.comm	FM_RESUME_STALLED_PORT,4,4
	.comm	E_OK,4,4
	.comm	E_NOT_SUPPORTED,4,4
	.comm	E_NOT_AVAILABLE,4,4
	.comm	E_INVALID_VALUE,4,4
	.comm	E_INVALID_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
