	.file	"extr_be_cmds.c_be_cmd_get_mac_from_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Memory allocation failure during GET_MAC_LIST\n"
	.text
	.p2align 4
	.globl	be_cmd_get_mac_from_list
	.type	be_cmd_get_mac_from_list, @function
be_cmd_get_mac_from_list:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	mov	edx, 16
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 24[rsp], rsi
	lea	r14, 32[rsp]
	xor	esi, esi
	mov	QWORD PTR 16[rsp], rcx
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	memset@PLT
	mov	ecx, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rdx, 36[rsp]
	mov	esi, 48
	mov	DWORD PTR 32[rsp], 48
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 40[rsp], rax
	test	rax, rax
	je	.L16
	lea	r15, 8[rbx]
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rdi, rbx
	call	wrb_from_mccq@PLT
	mov	r8, rax
	test	rax, rax
	je	.L17
	mov	r13, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR OPCODE_COMMON_GET_MAC_LIST[rip]
	mov	r9, r14
	mov	ecx, DWORD PTR 32[rsp]
	mov	esi, DWORD PTR CMD_SUBSYSTEM_COMMON[rip]
	lea	rdi, 40[r13]
	call	be_wrb_cmd_hdr_prepare@PLT
	mov	eax, DWORD PTR MAC_ADDRESS_TYPE_NETWORK[rip]
	mov	DWORD PTR 40[r13], r12d
	mov	DWORD PTR 36[r13], eax
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L18
	mov	DWORD PTR 0[r13], 1
.L7:
	mov	rdi, rbx
	call	be_mcc_notify_wait@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR 0[rbp]
	mov	r12, QWORD PTR 40[rsp]
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR 8[r12]
	add	eax, DWORD PTR 4[r12]
	test	eax, eax
	jle	.L9
	sub	eax, 1
	lea	r14, 3[rax+rax*2]
	lea	rax, 0[0+r14*4]
	xor	r14d, r14d
	mov	QWORD PTR 8[rsp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	add	r14, 12
	cmp	QWORD PTR 8[rsp], r14
	je	.L9
.L11:
	mov	r13, QWORD PTR 16[r12]
	add	r13, r14
	mov	edi, DWORD PTR 8[r13]
	call	le16_to_cpu@PLT
	cmp	eax, 4
	jne	.L10
	mov	DWORD PTR 0[rbp], 1
	mov	edi, DWORD PTR 4[r13]
	xor	r14d, r14d
	call	le32_to_cpu@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rcx], eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	ecx, DWORD PTR 36[rsp]
	mov	rdx, QWORD PTR 40[rsp]
	mov	esi, DWORD PTR 32[rsp]
	mov	rdi, QWORD PTR [rbx]
	call	dma_free_coherent@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L17:
	.cfi_restore_state
	mov	r14d, DWORD PTR EBUSY[rip]
	neg	r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	DWORD PTR 32[r13], eax
	call	cpu_to_le16@PLT
	mov	DWORD PTR 0[r13], 0
	mov	DWORD PTR 28[r13], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 16[r12]
	mov	DWORD PTR 0[rbp], 0
	xor	r14d, r14d
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR [rax]
	call	memcpy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR 24[r12]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rdi, QWORD PTR 24[rsp]
	call	memcpy@PLT
	jmp	.L5
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	be_cmd_get_mac_from_list, .-be_cmd_get_mac_from_list
	.comm	OPCODE_COMMON_GET_MAC_LIST,4,4
	.comm	MAC_ADDRESS_TYPE_NETWORK,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,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_mac_from_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory allocation failure during GET_MAC_LIST\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	be_cmd_get_mac_from_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_cmd_get_mac_from_list, %function
be_cmd_get_mac_from_list:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	mov	r8, r3
	mov	ip, #36
	mov	r4, #0
	sub	sp, sp, #36
	mov	r7, r2
	ldr	r3, .L22
	ldr	r2, .L22+4
	str	r9, [sp, #12]
	str	r8, [sp, #8]
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	mov	r5, r0
	mov	r1, ip
	ldr	r0, [r0]
	ldr	r3, [r3]
	add	r2, sp, #20
	str	ip, [sp, #16]
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	bl	dma_alloc_coherent
	cmp	r0, r4
	str	r0, [sp, #24]
	beq	.L16
	add	fp, r5, #4
	mov	r0, fp
	bl	mutex_lock
	mov	r0, r5
	bl	wrb_from_mccq
	cmp	r0, #0
	beq	.L17
	add	r1, sp, #16
	stm	sp, {r0, r1}
	ldr	r6, [sp, #24]
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [sp, #16]
	add	r0, r6, #32
	bl	be_wrb_cmd_hdr_prepare
	ldr	r3, .L22+16
	ldr	r2, [sp, #76]
	ldr	r3, [r3]
	str	r2, [r6, #32]
	str	r3, [r6, #28]
	ldr	r3, [r7]
	cmp	r3, #0
	moveq	r3, #1
	streq	r3, [r6]
	bne	.L18
	mov	r0, r5
	bl	be_mcc_notify_wait
	subs	r4, r0, #0
	bne	.L5
.L21:
	ldr	r6, [r7]
	ldr	r8, [sp, #24]
	cmp	r6, #0
	bne	.L19
	ldmib	r8, {r3, r10}
	add	r10, r10, r3
	cmp	r10, #0
	ble	.L9
	mov	r9, r6
	b	.L11
.L10:
	add	r6, r6, #1
	cmp	r10, r6
	add	r9, r9, #12
	beq	.L9
.L11:
	ldr	r4, [r8, #12]
	add	r4, r4, r9
	ldr	r0, [r4, #8]
	bl	le16_to_cpu
	cmp	r0, #4
	bne	.L10
	mov	r3, #1
	str	r3, [r7]
	ldr	r0, [r4, #4]
	bl	le32_to_cpu
	mov	r4, #0
	ldr	r3, [sp, #8]
	str	r0, [r3]
.L5:
	mov	r0, fp
	bl	mutex_unlock
	ldr	r0, [r5]
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #16]
	bl	dma_free_coherent
.L1:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L22+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L18:
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	bl	cpu_to_le32
	str	r0, [r6, #24]
	ldr	r0, [sp, #72]
	bl	cpu_to_le16
	str	r4, [r6]
	str	r0, [r6, #20]
	mov	r0, r5
	bl	be_mcc_notify_wait
	subs	r4, r0, #0
	bne	.L5
	b	.L21
.L16:
	ldr	r0, [r5]
	ldr	r1, .L22+24
	bl	dev_err
	ldr	r3, .L22+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L9:
	mov	r4, #0
	ldr	r2, [r8, #12]
	ldr	r3, .L22+32
	str	r4, [r7]
	ldr	r1, [r2]
	ldr	r0, [sp, #12]
	ldr	r2, [r3]
	bl	memcpy
	b	.L5
.L19:
	ldr	r3, .L22+32
	ldr	r1, [r8, #16]
	ldr	r0, [sp, #12]
	ldr	r2, [r3]
	bl	memcpy
	b	.L5
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	GFP_ATOMIC
	.word	.LC1
	.word	CMD_SUBSYSTEM_COMMON
	.word	OPCODE_COMMON_GET_MAC_LIST
	.word	MAC_ADDRESS_TYPE_NETWORK
	.word	EBUSY
	.word	.LC0
	.word	ENOMEM
	.word	ETH_ALEN
	.size	be_cmd_get_mac_from_list, .-be_cmd_get_mac_from_list
	.comm	OPCODE_COMMON_GET_MAC_LIST,4,4
	.comm	MAC_ADDRESS_TYPE_NETWORK,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,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
