	.file	"extr_bfad_bsg.c_bfad_iocmd_cee_get_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfad_iocmd_cee_get_stats
	.type	bfad_iocmd_cee_get_stats, @function
bfad_iocmd_cee_get_stats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, edx
	mov	edx, 4
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	esi, 8
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	bfad_chk_iocmd_sz@PLT
	cmp	rax, QWORD PTR BFA_STATUS_OK[rip]
	je	.L2
	mov	rax, QWORD PTR BFA_STATUS_VERSION_FAIL[rip]
	mov	QWORD PTR [rbx], rax
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], 0
	mov	r12, rsp
	xor	r13d, r13d
	mov	rdi, r12
	call	init_completion@PLT
	lea	rdi, bfad_mutex[rip]
	call	mutex_lock@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	lea	rsi, 8[rbx]
	lea	rdi, 4[rbp]
	mov	rcx, r12
	mov	edx, DWORD PTR bfad_hcb_comp[rip]
	call	bfa_cee_get_stats@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR BFA_STATUS_OK[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L4
	lea	rdi, bfad_mutex[rip]
	call	mutex_unlock@PLT
	mov	esi, 21845
	mov	rdi, rbp
	call	bfa_trc@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	call	wait_for_completion@PLT
	lea	rdi, bfad_mutex[rip]
	call	mutex_unlock@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bfad_iocmd_cee_get_stats, .-bfad_iocmd_cee_get_stats
	.comm	bfad_mutex,4,4
	.comm	bfad_hcb_comp,4,4
	.comm	BFA_STATUS_VERSION_FAIL,8,8
	.comm	BFA_STATUS_OK,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_bfad_bsg.c_bfad_iocmd_cee_get_stats.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bfad_iocmd_cee_get_stats
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_iocmd_cee_get_stats, %function
bfad_iocmd_cee_get_stats:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r2
	mov	r2, #4
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	mov	r0, r3
	ldr	r3, .L9
	sub	sp, sp, #20
	mov	r4, r1
	mov	r1, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	bfad_chk_iocmd_sz
	ldr	r5, .L9+4
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [r4]
.L3:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r3, #0
	mov	r7, r3
	add	r0, sp, #4
	str	r3, [sp, #8]
	bl	init_completion
	ldr	r0, .L9+12
	bl	mutex_lock
	mov	r1, r7
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r2, .L9+16
	add	r3, sp, #4
	ldr	r2, [r2]
	add	r1, r4, #4
	add	r0, r6, #4
	bl	bfa_cee_get_stats
	mov	r1, r7
	str	r0, [r4]
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldr	r2, [r4]
	ldr	r3, [r5]
	cmp	r2, r3
	beq	.L4
	ldr	r0, .L9+12
	bl	mutex_unlock
	mov	r0, r6
	ldr	r1, .L9+20
	bl	bfa_trc
	b	.L3
.L4:
	add	r0, sp, #4
	bl	wait_for_completion
	ldr	r0, .L9+12
	bl	mutex_unlock
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	BFA_STATUS_OK
	.word	BFA_STATUS_VERSION_FAIL
	.word	bfad_mutex
	.word	bfad_hcb_comp
	.word	21845
	.size	bfad_iocmd_cee_get_stats, .-bfad_iocmd_cee_get_stats
	.comm	bfad_mutex,4,4
	.comm	bfad_hcb_comp,4,4
	.comm	BFA_STATUS_VERSION_FAIL,4,4
	.comm	BFA_STATUS_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
