	.file	"extr_ng_ipfw.c_ng_ipfw_input.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ng_ipfw_input, @function
ng_ipfw_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, QWORD PTR fw_node[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L4
	mov	rbx, rsi
	mov	esi, DWORD PTR 4[rsi]
	mov	r13d, edx
	call	ng_ipfw_findhook1@PLT
	mov	r14, rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR M_NOWAIT[rip]
	mov	rbp, QWORD PTR [r12]
	test	r13d, r13d
	je	.L16
	mov	rdi, rbp
	call	m_dup@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	rbp, rbp
	je	.L1
.L9:
	cmp	DWORD PTR 0[rbp], 3
	ja	.L10
	mov	rdi, rbp
	mov	esi, 4
	call	m_pullup@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR EINVAL[rip]
	test	rbp, rbp
	je	.L1
.L10:
	mov	rdx, rbp
	mov	rsi, r14
	xor	edi, edi
	call	NG_SEND_DATA_ONLY@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	ecx, DWORD PTR M_ZERO[rip]
	mov	edi, DWORD PTR MTAG_IPFW_RULE[rip]
	mov	edx, 4
	mov	QWORD PTR [r12], 0
	or	ecx, esi
	xor	esi, esi
	call	m_tag_alloc@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	mov	rdi, rbp
	and	eax, DWORD PTR IPFW_ONEPASS[rip]
	test	DWORD PTR IPFW_ARGS_IN[rip], edx
	mov	edx, DWORD PTR IPFW_INFO_IN[rip]
	cmove	edx, DWORD PTR IPFW_INFO_OUT[rip]
	or	eax, edx
	mov	DWORD PTR 4[rsi], eax
	call	m_tag_prepend@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR ESRCH[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	m_freem@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ng_ipfw_input, .-ng_ipfw_input
	.comm	fw_node,8,8
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	MTAG_IPFW_RULE,4,4
	.comm	IPFW_ONEPASS,4,4
	.comm	IPFW_INFO_OUT,4,4
	.comm	IPFW_INFO_IN,4,4
	.comm	IPFW_ARGS_IN,4,4
	.comm	ESRCH,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_ng_ipfw.c_ng_ipfw_input.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ng_ipfw_input, %function
ng_ipfw_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
	mov	r5, r1
	ldr	r1, [r1, #4]
	mov	r6, r2
	bl	ng_ipfw_findhook1
	subs	r8, r0, #0
	beq	.L4
	ldr	r3, .L20+4
	cmp	r6, #0
	ldr	r3, [r3]
	ldr	r4, [r7]
	beq	.L16
	mov	r0, r4
	mov	r1, r3
	bl	m_dup
	subs	r4, r0, #0
	beq	.L17
.L9:
	ldr	r3, [r4]
	cmp	r3, #3
	bhi	.L10
	mov	r0, r4
	mov	r1, #4
	bl	m_pullup
	subs	r4, r0, #0
	beq	.L18
.L10:
	mov	r2, r4
	mov	r1, r8
	mov	r0, #0
	bl	NG_SEND_DATA_ONLY
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r1, .L20+8
	ldr	r2, .L20+12
	ldr	r0, [r1]
	mov	r1, r6
	orr	r3, r3, r0
	str	r6, [r7]
	ldr	r0, [r2]
	mov	r2, #4
	bl	m_tag_alloc
	subs	r1, r0, #0
	beq	.L19
	ldr	r3, .L20+16
	ldr	r2, .L20+20
	ldr	ip, [r5]
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r5, #4]
	tst	ip, r0
	str	r3, [r1, #4]
	and	r3, r3, r2
	ldrne	r2, .L20+24
	ldreq	r2, .L20+28
	mov	r0, r4
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r1, #4]
	bl	m_tag_prepend
	b	.L9
.L4:
	ldr	r3, .L20+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L20+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L20+40
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r4
	bl	m_freem
	ldr	r3, .L20+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	fw_node
	.word	M_NOWAIT
	.word	M_ZERO
	.word	MTAG_IPFW_RULE
	.word	IPFW_ARGS_IN
	.word	IPFW_ONEPASS
	.word	IPFW_INFO_IN
	.word	IPFW_INFO_OUT
	.word	ESRCH
	.word	ENOMEM
	.word	EINVAL
	.size	ng_ipfw_input, .-ng_ipfw_input
	.comm	fw_node,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	MTAG_IPFW_RULE,4,4
	.comm	IPFW_ONEPASS,4,4
	.comm	IPFW_INFO_OUT,4,4
	.comm	IPFW_INFO_IN,4,4
	.comm	IPFW_ARGS_IN,4,4
	.comm	ESRCH,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
