	.file	"extr_be_cmds.c_be_cmd_get_profile_config_mbox.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	be_cmd_get_profile_config_mbox
	.type	be_cmd_get_profile_config_mbox, @function
be_cmd_get_profile_config_mbox:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mutex_lock_interruptible@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, rbp
	call	wrb_from_mbox@PLT
	mov	r12, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	r9, rbx
	mov	edx, DWORD PTR OPCODE_COMMON_GET_PROFILE_CONFIG[rip]
	mov	esi, DWORD PTR CMD_SUBSYSTEM_COMMON[rip]
	mov	r8, rax
	mov	rdi, r12
	call	be_wrb_cmd_hdr_prepare@PLT
	mov	eax, DWORD PTR ACTIVE_PROFILE_TYPE[rip]
	mov	DWORD PTR 4[r12], r13d
	mov	rdi, rbp
	mov	DWORD PTR 8[r12], eax
	call	lancer_chip@PLT
	test	eax, eax
	je	.L7
.L3:
	mov	rdi, rbp
	call	be_mbox_notify_wait@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L7:
	.cfi_restore_state
	mov	DWORD PTR [r12], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	be_cmd_get_profile_config_mbox, .-be_cmd_get_profile_config_mbox
	.comm	OPCODE_COMMON_GET_PROFILE_CONFIG,4,4
	.comm	CMD_SUBSYSTEM_COMMON,4,4
	.comm	ACTIVE_PROFILE_TYPE,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_profile_config_mbox.c"
	.text
	.align	2
	.global	be_cmd_get_profile_config_mbox
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_cmd_get_profile_config_mbox, %function
be_cmd_get_profile_config_mbox:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r7, r1
	mov	r5, r2
	mov	r4, r0
	bl	mutex_lock_interruptible
	cmp	r0, #0
	bne	.L4
	mov	r0, r4
	bl	wrb_from_mbox
	ldr	r6, [r5, #4]
	stm	sp, {r0, r5}
	ldr	r2, .L7
	ldr	r1, .L7+4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r5]
	mov	r0, r6
	bl	be_wrb_cmd_hdr_prepare
	ldr	r3, .L7+8
	mov	r0, r4
	ldr	r3, [r3]
	str	r7, [r6, #4]
	str	r3, [r6, #8]
	bl	lancer_chip
	cmp	r0, #0
	moveq	r3, #1
	mov	r0, r4
	streq	r3, [r6]
	bl	be_mbox_notify_wait
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	mutex_unlock
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mvn	r4, #0
	b	.L1
.L8:
	.align	2
.L7:
	.word	OPCODE_COMMON_GET_PROFILE_CONFIG
	.word	CMD_SUBSYSTEM_COMMON
	.word	ACTIVE_PROFILE_TYPE
	.size	be_cmd_get_profile_config_mbox, .-be_cmd_get_profile_config_mbox
	.comm	OPCODE_COMMON_GET_PROFILE_CONFIG,4,4
	.comm	CMD_SUBSYSTEM_COMMON,4,4
	.comm	ACTIVE_PROFILE_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
