	.file	"extr_macsec.c_macsec_add_rxsc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	macsec_add_rxsc, @function
macsec_add_rxsc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	r13, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MACSEC_RXSC_ATTR_MAX[rip]
	mov	rcx, rsp
	add	eax, 1
	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
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	rax, QWORD PTR MACSEC_ATTR_IFINDEX[rip]
	mov	rbx, rsp
	cmp	QWORD PTR 0[r13+rax*8], 0
	je	.L22
	mov	rsi, rbx
	mov	rdi, r13
	call	parse_rxsc_config@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, rbx
	call	validate_add_rxsc@PLT
	test	eax, eax
	jne	.L8
.L22:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	rtnl_lock@PLT
	mov	rdi, r12
	call	genl_info_net@PLT
	mov	rsi, r13
	mov	edi, eax
	call	get_dev_from_nl@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR MACSEC_RXSC_ATTR_SCI[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	nla_get_sci@PLT
	mov	rdi, r12
	mov	esi, eax
	call	create_rx_sc@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR MACSEC_RXSC_ATTR_ACTIVE[rip]
	mov	rdi, QWORD PTR [rbx+rax*8]
	test	rdi, rdi
	je	.L11
	call	nla_get_u8@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [r12], eax
.L11:
	xor	eax, eax
	call	rtnl_unlock@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	xor	eax, eax
	call	rtnl_unlock@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	macsec_add_rxsc, .-macsec_add_rxsc
	.comm	MACSEC_UNDEF_SCI,4,4
	.comm	MACSEC_RXSC_ATTR_SCI,8,8
	.comm	MACSEC_RXSC_ATTR_MAX,4,4
	.comm	MACSEC_RXSC_ATTR_ACTIVE,8,8
	.comm	MACSEC_ATTR_IFINDEX,8,8
	.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_macsec.c_macsec_add_rxsc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macsec_add_rxsc, %function
macsec_add_rxsc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r3, .L20
	ldr	r2, .L20+4
	ldr	r3, [r3]
	ldr	r5, [r1]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	ldr	r2, [r5, r2, lsl #2]
	sub	sp, sp, r3
	ldr	r3, .L20+8
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	beq	.L15
	mov	r6, sp
	mov	r4, r1
	mov	r0, r5
	mov	r1, r6
	bl	parse_rxsc_config
	cmp	r0, #0
	beq	.L4
.L15:
	ldr	r3, .L20+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L4:
	mov	r0, r6
	bl	validate_add_rxsc
	cmp	r0, #0
	beq	.L15
	bl	rtnl_lock
	mov	r0, r4
	bl	genl_info_net
	mov	r1, r5
	bl	get_dev_from_nl
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	ldr	r3, .L20+16
	ldr	r3, [r3]
	ldr	r0, [r6, r3, lsl #2]
	bl	nla_get_sci
	mov	r1, r0
	mov	r0, r4
	bl	create_rx_sc
	mov	r5, r0
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L19
	ldr	r3, .L20+20
	ldr	r3, [r3]
	ldr	r0, [r6, r3, lsl #2]
	cmp	r0, #0
	beq	.L8
	bl	nla_get_u8
	subs	r0, r0, #0
	movne	r0, #1
	str	r0, [r5]
.L8:
	bl	rtnl_unlock
	b	.L1
.L18:
	bl	rtnl_unlock
	mov	r0, r4
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L19:
	bl	rtnl_unlock
	mov	r0, r5
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	MACSEC_RXSC_ATTR_MAX
	.word	MACSEC_ATTR_IFINDEX
	.word	.LC0
	.word	EINVAL
	.word	MACSEC_RXSC_ATTR_SCI
	.word	MACSEC_RXSC_ATTR_ACTIVE
	.size	macsec_add_rxsc, .-macsec_add_rxsc
	.comm	MACSEC_UNDEF_SCI,4,4
	.comm	MACSEC_RXSC_ATTR_SCI,4,4
	.comm	MACSEC_RXSC_ATTR_MAX,4,4
	.comm	MACSEC_RXSC_ATTR_ACTIVE,4,4
	.comm	MACSEC_ATTR_IFINDEX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
