	.file	"extr_vxge-traffic.c_vxge_hw_vpath_mac_addr_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vxge_hw_vpath_mac_addr_get
	.type	vxge_hw_vpath_mac_addr_get, @function
vxge_hw_vpath_mac_addr_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR VXGE_HW_ERR_INVALID_HANDLE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], 0
	test	rdi, rdi
	je	.L1
	mov	rbx, rsi
	mov	rbp, rdx
	mov	esi, DWORD PTR VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_LIST_FIRST_ENTRY[rip]
	xor	ecx, ecx
	mov	edx, DWORD PTR VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_DA[rip]
	lea	r9, 4[rsp]
	mov	r8, rsp
	call	__vxge_hw_vpath_rts_table_get@PLT
	cmp	eax, DWORD PTR VXGE_HW_OK[rip]
	mov	r12d, eax
	je	.L9
.L3:
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR [rsp]
	call	VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_DA_MAC_ADDR@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	DWORD PTR [rsp], eax
	call	VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_DA_MAC_ADDR_MASK@PLT
	movsx	rdx, DWORD PTR ETH_ALEN[rip]
	mov	DWORD PTR 4[rsp], eax
	test	edx, edx
	jle	.L1
	mov	ecx, DWORD PTR [rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	esi, cl
	sar	ecx, 8
	mov	QWORD PTR -8[rbx+rdx*8], rsi
	movzx	esi, al
	sar	eax, 8
	mov	QWORD PTR -8[rbp+rdx*8], rsi
	sub	rdx, 1
	test	edx, edx
	jg	.L4
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vxge_hw_vpath_mac_addr_get, .-vxge_hw_vpath_mac_addr_get
	.comm	VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_DA,4,4
	.comm	VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_LIST_FIRST_ENTRY,4,4
	.comm	VXGE_HW_OK,4,4
	.comm	VXGE_HW_ERR_INVALID_HANDLE,4,4
	.comm	ETH_ALEN,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_vxge-traffic.c_vxge_hw_vpath_mac_addr_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vxge_hw_vpath_mac_addr_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	vxge_hw_vpath_mac_addr_get, %function
vxge_hw_vpath_mac_addr_get:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	ldr	r2, .L12
	sub	sp, sp, #24
	cmp	r0, r3
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	beq	.L9
	mov	r4, r1
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	add	lr, sp, #16
	add	ip, sp, #12
	ldr	r2, [r2]
	ldr	r1, [r1]
	stm	sp, {ip, lr}
	bl	__vxge_hw_vpath_rts_table_get
	ldr	r3, .L12+12
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
.L3:
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [sp, #12]
	bl	VXGE_HW_RTS_ACCESS_STEER_DATA0_GET_DA_MAC_ADDR
	mov	r3, r0
	ldr	r0, [sp, #16]
	str	r3, [sp, #12]
	bl	VXGE_HW_RTS_ACCESS_STEER_DATA1_GET_DA_MAC_ADDR_MASK
	ldr	r3, .L12+16
	mov	ip, r0
	ldr	r3, [r3]
	str	r0, [sp, #16]
	cmp	r3, #0
	ble	.L1
	ldr	lr, [sp, #12]
	add	r2, r6, r3, lsl #2
	add	r3, r4, r3, lsl #2
.L4:
	and	r1, lr, #255
	str	r1, [r3, #-4]!
	cmp	r3, r4
	and	r1, ip, #255
	asr	lr, lr, #8
	str	r1, [r2, #-4]!
	asr	ip, ip, #8
	bne	.L4
	b	.L1
.L9:
	ldr	r3, .L12+20
	ldr	r5, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_DA
	.word	VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_LIST_FIRST_ENTRY
	.word	VXGE_HW_OK
	.word	ETH_ALEN
	.word	VXGE_HW_ERR_INVALID_HANDLE
	.size	vxge_hw_vpath_mac_addr_get, .-vxge_hw_vpath_mac_addr_get
	.comm	VXGE_HW_RTS_ACCESS_STEER_CTRL_DATA_STRUCT_SEL_DA,4,4
	.comm	VXGE_HW_RTS_ACCESS_STEER_CTRL_ACTION_LIST_FIRST_ENTRY,4,4
	.comm	VXGE_HW_OK,4,4
	.comm	VXGE_HW_ERR_INVALID_HANDLE,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
