	.file	"extr_be_cmds.c_be_cmd_get_fw_ver.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	be_cmd_get_fw_ver
	.type	be_cmd_get_fw_ver, @function
be_cmd_get_fw_ver:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	call	spin_lock_bh@PLT
	mov	rdi, rbp
	call	wrb_from_mccq@PLT
	mov	r13d, DWORD PTR EBUSY[rip]
	neg	r13d
	test	rax, rax
	je	.L3
	mov	rdi, rax
	mov	r12, rax
	call	embedded_payload@PLT
	xor	r9d, r9d
	mov	r8, r12
	mov	ecx, 4
	mov	edx, DWORD PTR OPCODE_COMMON_GET_FW_VERSION[rip]
	mov	esi, DWORD PTR CMD_SUBSYSTEM_COMMON[rip]
	mov	rdi, rax
	call	be_wrb_cmd_hdr_prepare@PLT
	mov	rdi, rbp
	call	be_mcc_notify_wait@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L9
.L3:
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L9:
	.cfi_restore_state
	mov	rdi, r12
	call	embedded_payload@PLT
	mov	rdi, r15
	mov	esi, DWORD PTR 4[rax]
	mov	r12, rax
	call	strcpy@PLT
	test	r14, r14
	je	.L3
	mov	esi, DWORD PTR [r12]
	mov	rdi, r14
	call	strcpy@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	be_cmd_get_fw_ver, .-be_cmd_get_fw_ver
	.comm	OPCODE_COMMON_GET_FW_VERSION,4,4
	.comm	EBUSY,4,4
	.comm	CMD_SUBSYSTEM_COMMON,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_be_cmds.c_be_cmd_get_fw_ver.c"
	.text
	.align	2
	.global	be_cmd_get_fw_ver
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_cmd_get_fw_ver, %function
be_cmd_get_fw_ver:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #8
	mov	r8, r1
	mov	r7, r2
	bl	spin_lock_bh
	mov	r0, r4
	bl	wrb_from_mccq
	subs	r6, r0, #0
	beq	.L9
	bl	embedded_payload
	mov	r1, #0
	ldr	r3, .L11
	ldr	r2, .L11+4
	str	r6, [sp]
	str	r1, [sp, #4]
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #4
	bl	be_wrb_cmd_hdr_prepare
	mov	r0, r4
	bl	be_mcc_notify_wait
	subs	r5, r0, #0
	beq	.L10
.L3:
	mov	r0, r4
	bl	spin_unlock_bh
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r6
	bl	embedded_payload
	mov	r6, r0
	mov	r0, r8
	ldr	r1, [r6, #4]
	bl	strcpy
	cmp	r7, #0
	beq	.L3
	mov	r0, r7
	ldr	r1, [r6]
	bl	strcpy
	b	.L3
.L9:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L3
.L12:
	.align	2
.L11:
	.word	CMD_SUBSYSTEM_COMMON
	.word	OPCODE_COMMON_GET_FW_VERSION
	.word	EBUSY
	.size	be_cmd_get_fw_ver, .-be_cmd_get_fw_ver
	.comm	OPCODE_COMMON_GET_FW_VERSION,4,4
	.comm	EBUSY,4,4
	.comm	CMD_SUBSYSTEM_COMMON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
