	.file	"extr_al_hal_eth_main.c_al_eth_ctrl_index_match.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	al_eth_ctrl_index_match, @function
al_eth_ctrl_index_match:
.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
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR [rdi]
	mov	rbx, rdi
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_VLAN_TABLE_OUT_ANY[rip]
	jne	.L2
.L5:
	mov	r12, QWORD PTR 8[rbx]
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_TUNNEL_ANY[rip]
	jne	.L17
	mov	r12, QWORD PTR 16[rbx]
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_VLAN_ANY[rip]
	jne	.L18
.L8:
	mov	r12, QWORD PTR 24[rbx]
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_MAC_TABLE_ANY[rip]
	je	.L11
.L19:
	mov	esi, 3
	mov	edi, ebp
	call	AL_REG_BIT_GET@PLT
	cmp	r12, rax
	je	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	mov	esi, 1
	mov	edi, ebp
	call	AL_REG_BIT_GET@PLT
	cmp	r12, rax
	jne	.L9
	mov	r12, QWORD PTR 16[rbx]
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_VLAN_ANY[rip]
	je	.L8
.L18:
	mov	esi, 2
	mov	edi, ebp
	call	AL_REG_BIT_GET@PLT
	cmp	r12, rax
	jne	.L9
	mov	r12, QWORD PTR 24[rbx]
	cmp	r12, QWORD PTR AL_ETH_FWD_CTRL_IDX_MAC_TABLE_ANY[rip]
	jne	.L19
.L11:
	mov	r12, QWORD PTR 32[rbx]
	cmp	r12, QWORD PTR AL_ETH_PROTO_ID_ANY[rip]
	jne	.L20
.L13:
	mov	rbx, QWORD PTR 40[rbx]
	cmp	rbx, QWORD PTR AL_ETH_FWD_CTRL_IDX_MAC_DA_TYPE_ANY[rip]
	mov	eax, 1
	je	.L1
	mov	esi, 9
	mov	edi, 10
	call	AL_FIELD_MASK@PLT
	mov	edi, ebp
	mov	edx, 9
	mov	esi, eax
	call	AL_REG_FIELD_GET@PLT
	cmp	rbx, rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	sete	al
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	esi, esi
	mov	edi, ebp
	call	AL_REG_BIT_GET@PLT
	cmp	r12, rax
	je	.L5
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, 4
	mov	edi, 8
	call	AL_FIELD_MASK@PLT
	mov	edx, 4
	mov	edi, ebp
	mov	esi, eax
	call	AL_REG_FIELD_GET@PLT
	cmp	r12, rax
	jne	.L9
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	al_eth_ctrl_index_match, .-al_eth_ctrl_index_match
	.comm	AL_ETH_PROTO_ID_ANY,8,8
	.comm	AL_ETH_FWD_CTRL_IDX_VLAN_TABLE_OUT_ANY,8,8
	.comm	AL_ETH_FWD_CTRL_IDX_VLAN_ANY,8,8
	.comm	AL_ETH_FWD_CTRL_IDX_TUNNEL_ANY,8,8
	.comm	AL_ETH_FWD_CTRL_IDX_MAC_TABLE_ANY,8,8
	.comm	AL_ETH_FWD_CTRL_IDX_MAC_DA_TYPE_ANY,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_al_hal_eth_main.c_al_eth_ctrl_index_match.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	al_eth_ctrl_index_match, %function
al_eth_ctrl_index_match:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r6, [r0]
	mov	r4, r0
	cmp	r6, r3
	mov	r5, r1
	bne	.L2
.L5:
	ldr	r3, .L22+4
	ldr	r6, [r4, #4]
	ldr	r3, [r3]
	cmp	r6, r3
	bne	.L19
.L4:
	ldr	r3, .L22+8
	ldr	r6, [r4, #8]
	ldr	r3, [r3]
	cmp	r6, r3
	bne	.L20
.L8:
	ldr	r3, .L22+12
	ldr	r6, [r4, #12]
	ldr	r3, [r3]
	cmp	r6, r3
	beq	.L11
	mov	r1, #3
	mov	r0, r5
	bl	AL_REG_BIT_GET
	cmp	r6, r0
	beq	.L11
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	mov	r1, #1
	mov	r0, r5
	bl	AL_REG_BIT_GET
	cmp	r6, r0
	beq	.L4
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	mov	r1, #2
	mov	r0, r5
	bl	AL_REG_BIT_GET
	cmp	r6, r0
	beq	.L8
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L22+16
	ldr	r6, [r4, #16]
	ldr	r3, [r3]
	cmp	r6, r3
	bne	.L21
.L13:
	ldr	r3, .L22+20
	ldr	r4, [r4, #20]
	ldr	r3, [r3]
	cmp	r4, r3
	bne	.L14
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, #0
	mov	r0, r5
	bl	AL_REG_BIT_GET
	cmp	r6, r0
	beq	.L5
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L21:
	mov	r1, #4
	mov	r0, #8
	bl	AL_FIELD_MASK
	mov	r2, #4
	mov	r1, r0
	mov	r0, r5
	bl	AL_REG_FIELD_GET
	cmp	r6, r0
	bne	.L9
	b	.L13
.L14:
	mov	r1, #9
	mov	r0, #10
	bl	AL_FIELD_MASK
	mov	r2, #9
	mov	r1, r0
	mov	r0, r5
	bl	AL_REG_FIELD_GET
	sub	r0, r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, pc}
.L23:
	.align	2
.L22:
	.word	AL_ETH_FWD_CTRL_IDX_VLAN_TABLE_OUT_ANY
	.word	AL_ETH_FWD_CTRL_IDX_TUNNEL_ANY
	.word	AL_ETH_FWD_CTRL_IDX_VLAN_ANY
	.word	AL_ETH_FWD_CTRL_IDX_MAC_TABLE_ANY
	.word	AL_ETH_PROTO_ID_ANY
	.word	AL_ETH_FWD_CTRL_IDX_MAC_DA_TYPE_ANY
	.size	al_eth_ctrl_index_match, .-al_eth_ctrl_index_match
	.comm	AL_ETH_PROTO_ID_ANY,4,4
	.comm	AL_ETH_FWD_CTRL_IDX_VLAN_TABLE_OUT_ANY,4,4
	.comm	AL_ETH_FWD_CTRL_IDX_VLAN_ANY,4,4
	.comm	AL_ETH_FWD_CTRL_IDX_TUNNEL_ANY,4,4
	.comm	AL_ETH_FWD_CTRL_IDX_MAC_TABLE_ANY,4,4
	.comm	AL_ETH_FWD_CTRL_IDX_MAC_DA_TYPE_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
