	.file	"extr_swconfig.c_swconfig_get_attr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid type in attribute\n"
	.text
	.p2align 4
	.type	swconfig_get_attr, @function
swconfig_get_attr:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	nlmsg_data@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], 0
	mov	r14d, DWORD PTR [rax]
	neg	r12d
	call	swconfig_get_dev@PLT
	test	rax, rax
	je	.L36
	lea	r15, 16[rsp]
	mov	rbp, rax
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	call	swconfig_lookup_attr@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR 8[rbx]
	cmp	edx, 129
	je	.L37
	cmp	edx, 130
	je	.L38
.L6:
	mov	rdx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	call	rax
	mov	r12d, eax
	test	eax, eax
	jne	.L32
	mov	edi, DWORD PTR NLMSG_GOODSIZE[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	nlmsg_new@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L34
	mov	esi, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 0[r13]
	mov	r9d, r14d
	xor	r8d, r8d
	lea	rcx, switch_fam[rip]
	call	genlmsg_put@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR 8[rbx]
	cmp	eax, 130
	je	.L11
	jg	.L12
	cmp	eax, 128
	je	.L13
	cmp	eax, 129
	jne	.L15
	mov	edx, DWORD PTR SWITCH_ATTR_OP_VALUE_PORTS[rip]
	lea	rdi, 8[rsp]
	mov	rcx, r15
	mov	rsi, r13
	call	swconfig_send_ports@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L19
.L17:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r14
	call	genlmsg_end@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR [rdi]
	test	r12d, r12d
	js	.L20
	mov	rdi, rbp
	call	swconfig_put_dev@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r13
	call	genlmsg_reply@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rdi, QWORD PTR 8[rsp]
	neg	r12d
	test	rdi, rdi
	je	.L4
.L20:
	call	nlmsg_free@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	swconfig_put_dev@PLT
	test	r12d, r12d
	jne	.L1
.L9:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L36:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR SWITCH_ATTR_OP_VALUE_LINK[rip]
	mov	rsi, r13
	mov	rdi, QWORD PTR 8[rsp]
	call	swconfig_send_link@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L17
.L19:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	call	swconfig_put_dev@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	eax, 131
	jne	.L15
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR SWITCH_ATTR_OP_VALUE_INT[rip]
	mov	rdi, QWORD PTR 8[rsp]
	call	nla_put_u32@PLT
	test	eax, eax
	je	.L17
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L34
	call	nlmsg_free@PLT
.L34:
	mov	rdi, rbp
	call	swconfig_put_dev@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L37:
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 32[rbp]
	xor	esi, esi
	lea	edx, 0[0+rax*4]
	mov	QWORD PTR 32[rsp], rdi
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rdi, 8[rbp]
	mov	edx, 4
	xor	esi, esi
	mov	QWORD PTR 16[rsp], rdi
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR SWITCH_ATTR_OP_VALUE_STR[rip]
	mov	rdi, QWORD PTR 8[rsp]
	call	nla_put_string@PLT
	test	eax, eax
	je	.L17
	jmp	.L10
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	swconfig_get_attr, .-swconfig_get_attr
	.comm	switch_fam,4,4
	.comm	SWITCH_ATTR_OP_VALUE_STR,4,4
	.comm	SWITCH_ATTR_OP_VALUE_PORTS,4,4
	.comm	SWITCH_ATTR_OP_VALUE_LINK,4,4
	.comm	SWITCH_ATTR_OP_VALUE_INT,4,4
	.comm	NLMSG_GOODSIZE,4,4
	.comm	GFP_KERNEL,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_swconfig.c_swconfig_get_attr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid type in attribute\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swconfig_get_attr, %function
swconfig_get_attr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L41
	sub	sp, sp, #32
	ldr	r0, [r1, #8]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	nlmsg_data
	mov	r8, #0
	mov	r3, r0
	ldr	r9, .L41+4
	mov	r0, r5
	ldr	r10, [r3]
	ldr	r4, [r9]
	str	r8, [sp, #8]
	bl	swconfig_get_dev
	subs	r7, r0, #0
	beq	.L37
	mov	r1, r5
	add	r2, sp, #12
	str	r8, [sp, #12]
	str	r8, [sp, #16]
	str	r8, [sp, #20]
	str	r8, [sp, #24]
	bl	swconfig_lookup_attr
	subs	r6, r0, #0
	rsb	r4, r4, #0
	beq	.L4
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [r6, #4]
	cmp	r2, #129
	beq	.L38
	cmp	r2, #130
	beq	.L39
.L6:
	mov	r1, r6
	mov	r0, r7
	add	r2, sp, #12
	blx	r3
	subs	r4, r0, #0
	bne	.L33
	ldr	r2, .L41+8
	ldr	r3, .L41+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	nlmsg_new
	cmp	r0, #0
	str	r0, [sp, #8]
	beq	.L35
	stm	sp, {r4, r10}
	ldr	r3, .L41+16
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	bl	genlmsg_put
	mov	r8, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r6, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
.L14:
	ldr	r2, .L41+20
	mov	r1, r5
	ldr	r3, [sp, #12]
	ldr	r2, [r2]
	ldr	r0, [sp, #8]
	bl	swconfig_send_link
	subs	r4, r0, #0
	bge	.L18
.L20:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L33
.L21:
	bl	nlmsg_free
.L4:
	mov	r0, r7
	bl	swconfig_put_dev
	cmp	r4, #0
	bne	.L1
.L9:
	ldr	r3, .L41+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L37:
	ldr	r0, [r9]
	rsb	r4, r0, #0
	b	.L1
.L33:
	mov	r0, r7
	bl	swconfig_put_dev
	b	.L1
.L16:
	ldr	r3, .L41+28
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	nla_put_string
	cmp	r0, #0
	beq	.L18
.L10:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L35
	bl	nlmsg_free
.L35:
	mov	r0, r7
	bl	swconfig_put_dev
	b	.L9
.L38:
	ldr	r2, [r7]
	ldr	r0, [r7, #20]
	mov	r1, r8
	lsl	r2, r2, #2
	str	r0, [sp, #24]
	bl	memset
	ldr	r3, [r6]
	b	.L6
.L39:
	add	r3, r7, #4
	str	r3, [sp, #12]
	strb	r8, [r7, #4]
	strb	r8, [r7, #5]
	strb	r8, [r7, #6]
	strb	r8, [r7, #7]
	ldr	r3, [r6]
	b	.L6
.L12:
	ldr	r3, .L41+32
	ldr	r2, [sp, #20]
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	nla_put_u32
	cmp	r0, #0
	bne	.L10
.L18:
	mov	r1, r8
	ldr	r0, [sp, #8]
	bl	genlmsg_end
	ldr	r0, [sp, #8]
	ldr	r4, [r0]
	cmp	r4, #0
	blt	.L21
	mov	r0, r7
	bl	swconfig_put_dev
	mov	r1, r5
	ldr	r0, [sp, #8]
	bl	genlmsg_reply
	mov	r4, r0
	b	.L1
.L15:
	ldr	r2, .L41+36
	mov	r1, r5
	ldr	r2, [r2]
	add	r3, sp, #12
	add	r0, sp, #8
	bl	swconfig_send_ports
	subs	r4, r0, #0
	bge	.L18
	b	.L20
.L40:
	bl	__stack_chk_fail
.L11:
	ldr	r0, .L41+40
	bl	pr_debug
	ldr	r0, [sp, #8]
	ldr	r4, [r9]
	cmp	r0, #0
	rsb	r4, r4, #0
	bne	.L21
	b	.L4
.L42:
	.align	2
.L41:
	.word	.LC1
	.word	EINVAL
	.word	GFP_KERNEL
	.word	NLMSG_GOODSIZE
	.word	switch_fam
	.word	SWITCH_ATTR_OP_VALUE_LINK
	.word	ENOMEM
	.word	SWITCH_ATTR_OP_VALUE_STR
	.word	SWITCH_ATTR_OP_VALUE_INT
	.word	SWITCH_ATTR_OP_VALUE_PORTS
	.word	.LC0
	.size	swconfig_get_attr, .-swconfig_get_attr
	.comm	switch_fam,4,4
	.comm	SWITCH_ATTR_OP_VALUE_STR,4,4
	.comm	SWITCH_ATTR_OP_VALUE_PORTS,4,4
	.comm	SWITCH_ATTR_OP_VALUE_LINK,4,4
	.comm	SWITCH_ATTR_OP_VALUE_INT,4,4
	.comm	NLMSG_GOODSIZE,4,4
	.comm	GFP_KERNEL,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
