	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_add_rxsa
_macsec_add_rxsa:                       ## @macsec_add_rxsa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rbx
	movq	_MACSEC_RXSC_ATTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MACSEC_SA_ATTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_MACSEC_ATTR_IFINDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_parse_sa_config
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_parse_rxsc_config
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.6:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	callq	_validate_add_rxsa
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r14, %rdi
	callq	_genl_info_net
	leaq	-80(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_get_rxsc_from_nl
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_10:
	movq	_MACSEC_SA_ATTR_AN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_get_u8
	movl	%eax, %ebx
	movq	_MACSEC_SA_ATTR_KEY@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_len
	movq	-56(%rbp), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	(%r14), %rax
	movzbl	%bl, %ebx
	movl	(%rax,%rbx,4), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	(%r15), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_len
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_notice
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_data
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rdx
	movl	8(%rcx), %ecx
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_init_rx_sa
	testl	%eax, %eax
	js	LBB0_22
## %bb.16:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_MACSEC_SA_ATTR_PN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_18
## %bb.17:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rbx
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_MACSEC_SA_ATTR_PN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_nla_get_u32
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_18:
	movq	_MACSEC_SA_ATTR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	callq	_nla_get_u8
	xorl	%ecx, %ecx
	testb	%al, %al
	setne	%cl
	movl	%ecx, (%rbx)
LBB0_20:
	movl	16(%rbx), %edi
	movq	_MACSEC_SA_ATTR_KEYID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rsi
	movq	_MACSEC_KEYID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nla_memcpy
	movq	%r14, 8(%rbx)
	movq	(%r14), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_22:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
LBB0_23:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_5
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MACSEC_RXSC_ATTR_MAX,4,2       ## @MACSEC_RXSC_ATTR_MAX
	.comm	_MACSEC_SA_ATTR_MAX,4,2         ## @MACSEC_SA_ATTR_MAX
	.comm	_MACSEC_ATTR_IFINDEX,8,3        ## @MACSEC_ATTR_IFINDEX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MACSEC_SA_ATTR_AN,8,3          ## @MACSEC_SA_ATTR_AN
	.comm	_MACSEC_SA_ATTR_KEY,8,3         ## @MACSEC_SA_ATTR_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"macsec: nl: add_rxsa: bad key length: %d != %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MACSEC_SA_ATTR_PN,8,3          ## @MACSEC_SA_ATTR_PN
	.comm	_MACSEC_SA_ATTR_ACTIVE,8,3      ## @MACSEC_SA_ATTR_ACTIVE
	.comm	_MACSEC_SA_ATTR_KEYID,8,3       ## @MACSEC_SA_ATTR_KEYID
	.comm	_MACSEC_KEYID_LEN,4,2           ## @MACSEC_KEYID_LEN
	.no_dead_strip	_macsec_add_rxsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_add_rxsa
_macsec_add_rxsa:                       ; @macsec_add_rxsa
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x21, x1
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x1]
Lloh3:
	adrp	x8, _MACSEC_RXSC_ATTR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MACSEC_RXSC_ATTR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _MACSEC_SA_ATTR_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACSEC_SA_ATTR_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh13:
	adrp	x8, _MACSEC_ATTR_IFINDEX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MACSEC_ATTR_IFINDEX@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_parse_sa_config
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	bl	_parse_rxsc_config
	cbz	x0, LBB0_7
LBB0_3:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.6:
	mov	x0, x23
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_validate_add_rxsa
	cbz	w0, LBB0_3
; %bb.8:
	bl	_rtnl_lock
	mov	x0, x21
	bl	_genl_info_net
	sub	x3, x29, #80
	sub	x4, x29, #88
	mov	x1, x20
	mov	x2, x22
	bl	_get_rxsc_from_nl
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	bl	_rtnl_unlock
	mov	x0, x20
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_5
LBB0_10:
Lloh21:
	adrp	x8, _MACSEC_SA_ATTR_AN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MACSEC_SA_ATTR_AN@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_u8
	mov	x22, x0
Lloh24:
	adrp	x23, _MACSEC_SA_ATTR_KEY@GOTPAGE
Lloh25:
	ldr	x23, [x23, _MACSEC_SA_ATTR_KEY@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_len
	ldur	x8, [x29, #-88]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x20]
	ldr	w0, [x8, w22, uxtw #2]
	bl	_rtnl_dereference
	cbz	x0, LBB0_14
; %bb.12:
	bl	_rtnl_unlock
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	ldr	x8, [x23]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_len
	mov	x1, x0
	ldur	x8, [x29, #-88]
	ldr	x2, [x8]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
	bl	_rtnl_unlock
	b	LBB0_3
LBB0_14:
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_21
; %bb.15:
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_data
	mov	x1, x0
	ldur	x8, [x29, #-88]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	mov	x0, x21
	bl	_init_rx_sa
	tbnz	w0, #31, LBB0_22
; %bb.16:
	mov	w23, w22
Lloh33:
	adrp	x25, _MACSEC_SA_ATTR_PN@GOTPAGE
Lloh34:
	ldr	x25, [x25, _MACSEC_SA_ATTR_PN@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_18
; %bb.17:
	add	x22, x21, #20
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x25]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_u32
	str	w0, [x21, #24]
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_18:
Lloh35:
	adrp	x8, _MACSEC_SA_ATTR_ACTIVE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MACSEC_SA_ATTR_ACTIVE@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	x0, [x19, x8, lsl #3]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_nla_get_u8
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x21]
LBB0_20:
	ldr	w0, [x21, #16]
Lloh38:
	adrp	x8, _MACSEC_SA_ATTR_KEYID@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MACSEC_SA_ATTR_KEYID@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x1, [x19, x8, lsl #3]
Lloh41:
	adrp	x8, _MACSEC_KEYID_LEN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MACSEC_KEYID_LEN@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_nla_memcpy
	str	x20, [x21, #8]
	ldr	x8, [x20]
	ldr	w0, [x8, x23, lsl #2]
	mov	x1, x21
	bl	_rcu_assign_pointer
	bl	_rtnl_unlock
	mov	w23, #0
	b	LBB0_5
LBB0_21:
	bl	_rtnl_unlock
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_22:
	mov	x23, x0
	mov	x0, x21
	bl	_kfree
	bl	_rtnl_unlock
	b	LBB0_5
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MACSEC_RXSC_ATTR_MAX,4,2       ; @MACSEC_RXSC_ATTR_MAX
	.comm	_MACSEC_SA_ATTR_MAX,4,2         ; @MACSEC_SA_ATTR_MAX
	.comm	_MACSEC_ATTR_IFINDEX,8,3        ; @MACSEC_ATTR_IFINDEX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MACSEC_SA_ATTR_AN,8,3          ; @MACSEC_SA_ATTR_AN
	.comm	_MACSEC_SA_ATTR_KEY,8,3         ; @MACSEC_SA_ATTR_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"macsec: nl: add_rxsa: bad key length: %d != %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MACSEC_SA_ATTR_PN,8,3          ; @MACSEC_SA_ATTR_PN
	.comm	_MACSEC_SA_ATTR_ACTIVE,8,3      ; @MACSEC_SA_ATTR_ACTIVE
	.comm	_MACSEC_SA_ATTR_KEYID,8,3       ; @MACSEC_SA_ATTR_KEYID
	.comm	_MACSEC_KEYID_LEN,4,2           ; @MACSEC_KEYID_LEN
	.no_dead_strip	_macsec_add_rxsa
.subsections_via_symbols
