	.file	"extr_dcbnl.c_dcbnl_getcap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dcbnl_getcap, @function
dcbnl_getcap:
.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	r15d, ecx
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 72
	mov	DWORD PTR -84[rbp], edx
	mov	r8d, DWORD PTR DCB_CAP_ATTR_MAX[rip]
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	eax, 1[r8]
	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
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L4:
	mov	rdx, QWORD PTR DCB_ATTR_CAP[rip]
	mov	eax, DWORD PTR EINVAL[rip]
	mov	r12, rsp
	mov	QWORD PTR -80[rbp], r12
	mov	rdx, QWORD PTR [rsi+rdx*8]
	neg	eax
	test	rdx, rdx
	je	.L1
	mov	rcx, QWORD PTR [r14]
	cmp	QWORD PTR [rcx], 0
	je	.L1
	mov	ecx, DWORD PTR dcbnl_cap_nest[rip]
	mov	esi, r8d
	mov	rdi, r12
	call	nla_parse_nested@PLT
	test	eax, eax
	jne	.L7
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR NLMSG_DEFAULT_SIZE[rip]
	call	nlmsg_new@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	ecx, DWORD PTR RTM_GETDCB[rip]
	mov	esi, DWORD PTR -84[rbp]
	mov	r9d, ebx
	mov	edx, r15d
	mov	r8d, 8
	mov	rdi, rax
	call	NLMSG_NEW@PLT
	mov	rdi, rax
	mov	QWORD PTR -104[rbp], rax
	call	NLMSG_DATA@PLT
	mov	edx, DWORD PTR AF_UNSPEC[rip]
	mov	rsi, QWORD PTR DCB_ATTR_CAP[rip]
	mov	rdi, r13
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR DCB_CMD_GCAP[rip]
	mov	DWORD PTR [rax], edx
	call	nla_nest_start@PLT
	mov	QWORD PTR -96[rbp], rax
	test	rax, rax
	je	.L14
	mov	rcx, QWORD PTR DCB_CAP_ATTR_ALL[rip]
	mov	rax, QWORD PTR [r12+rcx*8]
	add	ecx, 1
	cmp	ecx, DWORD PTR DCB_CAP_ATTR_MAX[rip]
	mov	QWORD PTR -72[rbp], rax
	jg	.L10
	movsx	r12, ecx
	lea	r15, -60[rbp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	add	r12, 1
	cmp	DWORD PTR DCB_CAP_ATTR_MAX[rip], r12d
	jl	.L10
.L13:
	cmp	QWORD PTR -72[rbp], 0
	mov	ebx, r12d
	jne	.L11
	mov	rax, QWORD PTR -80[rbp]
	cmp	QWORD PTR [rax+r12*8], 0
	je	.L12
.L11:
	mov	rax, QWORD PTR [r14]
	mov	rdx, r15
	mov	esi, ebx
	mov	rdi, r14
	call	[QWORD PTR [rax]]
	test	eax, eax
	jne	.L12
	mov	edx, DWORD PTR -60[rbp]
	mov	esi, ebx
	mov	rdi, r13
	call	nla_put_u8@PLT
	test	eax, eax
	je	.L12
	mov	rsi, QWORD PTR -96[rbp]
	mov	rdi, r13
	call	nla_nest_cancel@PLT
.L9:
.L14:
	mov	rdi, r13
	call	kfree_skb@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L36
	lea	rsp, -40[rbp]
	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
.L35:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR -96[rbp]
	mov	rdi, r13
	call	nla_nest_end@PLT
	mov	rsi, QWORD PTR -104[rbp]
	mov	rdi, r13
	call	nlmsg_end@PLT
	mov	edx, DWORD PTR -84[rbp]
	lea	rsi, init_net[rip]
	mov	rdi, r13
	call	rtnl_unicast@PLT
	test	eax, eax
	je	.L1
	jmp	.L7
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dcbnl_getcap, .-dcbnl_getcap
	.comm	init_net,4,4
	.comm	dcbnl_cap_nest,4,4
	.comm	RTM_GETDCB,4,4
	.comm	NLMSG_DEFAULT_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EINVAL,4,4
	.comm	DCB_CMD_GCAP,4,4
	.comm	DCB_CAP_ATTR_MAX,4,4
	.comm	DCB_CAP_ATTR_ALL,8,8
	.comm	DCB_ATTR_CAP,8,8
	.comm	AF_UNSPEC,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_dcbnl.c_dcbnl_getcap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dcbnl_getcap, %function
dcbnl_getcap:
	@ args = 4, 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, #36
	ldr	r5, .L36
	ldr	r10, .L36+4
	ldr	r9, [r5]
	ldr	lr, [r10]
	ldr	r8, .L36+8
	ldr	r1, [r1, lr, lsl #2]
	lsl	ip, r9, #2
	mov	r6, r3
	ldr	lr, [r8]
	ldr	r3, .L36+12
	add	ip, ip, #11
	bic	ip, ip, #7
	str	r2, [fp, #-48]
	cmp	r1, #0
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	sp, sp, ip
	rsb	r0, lr, #0
	beq	.L1
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L36+16
	add	r7, sp, #8
	mov	r2, r1
	mov	r0, r7
	mov	r1, r9
	ldr	r3, [r3]
	bl	nla_parse_nested
	cmp	r0, #0
	beq	.L34
.L4:
	ldr	r0, [r8]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L36+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r2, .L36+20
	ldr	r3, .L36+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	nlmsg_new
	subs	r9, r0, #0
	beq	.L4
	mov	r1, #8
	ldr	ip, [fp, #4]
	ldr	r3, .L36+28
	str	ip, [sp, #4]
	str	r1, [sp]
	mov	r2, r6
	ldr	r3, [r3]
	ldr	r1, [fp, #-48]
	bl	NLMSG_NEW
	str	r0, [fp, #-56]
	bl	NLMSG_DATA
	ldr	r2, .L36+32
	ldr	r3, .L36+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r10]
	str	r2, [r0, #4]
	str	r3, [r0]
	mov	r0, r9
	bl	nla_nest_start
	subs	r3, r0, #0
	str	r3, [fp, #-52]
	beq	.L11
	ldr	r3, .L36+40
	ldr	r2, [r5]
	ldr	r3, [r3]
	add	r10, r3, #1
	cmp	r10, r2
	ldr	r6, [r7, r3, lsl #2]
	ble	.L10
	b	.L7
.L9:
	ldr	r3, [r5]
	add	r10, r10, #1
	cmp	r3, r10
	blt	.L7
.L10:
	cmp	r6, #0
	bne	.L8
	ldr	r3, [r7, r10, lsl #2]
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r3, [r4]
	mov	r1, r10
	mov	r0, r4
	ldr	r3, [r3]
	sub	r2, fp, #44
	blx	r3
	cmp	r0, #0
	bne	.L9
	mov	r1, r10
	mov	r0, r9
	ldr	r2, [fp, #-44]
	bl	nla_put_u8
	cmp	r0, #0
	beq	.L9
	mov	r0, r9
	ldr	r1, [fp, #-52]
	bl	nla_nest_cancel
.L6:
.L11:
	mov	r0, r9
	bl	kfree_skb
	b	.L4
.L7:
	ldr	r1, [fp, #-52]
	mov	r0, r9
	bl	nla_nest_end
	ldr	r1, [fp, #-56]
	mov	r0, r9
	bl	nlmsg_end
	mov	r0, r9
	ldr	r2, [fp, #-48]
	ldr	r1, .L36+44
	bl	rtnl_unicast
	cmp	r0, #0
	beq	.L1
	b	.L4
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	DCB_CAP_ATTR_MAX
	.word	DCB_ATTR_CAP
	.word	EINVAL
	.word	.LC0
	.word	dcbnl_cap_nest
	.word	GFP_KERNEL
	.word	NLMSG_DEFAULT_SIZE
	.word	RTM_GETDCB
	.word	AF_UNSPEC
	.word	DCB_CMD_GCAP
	.word	DCB_CAP_ATTR_ALL
	.word	init_net
	.size	dcbnl_getcap, .-dcbnl_getcap
	.comm	init_net,4,4
	.comm	dcbnl_cap_nest,4,4
	.comm	RTM_GETDCB,4,4
	.comm	NLMSG_DEFAULT_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EINVAL,4,4
	.comm	DCB_CMD_GCAP,4,4
	.comm	DCB_CAP_ATTR_MAX,4,4
	.comm	DCB_CAP_ATTR_ALL,4,4
	.comm	DCB_ATTR_CAP,4,4
	.comm	AF_UNSPEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
