	.file	"extr_ncsi-netlink.c_ncsi_set_package_mask_nl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"NCSI: Can't use multiple packages without HWA\n"
	.text
	.p2align 4
	.type	ncsi_set_package_mask_nl, @function
ncsi_set_package_mask_nl:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rsi, rsi
	je	.L2
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR NCSI_ATTR_IFINDEX[rip]
	mov	r12, rdi
	mov	edi, DWORD PTR [rax+rdx*4]
	test	edi, edi
	je	.L2
	mov	rdx, QWORD PTR NCSI_ATTR_PACKAGE_MASK[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L2
	call	nla_get_u32@PLT
	mov	edi, DWORD PTR [r12]
	mov	ebp, eax
	call	sock_net@PLT
	mov	edi, eax
	call	get_net@PLT
	mov	esi, ebp
	mov	edi, eax
	call	ndp_from_ifindex@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	lea	r13, 12[rax]
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR NCSI_ATTR_MULTI_FLAG[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	nla_get_flag@PLT
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR NCSI_DEV_HWA[rip], eax
	je	.L7
	mov	DWORD PTR 4[rbp], 1
	xor	r12d, r12d
.L8:
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR NCSI_ATTR_PACKAGE_MASK[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	nla_get_u32@PLT
	mov	DWORD PTR 16[rbp], eax
.L9:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR NCSI_DEV_RESET[rip], eax
	jne	.L1
	lea	rdi, 8[rbp]
	call	ncsi_reset_dev@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	DWORD PTR 4[rbp], 0
	xor	r12d, r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	eax, DWORD PTR EPERM[rip]
	mov	r12d, eax
	neg	r12d
	test	eax, eax
	je	.L8
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ncsi_set_package_mask_nl, .-ncsi_set_package_mask_nl
	.comm	NCSI_DEV_RESET,4,4
	.comm	NCSI_DEV_HWA,4,4
	.comm	NCSI_ATTR_PACKAGE_MASK,8,8
	.comm	NCSI_ATTR_MULTI_FLAG,8,8
	.comm	NCSI_ATTR_IFINDEX,8,8
	.comm	EPERM,4,4
	.comm	ENODEV,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_ncsi-netlink.c_ncsi_set_package_mask_nl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NCSI: Can't use multiple packages without HWA\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ncsi_set_package_mask_nl, %function
ncsi_set_package_mask_nl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r1, #0
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r4, .L25
	ldr	r2, [r4]
	ldr	r2, [r3, r2, lsl #2]
	cmp	r2, #0
	beq	.L2
	ldr	r6, .L25+4
	ldr	r2, [r6]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r0]
	bl	sock_net
	bl	get_net
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r4, r0
	ldr	r0, [r3, r2, lsl #2]
	bl	nla_get_u32
	mov	r1, r0
	mov	r0, r4
	bl	ndp_from_ifindex
	subs	r7, r0, #0
	beq	.L24
	add	r8, r7, #12
	mov	r1, #0
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r2, .L25+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	bl	nla_get_flag
	subs	r4, r0, #0
	beq	.L6
	ldr	r3, .L25+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	mov	r3, #1
	mov	r4, #0
	str	r3, [r7, #4]
.L8:
	ldr	r2, [r6]
	ldr	r3, [r5]
	ldr	r0, [r3, r2, lsl #2]
	bl	nla_get_u32
	str	r0, [r7, #16]
.L9:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	cmp	r4, #0
	bne	.L1
	ldr	r3, .L25+16
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L1
	add	r0, r7, #8
	bl	ncsi_reset_dev
	b	.L1
.L2:
	ldr	r3, .L25+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r3, .L25+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L6:
	str	r4, [r7, #4]
	b	.L8
.L7:
	ldr	r1, .L25+28
	ldr	r0, [r7, #8]
	bl	netdev_err
	ldr	r3, .L25+32
	ldr	r4, [r3]
	cmp	r4, #0
	rsb	r4, r4, #0
	beq	.L8
	b	.L9
.L26:
	.align	2
.L25:
	.word	NCSI_ATTR_IFINDEX
	.word	NCSI_ATTR_PACKAGE_MASK
	.word	NCSI_ATTR_MULTI_FLAG
	.word	NCSI_DEV_HWA
	.word	NCSI_DEV_RESET
	.word	EINVAL
	.word	ENODEV
	.word	.LC0
	.word	EPERM
	.size	ncsi_set_package_mask_nl, .-ncsi_set_package_mask_nl
	.comm	NCSI_DEV_RESET,4,4
	.comm	NCSI_DEV_HWA,4,4
	.comm	NCSI_ATTR_PACKAGE_MASK,4,4
	.comm	NCSI_ATTR_MULTI_FLAG,4,4
	.comm	NCSI_ATTR_IFINDEX,4,4
	.comm	EPERM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
