	.file	"extr_sch_api.c_qdisc_graft.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qdisc_graft, @function
qdisc_graft:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 32[rsp], rcx
	mov	DWORD PTR 20[rsp], r8d
	test	rsi, rsi
	je	.L62
	mov	rax, QWORD PTR 8[rsi]
	mov	r14d, DWORD PTR EOPNOTSUPP[rip]
	mov	r15, rsi
	mov	rbx, QWORD PTR [rax]
	neg	r14d
	test	rbx, rbx
	je	.L20
	cmp	QWORD PTR [rbx], 0
	je	.L20
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, r15
	call	[QWORD PTR 8[rbx]]
	mov	r12, rax
	test	rax, rax
	je	.L21
	mov	rsi, rax
	mov	rdi, r15
	lea	rcx, 112[rsp]
	mov	rdx, rbp
	call	[QWORD PTR [rbx]]
	mov	rsi, r12
	mov	rdi, r15
	mov	r14d, eax
	call	[QWORD PTR 16[rbx]]
.L20:
	test	r14d, r14d
	je	.L63
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	mov	rcx, QWORD PTR 112[rsp]
	mov	edx, DWORD PTR 20[rsp]
	mov	r8, rbp
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rdx, QWORD PTR 112[rsp]
	mov	eax, DWORD PTR 4[rdi]
	mov	r12, rdi
	and	eax, DWORD PTR IFF_UP[rip]
	test	rdx, rdx
	je	.L3
	mov	edx, DWORD PTR [rdx]
	test	DWORD PTR TCQ_F_INGRESS[rip], edx
	je	.L3
	test	eax, eax
	jne	.L64
.L8:
	test	rbp, rbp
	je	.L37
.L9:
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L37
	mov	rdi, rbp
	call	rax
.L16:
	mov	rcx, QWORD PTR 112[rsp]
	mov	edx, DWORD PTR 20[rsp]
	mov	r8, rbp
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
.L18:
	mov	r14d, DWORD PTR 4[r12]
	and	r14d, DWORD PTR IFF_UP[rip]
	je	.L1
	mov	rdi, r12
	xor	r14d, r14d
	call	dev_activate@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r14d, DWORD PTR ENOENT[rip]
	neg	r14d
	test	r14d, r14d
	jne	.L1
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], ecx
	test	rbp, rbp
	je	.L5
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR TCQ_F_INGRESS[rip], edx
	je	.L65
	test	eax, eax
	je	.L8
	mov	rdi, r12
	call	dev_deactivate@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L64:
	call	dev_deactivate@PLT
	test	rbp, rbp
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L37:
	mov	DWORD PTR 12[rsp], 1
	mov	r14d, 1
