	.file	"extr_act_connmark.c_tcf_connmark_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tcf_connmark_init, @function
tcf_connmark_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, r9d
	push	r12
	.cfi_offset 12, -48
	mov	r12, rcx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR -112[rbp], rdx
	mov	DWORD PTR -116[rbp], r8d
	mov	esi, DWORD PTR connmark_net_id[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	net_generic@PLT
	mov	esi, DWORD PTR TCA_CONNMARK_MAX[rip]
	mov	rcx, rsp
	mov	r14, rax
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	mov	QWORD PTR -64[rbp], 0
	mov	rdi, rsp
	test	r15, r15
	je	.L22
	mov	ecx, DWORD PTR connmark_policy[rip]
	xor	r8d, r8d
	mov	rdx, r15
	mov	QWORD PTR -88[rbp], rdi
	call	nla_parse_nested_deprecated@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR TCA_CONNMARK_PARMS[rip]
	mov	rdi, QWORD PTR -88[rbp]
	mov	rdi, QWORD PTR [rdi+rax*8]
	test	rdi, rdi
	je	.L22
	call	nla_data@PLT
	lea	rsi, -68[rbp]
	mov	ecx, r13d
	mov	rdx, r12
	mov	r15, rax
	mov	eax, DWORD PTR 8[rax]
	mov	rdi, r14
	mov	DWORD PTR -68[rbp], eax
	call	tcf_idr_check_alloc@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L27
	jg	.L28
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	lea	rsp, -40[rbp]
	mov	eax, r8d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR [r12]
	call	to_connmark@PLT
	mov	r14, rax
	test	r13d, r13d
	jne	.L23
	mov	eax, DWORD PTR -116[rbp]
	test	eax, eax
	je	.L30
	mov	edi, DWORD PTR 4[r15]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	call	tcf_action_check_ctrlact@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L10
	mov	rdi, r14
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR 4[r15]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rdi, QWORD PTR [r12]
	call	tcf_action_set_ctrlact@PLT
	mov	rdi, r14
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR 4[r14], eax
	call	spin_unlock_bh@PLT
	mov	rdi, QWORD PTR -64[rbp]
	test	rdi, rdi
	je	.L23
	call	tcf_chain_put_by_act@PLT
.L23:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	sub	rsp, 8
	mov	rdx, QWORD PTR -112[rbp]
	mov	esi, DWORD PTR -68[rbp]
	mov	rcx, r12
	push	0
	mov	r9d, r13d
	lea	r8, act_connmark_ops[rip]
	mov	rdi, r14
	call	tcf_idr_create@PLT
	pop	rdx
	pop	rcx
	test	eax, eax
	jne	.L31
	mov	rdi, QWORD PTR [r12]
	call	to_connmark@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	QWORD PTR -88[rbp], rax
	call	tcf_action_check_ctrlact@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L10
	mov	esi, DWORD PTR 4[r15]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rdi, QWORD PTR [r12]
	call	tcf_action_set_ctrlact@PLT
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [r15]
	mov	rdi, r14
	mov	rsi, QWORD PTR [r12]
	mov	QWORD PTR 8[rcx], rbx
	mov	DWORD PTR 4[rcx], eax
	call	tcf_idr_insert@PLT
	mov	r8d, DWORD PTR ACT_P_CREATED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [r12]
	mov	esi, r13d
	mov	DWORD PTR -88[rbp], r8d
	call	tcf_idr_release@PLT
	mov	r8d, DWORD PTR -88[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR [r12]
	xor	esi, esi
	call	tcf_idr_release@PLT
	mov	r8d, DWORD PTR EEXIST[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR -68[rbp]
	mov	rdi, r14
	mov	DWORD PTR -88[rbp], eax
	call	tcf_idr_cleanup@PLT
	mov	r8d, DWORD PTR -88[rbp]
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tcf_connmark_init, .-tcf_connmark_init
	.comm	connmark_policy,4,4
	.comm	connmark_net_id,4,4
	.comm	act_connmark_ops,4,4
	.comm	TCA_CONNMARK_PARMS,8,8
	.comm	TCA_CONNMARK_MAX,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	ACT_P_CREATED,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_act_connmark.c_tcf_connmark_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcf_connmark_init, %function
tcf_connmark_init:
	@ args = 20, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	ip, .L23
	mov	r4, r3
	ldr	r3, .L23+4
	mov	r7, r1
	ldr	r1, [ip]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r6, r2
	ldr	r9, [fp, #16]
	ldr	r10, [fp, #20]
	str	r0, [fp, #-56]
	bl	net_generic
	mov	ip, #0
	ldr	r3, .L23+8
	cmp	r7, ip
	ldr	r1, [r3]
	str	ip, [fp, #-48]
	lsl	r3, r1, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	beq	.L16
	ldr	r3, .L23+12
	str	ip, [sp]
	add	r8, sp, #16
	ldr	r3, [r3]
	mov	r5, r0
	mov	r2, r7
	mov	r0, r8
	bl	nla_parse_nested_deprecated
	subs	r3, r0, #0
	blt	.L1
	ldr	r3, .L23+16
	ldr	r3, [r3]
	ldr	r0, [r8, r3, lsl #2]
	cmp	r0, #0
	beq	.L16
	bl	nla_data
	ldr	ip, [r0, #8]
	ldr	r3, [fp, #8]
	mov	r8, r0
	mov	r2, r4
	mov	r0, r5
	sub	r1, fp, #44
	str	ip, [fp, #-44]
	bl	tcf_idr_check_alloc
	subs	r3, r0, #0
	beq	.L18
	bgt	.L19
.L1:
	ldr	r2, .L23+4
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L20
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L23+20
	ldr	r0, [r3]
	rsb	r3, r0, #0
	b	.L1
.L19:
	ldr	r0, [r4]
	bl	to_connmark
	ldr	r3, [fp, #8]
	mov	r5, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L21
	mov	r3, r10
	mov	r1, r9
	ldr	r0, [r8, #4]
	sub	r2, fp, #48
	bl	tcf_action_check_ctrlact
	subs	r3, r0, #0
	blt	.L7
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r2, [fp, #-48]
	ldr	r1, [r8, #4]
	ldr	r0, [r4]
	bl	tcf_action_set_ctrlact
	mov	r3, r0
	ldr	r2, [r8]
	mov	r0, r5
	str	r2, [r5, #4]
	str	r3, [fp, #-48]
	bl	spin_unlock_bh
	ldr	r0, [fp, #-48]
	cmp	r0, #0
	beq	.L10
	bl	tcf_chain_put_by_act
	ldr	r3, [fp, #8]
	b	.L1
.L18:
	ldr	r1, .L23+24
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r1, [sp]
	str	r3, [sp, #4]
	mov	r2, r6
	mov	r3, r4
	mov	r0, r5
	ldr	r1, [fp, #-44]
	bl	tcf_idr_create
	subs	r3, r0, #0
	bne	.L22
	ldr	r0, [r4]
	bl	to_connmark
	mov	r3, r10
	mov	r6, r0
	mov	r1, r9
	ldr	r0, [r8, #4]
	sub	r2, fp, #48
	bl	tcf_action_check_ctrlact
	subs	r3, r0, #0
	blt	.L7
	ldr	r2, [fp, #-48]
	ldr	r1, [r8, #4]
	ldr	r0, [r4]
	bl	tcf_action_set_ctrlact
	ldr	r3, [r8]
	ldr	r2, [fp, #-56]
	str	r3, [r6, #4]
	mov	r0, r5
	ldr	r1, [r4]
	str	r2, [r6, #8]
	bl	tcf_idr_insert
	ldr	r3, .L23+28
	ldr	r3, [r3]
	b	.L1
.L7:
	ldr	r0, [r4]
	ldr	r1, [fp, #8]
	str	r3, [fp, #-56]
	bl	tcf_idr_release
	ldr	r3, [fp, #-56]
	b	.L1
.L21:
	mov	r1, r3
	ldr	r0, [r4]
	bl	tcf_idr_release
	ldr	r3, .L23+32
	ldr	r0, [r3]
	rsb	r3, r0, #0
	b	.L1
.L10:
	mov	r3, #0
	b	.L1
.L22:
	mov	r0, r5
	ldr	r1, [fp, #-44]
	str	r3, [fp, #-56]
	bl	tcf_idr_cleanup
	ldr	r3, [fp, #-56]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	connmark_net_id
	.word	.LC0
	.word	TCA_CONNMARK_MAX
	.word	connmark_policy
	.word	TCA_CONNMARK_PARMS
	.word	EINVAL
	.word	act_connmark_ops
	.word	ACT_P_CREATED
	.word	EEXIST
	.size	tcf_connmark_init, .-tcf_connmark_init
	.comm	connmark_policy,4,4
	.comm	connmark_net_id,4,4
	.comm	act_connmark_ops,4,4
	.comm	TCA_CONNMARK_PARMS,4,4
	.comm	TCA_CONNMARK_MAX,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	ACT_P_CREATED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
