	.file	"extr_necp.c_necp_update_qos_marking.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"QoS Marking : Interface match %d for Rule %d Allowed %d"
	.align 8
.LC2:
	.string	"QoS Marking: C:%d WF:%d W:%d E:%d for Rule %d Allowed %d"
	.align 8
.LC3:
	.string	"QoS Marking: Rule %d ifp %s Allowed %d"
	.text
	.p2align 4
	.type	necp_update_qos_marking, @function
necp_update_qos_marking:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, necp_route_rules[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	necp_lookup_route_rule_locked@PLT
	test	rax, rax
	je	.L29
	mov	rsi, QWORD PTR NECP_ROUTE_RULE_QOS_MARKING[rip]
	mov	r13d, DWORD PTR FALSE[rip]
	mov	rbx, rax
	cmp	QWORD PTR [rax], rsi
	jne	.L6
	mov	r13d, DWORD PTR TRUE[rip]
.L6:
	test	rbp, rbp
	je	.L7
	mov	eax, DWORD PTR MAX_ROUTE_RULE_INTERFACES[rip]
	test	eax, eax
	jle	.L8
	sub	eax, 1
	mov	rdi, QWORD PTR 8[rbx]
	lea	r8, 8[0+rax*8]
	xor	eax, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rcx, QWORD PTR 16[rbx]
	cmp	rsi, QWORD PTR [rcx+rax]
	jne	.L9
	cmp	rdx, QWORD PTR 0[rbp]
	je	.L30
.L9:
	add	rax, 8
	cmp	r8, rax
	je	.L8
.L11:
	mov	rdx, QWORD PTR [rdi+rax]
	test	rdx, rdx
	jne	.L31
.L8:
	cmp	rsi, QWORD PTR 24[rbx]
	je	.L32
.L12:
	cmp	QWORD PTR 32[rbx], rsi
	je	.L33
.L14:
	cmp	QWORD PTR 40[rbx], rsi
	je	.L34
.L15:
	cmp	QWORD PTR 48[rbx], rsi
	je	.L16
.L27:
	mov	eax, DWORD PTR necp_debug[rip]
.L10:
	cmp	eax, 1
	jle	.L1
.L18:
	mov	rcx, QWORD PTR 8[rbp]
.L17:
	mov	edi, DWORD PTR LOG_DEBUG[rip]
	mov	r8d, r13d
	mov	rdx, r12
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	NECPLOG@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, rbp
	call	IFNET_IS_CELLULAR@PLT
	test	rax, rax
	jne	.L13
	mov	rsi, QWORD PTR NECP_ROUTE_RULE_QOS_MARKING[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbp
	call	IFNET_IS_WIFI@PLT
	test	rax, rax
	jne	.L13
	mov	rsi, QWORD PTR NECP_ROUTE_RULE_QOS_MARKING[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L29:
	cmp	DWORD PTR necp_debug[rip], 1
	mov	r13d, DWORD PTR FALSE[rip]
	jle	.L1
	lea	rcx, .LC0[rip]
	test	rbp, rbp
	je	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR necp_debug[rip], 1
	lea	rcx, .LC0[rip]
	jg	.L17
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	IFNET_IS_EXPENSIVE@PLT
	test	rax, rax
	je	.L27
.L13:
	mov	eax, DWORD PTR necp_debug[rip]
	mov	r13d, DWORD PTR TRUE[rip]
	cmp	eax, 2
	jle	.L10
	mov	rcx, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR 24[rbx]
	xor	eax, eax
	lea	rsi, .LC2[rip]
	mov	r9, QWORD PTR 48[rbx]
	mov	r8, QWORD PTR 40[rbx]
	push	r13
	.cfi_def_cfa_offset 56
	push	r12
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR LOG_DEBUG[rip]
	call	NECPLOG@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR necp_debug[rip]
	pop	rcx
	.cfi_def_cfa_offset 48
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	mov	eax, DWORD PTR necp_debug[rip]
	mov	r13d, DWORD PTR TRUE[rip]
	cmp	eax, 2
	jle	.L10
	mov	edi, DWORD PTR LOG_DEBUG[rip]
	mov	r8d, r13d
	mov	rcx, r12
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	NECPLOG@PLT
	mov	eax, DWORD PTR necp_debug[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, rbp
	call	IFNET_IS_WIRED@PLT
	test	rax, rax
	jne	.L13
	mov	rsi, QWORD PTR NECP_ROUTE_RULE_QOS_MARKING[rip]
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	necp_update_qos_marking, .-necp_update_qos_marking
	.comm	necp_route_rules,4,4
	.comm	necp_debug,4,4
	.comm	TRUE,4,4
	.comm	NECP_ROUTE_RULE_QOS_MARKING,8,8
	.comm	MAX_ROUTE_RULE_INTERFACES,4,4
	.comm	LOG_DEBUG,4,4
	.comm	FALSE,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_necp.c_necp_update_qos_marking.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"QoS Marking : Interface match %d for Rule %d Allowe"
	.ascii	"d %d\000"
	.align	2
.LC2:
	.ascii	"QoS Marking: C:%d WF:%d W:%d E:%d for Rule %d Allow"
	.ascii	"ed %d\000"
	.align	2
.LC3:
	.ascii	"QoS Marking: Rule %d ifp %s Allowed %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	necp_update_qos_marking, %function
necp_update_qos_marking:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	sub	sp, sp, #16
	ldr	r0, .L35
	mov	r6, r1
	bl	necp_lookup_route_rule_locked
	subs	r4, r0, #0
	beq	.L29
	ldr	r8, .L35+4
	ldr	r3, [r4]
	ldr	r0, [r8]
	cmp	r3, r0
	ldreq	r3, .L35+8
	ldrne	r3, .L35+12
	cmp	r5, #0
	ldr	r7, [r3]
	beq	.L7
	ldr	r3, .L35+16
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L8
	ldr	ip, [r4, #4]
	mov	r3, #0
	sub	ip, ip, #4
	b	.L11
.L31:
	ldr	r1, [r4, #8]
	ldr	r1, [r1, r3, lsl #2]
	add	r3, r3, #1
	cmp	r0, r1
	bne	.L9
	ldr	r1, [r5]
	cmp	r2, r1
	beq	.L30
.L9:
	cmp	r3, lr
	beq	.L8
.L11:
	ldr	r2, [ip, #4]!
	cmp	r2, #0
	bne	.L31
.L8:
	ldr	r3, [r4, #12]
	cmp	r0, r3
	beq	.L32
.L12:
	ldr	r3, [r4, #16]
	cmp	r3, r0
	beq	.L33
.L14:
	ldr	r3, [r4, #20]
	cmp	r3, r0
	beq	.L34
.L15:
	ldr	r3, [r4, #24]
	cmp	r3, r0
	beq	.L16
.L27:
	ldr	r3, .L35+20
	ldr	r3, [r3]
.L10:
	cmp	r3, #1
	ble	.L1
	ldr	r3, .L35+24
	ldr	r0, [r3]
.L18:
	ldr	r3, [r5, #4]
.L17:
	mov	r2, r6
	ldr	r1, .L35+28
	str	r7, [sp]
	bl	NECPLOG
.L1:
	mov	r0, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	mov	r0, r5
	bl	IFNET_IS_CELLULAR
	cmp	r0, #0
	bne	.L13
	ldr	r0, [r8]
	b	.L12
.L33:
	mov	r0, r5
	bl	IFNET_IS_WIFI
	cmp	r0, #0
	bne	.L13
	ldr	r0, [r8]
	b	.L14
.L29:
	ldr	r3, .L35+20
	ldr	r2, .L35+12
	ldr	r3, [r3]
	ldr	r7, [r2]
	cmp	r3, #1
	ble	.L1
	ldr	r3, .L35+24
	cmp	r5, #0
	ldr	r0, [r3]
	ldreq	r3, .L35+32
	beq	.L17
	b	.L18
.L7:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L1
	ldr	r2, .L35+24
	ldr	r3, .L35+32
	ldr	r0, [r2]
	b	.L17
.L16:
	mov	r0, r5
	bl	IFNET_IS_EXPENSIVE
	cmp	r0, #0
	beq	.L27
.L13:
	ldr	r8, .L35+20
	ldr	r2, .L35+8
	ldr	r3, [r8]
	ldr	r7, [r2]
	cmp	r3, #2
	ble	.L10
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #12]
	str	r7, [sp, #12]
	str	r6, [sp, #8]
	ldr	r1, [r4, #24]
	str	r1, [sp, #4]
	ldr	r0, [r4, #20]
	ldr	r1, .L35+24
	str	r0, [sp]
	ldr	r0, [r1]
	ldr	r1, .L35+36
	bl	NECPLOG
	ldr	r3, [r8]
	b	.L10
.L30:
	ldr	r4, .L35+20
	ldr	r1, .L35+8
	ldr	r3, [r4]
	ldr	r7, [r1]
	cmp	r3, #2
	ble	.L10
	ldr	r3, .L35+24
	str	r7, [sp]
	ldr	r0, [r3]
	ldr	r1, .L35+40
	mov	r3, r6
	bl	NECPLOG
	ldr	r3, [r4]
	b	.L10
.L34:
	mov	r0, r5
	bl	IFNET_IS_WIRED
	cmp	r0, #0
	bne	.L13
	ldr	r0, [r8]
	b	.L15
.L36:
	.align	2
.L35:
	.word	necp_route_rules
	.word	NECP_ROUTE_RULE_QOS_MARKING
	.word	TRUE
	.word	FALSE
	.word	MAX_ROUTE_RULE_INTERFACES
	.word	necp_debug
	.word	LOG_DEBUG
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	necp_update_qos_marking, .-necp_update_qos_marking
	.comm	necp_route_rules,4,4
	.comm	necp_debug,4,4
	.comm	TRUE,4,4
	.comm	NECP_ROUTE_RULE_QOS_MARKING,4,4
	.comm	MAX_ROUTE_RULE_INTERFACES,4,4
	.comm	LOG_DEBUG,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