.L10:
	test	rbp, rbp
	lea	rax, 16[rbp]
	lea	r15, 16[r12]
	setne	BYTE PTR 19[rsp]
	xor	r13d, r13d
	mov	QWORD PTR 40[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, rbp
	mov	rdi, r15
	call	dev_graft_qdisc@PLT
	mov	QWORD PTR 112[rsp], rax
	test	bl, bl
	jne	.L66
.L23:
	add	r13d, 1
	cmp	r13d, DWORD PTR 12[rsp]
	jnb	.L67
.L15:
	test	r13d, r13d
	setne	bl
	and	bl, BYTE PTR 19[rsp]
	test	r14d, r14d
	jne	.L13
	mov	esi, r13d
	mov	rdi, r12
	call	netdev_get_tx_queue@PLT
	mov	rsi, rbp
	mov	rdi, rax
	call	dev_graft_qdisc@PLT
	mov	QWORD PTR 112[rsp], rax
	mov	rdi, rax
	test	bl, bl
	jne	.L14
.L28:
	call	qdisc_destroy@PLT
	add	r13d, 1
	cmp	r13d, DWORD PTR 12[rsp]
	jb	.L15
.L67:
	test	r14d, r14d
	jne	.L16
.L12:
	mov	rcx, QWORD PTR 8[r12]
	mov	edx, DWORD PTR 20[rsp]
	mov	r8, rbp
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
	test	rbp, rbp
	jne	.L17
.L29:
	lea	rbp, noop_qdisc[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rdi, QWORD PTR 40[rsp]
	call	atomic_inc@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 40[rsp]
	call	atomic_inc@PLT
	mov	rdi, QWORD PTR 112[rsp]
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L65:
	test	eax, eax
	je	.L25
	mov	rdi, r12
	call	dev_deactivate@PLT
.L25:
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L68
	mov	rdi, rbp
	call	rax
	mov	rcx, QWORD PTR 8[r12]
	mov	edx, DWORD PTR 20[rsp]
	mov	r8, rbp
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
.L17:
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rax], 0
	je	.L69
.L11:
	mov	QWORD PTR 8[r12], rbp
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L5:
	test	eax, eax
	jne	.L70
	mov	ecx, DWORD PTR 12[rsp]
	xor	r14d, r14d
	test	ecx, ecx
	jne	.L10
	mov	rcx, QWORD PTR 8[r12]
	mov	edx, DWORD PTR 20[rsp]
	xor	r8d, r8d
	lea	rbp, noop_qdisc[rip]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
	jmp	.L11
.L70:
	mov	rdi, r12
	xor	r14d, r14d
	call	dev_deactivate@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L10
	mov	rcx, QWORD PTR 8[r12]
	mov	edx, DWORD PTR 20[rsp]
	xor	r8d, r8d
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	notify_and_destroy@PLT
	jmp	.L29
.L69:
	lea	rdi, 16[rbp]
	call	atomic_inc@PLT
	jmp	.L11
.L68:
	mov	edx, DWORD PTR 12[rsp]
	xor	r14d, r14d
	test	edx, edx
	je	.L12
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	qdisc_graft, .-qdisc_graft
	.comm	noop_qdisc,24,16
	.comm	TCQ_F_INGRESS,4,4
	.comm	IFF_UP,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOENT,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_sch_api.c_qdisc_graft.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qdisc_graft, %function
qdisc_graft:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r9, r1, #0
	sub	sp, sp, #28
	ldr	r4, [sp, #68]
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	beq	.L66
	ldr	r2, [r9, #4]
	ldr	r3, .L76
	ldr	r5, [r2]
	ldr	r8, [r3]
	cmp	r5, #0
	rsb	r8, r8, #0
	beq	.L20
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L20
	mov	r0, r9
	ldr	r3, [r5, #4]
	ldr	r1, [sp, #64]
	blx	r3
	subs	r10, r0, #0
	beq	.L21
	mov	r1, r10
	ldr	r8, [r5]
	add	r3, sp, #72
	mov	r2, r4
	mov	r0, r9
	blx	r8
	mov	r1, r10
	mov	r8, r0
	ldr	r3, [r5, #8]
	mov	r0, r9
	blx	r3
.L20:
	cmp	r8, #0
	beq	.L67
.L1:
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L67:
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #64]
	str	r4, [sp]
	bl	notify_and_destroy
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L66:
	ldr	r2, .L76+4
	ldr	r3, [sp, #72]
	ldr	r2, [r2]
	ldr	r1, [r0, #4]
	cmp	r3, #0
	mov	r5, r0
	and	r2, r2, r1
	beq	.L3
	ldr	ip, .L76+8
	ldr	r1, [r3]
	ldr	r3, [ip]
	tst	r1, r3
	beq	.L3
	cmp	r2, #0
	bne	.L68
.L8:
	cmp	r4, #0
	beq	.L63
.L9:
	ldr	r3, [r4, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L63
	mov	r0, r4
	blx	r3
.L16:
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #64]
	str	r4, [sp]
	bl	notify_and_destroy
.L18:
	ldr	r3, .L76+4
	ldr	r8, [r5, #4]
	ldr	r3, [r3]
	ands	r8, r8, r3
	beq	.L1
	mov	r0, r5
	bl	dev_activate
	mov	r8, #0
	b	.L1
.L21:
	ldr	r3, .L76+12
	ldr	r8, [r3]
	rsb	r8, r8, #0
	cmp	r8, #0
	bne	.L1
	b	.L67
.L3:
	cmp	r4, #0
	ldr	r9, [r5]
	beq	.L5
	ldr	r3, .L76+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L69
	cmp	r2, #0
	beq	.L8
	mov	r0, r5
	bl	dev_deactivate
	b	.L9
.L68:
	bl	dev_deactivate
	cmp	r4, #0
	bne	.L9
.L63:
	mov	r8, #1
	mov	r9, r8
.L10:
	subs	r10, r4, #0
	add	r3, r4, #8
	movne	r10, #1
	mov	r6, #0
	add	fp, r5, #12
	str	r3, [sp, #20]
	b	.L15
.L13:
	mov	r1, r4
	mov	r0, fp
	bl	dev_graft_qdisc
	cmp	r7, #0
	str	r0, [sp, #72]
	bne	.L70
.L23:
	add	r6, r6, #1
	cmp	r6, r9
	bcs	.L71
.L15:
	cmp	r6, #0
	movne	r7, r10
	moveq	r7, #0
	cmp	r8, #0
	bne	.L13
	mov	r1, r6
	mov	r0, r5
	bl	netdev_get_tx_queue
	mov	r1, r4
	bl	dev_graft_qdisc
	cmp	r7, #0
	str	r0, [sp, #72]
	bne	.L14
.L28:
	add	r6, r6, #1
	bl	qdisc_destroy
	cmp	r6, r9
	bcc	.L15
.L71:
	cmp	r8, #0
	bne	.L16
.L12:
	str	r4, [sp]
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #64]
	bl	notify_and_destroy
	cmp	r4, #0
	bne	.L17
.L29:
	ldr	r4, .L76+16
	b	.L11
.L70:
	ldr	r0, [sp, #20]
	bl	atomic_inc
	b	.L23
.L14:
	ldr	r0, [sp, #20]
	bl	atomic_inc
	ldr	r0, [sp, #72]
	b	.L28
.L69:
	cmp	r2, #0
	beq	.L25
	mov	r0, r5
	bl	dev_deactivate
.L25:
	ldr	r3, [r4, #4]
	ldr	r8, [r3, #4]
	cmp	r8, #0
	beq	.L72
	mov	r0, r4
	blx	r8
	str	r4, [sp]
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #64]
	bl	notify_and_destroy
.L17:
	ldr	r3, [r4, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L73
.L11:
	str	r4, [r5, #8]
	b	.L18
.L5:
	cmp	r2, #0
	bne	.L74
	cmp	r9, #0
	beq	.L75
.L38:
	mov	r8, r4
	b	.L10
.L74:
	mov	r0, r5
	bl	dev_deactivate
	cmp	r9, #0
	bne	.L38
	str	r4, [sp]
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #64]
	bl	notify_and_destroy
	b	.L29
.L73:
	add	r0, r4, #8
	bl	atomic_inc
	b	.L11
.L72:
	cmp	r9, #0
	beq	.L12
	b	.L10
.L75:
	str	r4, [sp]
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #64]
	bl	notify_and_destroy
	ldr	r4, .L76+16
	b	.L11
.L77:
	.align	2
.L76:
	.word	EOPNOTSUPP
	.word	IFF_UP
	.word	TCQ_F_INGRESS
	.word	ENOENT
	.word	noop_qdisc
	.size	qdisc_graft, .-qdisc_graft
	.comm	noop_qdisc,12,4
	.comm	TCQ_F_INGRESS,4,4
	.comm	IFF_UP,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
