	.file	"extr_br_netfilter_hooks.c_setup_pre_routing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	setup_pre_routing
	.type	setup_pre_routing, @function
setup_pre_routing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	nf_bridge_info_get@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR PACKET_OTHERHOST[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L2
	mov	rax, QWORD PTR PACKET_HOST[rip]
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR 0[rbp], 1
.L2:
	mov	rsi, QWORD PTR 16[rbx]
	mov	DWORD PTR 4[rbp], 1
	mov	rdx, r12
	mov	rdi, rbx
	mov	QWORD PTR 16[rbp], rsi
	call	brnf_get_logical_dev@PLT
	mov	edi, DWORD PTR ETH_P_8021Q[rip]
	mov	r12, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], rax
	call	htons@PLT
	cmp	r12, rax
	jne	.L3
	mov	eax, DWORD PTR BRNF_PROTO_8021Q[rip]
	mov	DWORD PTR 8[rbp], eax
.L4:
	mov	rdi, rbx
	call	skb_orphan@PLT
	mov	rax, QWORD PTR 16[rbx]
	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
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_PPP_SES[rip]
	mov	r12, QWORD PTR 8[rbx]
	call	htons@PLT
	cmp	r12, rax
	jne	.L4
	mov	eax, DWORD PTR BRNF_PROTO_PPPOE[rip]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	setup_pre_routing, .-setup_pre_routing
	.comm	PACKET_OTHERHOST,8,8
	.comm	PACKET_HOST,8,8
	.comm	ETH_P_PPP_SES,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	BRNF_PROTO_PPPOE,4,4
	.comm	BRNF_PROTO_8021Q,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_br_netfilter_hooks.c_setup_pre_routing.c"
	.text
	.align	2
	.global	setup_pre_routing
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_pre_routing, %function
setup_pre_routing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	bl	nf_bridge_info_get
	ldr	r3, .L7
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #8]
	cmp	r2, r3
	moveq	r3, #1
	ldreq	r2, .L7+4
	mov	r5, r0
	ldreq	r2, [r2]
	streq	r2, [r4]
	streq	r3, [r0]
	mov	r3, #1
	mov	r2, r6
	str	r3, [r0, #4]
	str	r1, [r0, #12]
	mov	r0, r4
	bl	brnf_get_logical_dev
	ldr	r3, .L7+8
	str	r0, [r4, #8]
	ldr	r0, [r3]
	ldr	r6, [r4, #4]
	bl	htons
	cmp	r6, r0
	bne	.L3
	ldr	r3, .L7+12
	ldr	r3, [r3]
	str	r3, [r5, #8]
.L4:
	mov	r0, r4
	bl	skb_orphan
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L7+16
	ldr	r6, [r4, #4]
	ldr	r0, [r3]
	bl	htons
	cmp	r6, r0
	ldreq	r3, .L7+20
	ldreq	r3, [r3]
	streq	r3, [r5, #8]
	b	.L4
.L8:
	.align	2
.L7:
	.word	PACKET_OTHERHOST
	.word	PACKET_HOST
	.word	ETH_P_8021Q
	.word	BRNF_PROTO_8021Q
	.word	ETH_P_PPP_SES
	.word	BRNF_PROTO_PPPOE
	.size	setup_pre_routing, .-setup_pre_routing
	.comm	PACKET_OTHERHOST,4,4
	.comm	PACKET_HOST,4,4
	.comm	ETH_P_PPP_SES,4,4
	.comm	ETH_P_8021Q,4,4
	.comm	BRNF_PROTO_PPPOE,4,4
	.comm	BRNF_PROTO_8021Q,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
