	.file	"extr_mlx5_fwdump.c_mlx5_fwdump_copyout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx5_fwdump_copyout, @function
mlx5_fwdump_copyout:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rax, 8[rdi]
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	mtx_lock@PLT
	cmp	QWORD PTR 16[r13], 0
	je	.L20
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 8[rax], 0
	je	.L22
	mov	eax, DWORD PTR 32[r13]
	test	eax, eax
	je	.L20
	mov	DWORD PTR 4[r13], 1
	mov	rdi, QWORD PTR 24[rsp]
	xor	r15d, r15d
	call	mtx_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR 24[r13]
	lea	rcx, 32[rsp]
	mov	QWORD PTR 16[rsp], rcx
	mov	r12, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L7
.L6:
	movsx	r14, r15d
	xor	ebx, ebx
	sal	r14, 2
	test	rax, rax
	jg	.L8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, 16
	mov	rsi, r12
	lea	rax, [rax+rbx*4]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 16[r13]
	mov	eax, DWORD PTR [rax+r14]
	mov	DWORD PTR 32[rsp], eax
	call	copyout@PLT
	test	eax, eax
	jne	.L1
	add	r12, 16
	add	r15d, 1
	add	rbx, 1
	add	r14, 4
	cmp	QWORD PTR 0[rbp], rbx
	jle	.L10
.L8:
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR 4[rax], r15d
	jg	.L23
.L7:
	mov	rax, QWORD PTR 8[rsp]
	mov	rbx, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], r15d
	mov	rdi, rbx
	call	mtx_lock@PLT
	mov	DWORD PTR 4[r13], 0
	lea	rdi, 4[r13]
	call	wakeup@PLT
	mov	rdi, rbx
	call	mtx_unlock@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	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
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	call	mtx_unlock@PLT
	mov	eax, DWORD PTR ENOENT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[rbp]
	add	rbp, 16
	test	rax, rax
	jne	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR 0[r13]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	DWORD PTR [rcx], eax
	call	mtx_unlock@PLT
	xor	eax, eax
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_fwdump_copyout, .-mlx5_fwdump_copyout
	.comm	ENOENT,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_mlx5_fwdump.c_mlx5_fwdump_copyout.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_fwdump_copyout, %function
mlx5_fwdump_copyout:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r3, .L23
	add	r6, r0, #8
	sub	sp, sp, #16
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r1
	bl	mtx_lock
	ldr	r3, [r7, #12]
	cmp	r3, #0
	beq	.L18
	ldr	r4, [r8, #8]
	cmp	r4, #0
	beq	.L20
	ldr	r3, [r7, #20]
	cmp	r3, #0
	beq	.L18
	mov	r3, #1
	mov	r0, r6
	str	r3, [r7, #4]
	bl	mtx_unlock
	ldr	r9, [r7, #16]
	ldr	r10, [r8, #8]
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L11
	mov	r4, #0
	add	r9, r9, #8
.L7:
	cmp	r3, #0
	movgt	r5, #0
	bgt	.L8
	b	.L9
.L21:
	ldr	r2, [r7, #12]
	ldr	r3, [r9, #-4]
	ldr	ip, [r2, r4, lsl #2]
	add	r3, r3, r5, lsl #2
	mov	r2, #8
	mov	r1, r10
	add	r0, sp, #4
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	bl	copyout
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r9, #-8]
	add	r5, r5, #1
	cmp	r3, r5
	add	r10, r10, #8
	add	r4, r4, #1
	ble	.L9
.L8:
	ldr	r3, [r8, #4]
	cmp	r3, r4
	bgt	.L21
.L6:
	str	r4, [r8]
	mov	r0, r6
	bl	mtx_lock
	mov	r4, #0
	mov	r0, r7
	str	r4, [r0, #4]!
	bl	wakeup
	mov	r0, r6
	bl	mtx_unlock
	mov	r0, r4
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, r6
	bl	mtx_unlock
	ldr	r3, .L23+4
	ldr	r0, [r3]
	b	.L1
.L9:
	ldr	r3, [r9], #8
	cmp	r3, #0
	bne	.L7
	b	.L6
.L20:
	ldr	r3, [r7]
	mov	r0, r6
	str	r3, [r8]
	bl	mtx_unlock
	mov	r0, r4
	b	.L1
.L11:
	mov	r4, r3
	b	.L6
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	ENOENT
	.size	mlx5_fwdump_copyout, .-mlx5_fwdump_copyout
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
