	.file	"extr_ecore_mcp.c_ecore_mcp_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unload cnt: 0x%x\n"
	.text
	.p2align 4
	.globl	ecore_mcp_cmd
	.type	ecore_mcp_cmd, @function
ecore_mcp_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	CHIP_REV_IS_EMUL@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR DRV_MSG_CODE_UNLOAD_REQ[rip], r13
	je	.L9
.L3:
	mov	eax, DWORD PTR ECORE_SUCCESS[rip]
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 72
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, 16[rsp]
	mov	esi, 32
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	OSAL_MEM_ZERO@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	mov	QWORD PTR 40[rsp], r13
	mov	QWORD PTR 32[rsp], r15
	call	ecore_mcp_cmd_and_union@PLT
	cmp	eax, DWORD PTR ECORE_SUCCESS[rip]
	jne	.L1
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR [r12], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	QWORD PTR [rbx], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR loaded_port[rip]
	mov	rdi, rbp
	sub	DWORD PTR loaded[rip], 1
	sub	DWORD PTR [rax+rdx*4], 1
	mov	ecx, DWORD PTR loaded[rip]
	lea	rdx, .LC0[rip]
	mov	esi, DWORD PTR ECORE_MSG_SP[rip]
	call	DP_VERBOSE@PLT
	jmp	.L3
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecore_mcp_cmd, .-ecore_mcp_cmd
	.comm	loaded_port,8,8
	.comm	loaded,4,4
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_MSG_SP,4,4
	.comm	DRV_MSG_CODE_UNLOAD_REQ,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_ecore_mcp.c_ecore_mcp_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unload cnt: 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ecore_mcp_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_mcp_cmd, %function
ecore_mcp_cmd:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r3
	ldr	r3, .L11
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r0, [r0, #4]
	mov	r8, r1
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [sp, #56]
	ldr	r6, [sp, #60]
	bl	CHIP_REV_IS_EMUL
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, r9
	beq	.L9
.L3:
	ldr	r3, .L11+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r1, #16
	add	r0, sp, #4
	bl	OSAL_MEM_ZERO
	add	r2, sp, #4
	mov	r1, r8
	mov	r0, r4
	str	r9, [sp, #16]
	str	r5, [sp, #12]
	bl	ecore_mcp_cmd_and_union
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r0, r3
	ldmibeq	sp, {r2, r3}
	streq	r2, [r7]
	streq	r3, [r6]
	b	.L1
.L9:
	ldr	r3, .L11+12
	ldr	r1, .L11+16
	ldr	r2, [r3]
	ldr	r0, [r4]
	ldr	r1, [r1]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r2, [r1, r0, lsl #2]
	ldr	ip, .L11+20
	sub	r2, r2, #1
	str	r2, [r1, r0, lsl #2]
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r1, [ip]
	ldr	r2, .L11+24
	bl	DP_VERBOSE
	b	.L3
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	DRV_MSG_CODE_UNLOAD_REQ
	.word	ECORE_SUCCESS
	.word	loaded
	.word	loaded_port
	.word	ECORE_MSG_SP
	.word	.LC0
	.size	ecore_mcp_cmd, .-ecore_mcp_cmd
	.comm	loaded_port,4,4
	.comm	loaded,4,4
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_MSG_SP,4,4
	.comm	DRV_MSG_CODE_UNLOAD_REQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
