	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_upd_rxsc
_macsec_upd_rxsc:                       ## @macsec_upd_rxsc
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%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, %r14
	movq	_MACSEC_ATTR_IFINDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse_rxsc_config
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_validate_add_rxsc
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_genl_info_net
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_get_rxsc_from_nl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_MACSEC_RXSC_ATTR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	callq	_nla_get_u8
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	cmpl	%ecx, (%rbx)
	je	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	cmpl	$1, %eax
	sbbl	%edx, %edx
	orl	$1, %edx
	movq	-48(%rbp), %rax
	addl	%edx, (%rax)
LBB0_9:
	movl	%ecx, (%rbx)
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MACSEC_RXSC_ATTR_MAX,4,2       ## @MACSEC_RXSC_ATTR_MAX
	.comm	_MACSEC_ATTR_IFINDEX,8,3        ## @MACSEC_ATTR_IFINDEX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MACSEC_RXSC_ATTR_ACTIVE,8,3    ## @MACSEC_RXSC_ATTR_ACTIVE
	.no_dead_strip	_macsec_upd_rxsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_upd_rxsc
_macsec_upd_rxsc:                       ; @macsec_upd_rxsc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #32
	mov	x21, x1
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [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	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MACSEC_ATTR_IFINDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACSEC_ATTR_IFINDEX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_parse_rxsc_config
	cbz	x0, LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	mov	sp, x22
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.4:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_validate_add_rxsc
	cbz	w0, LBB0_2
; %bb.6:
	bl	_rtnl_lock
	mov	x0, x21
	bl	_genl_info_net
	sub	x3, x29, #48
	sub	x4, x29, #56
	mov	x1, x19
	mov	x2, x20
	bl	_get_rxsc_from_nl
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_PTR_ERR
	b	LBB0_3
LBB0_8:
Lloh17:
	adrp	x8, _MACSEC_RXSC_ATTR_ACTIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MACSEC_RXSC_ATTR_ACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_12
; %bb.9:
	bl	_nla_get_u8
	cmp	w0, #0
	cset	w8, ne
	ldr	w9, [x19]
	cmp	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldur	x9, [x29, #-56]
	ldr	w10, [x9]
	sub	w11, w10, #1
	cmp	w0, #0
	csinc	w10, w11, w10, eq
	str	w10, [x9]
LBB0_11:
	str	w8, [x19]
LBB0_12:
	bl	_rtnl_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MACSEC_RXSC_ATTR_MAX,4,2       ; @MACSEC_RXSC_ATTR_MAX
	.comm	_MACSEC_ATTR_IFINDEX,8,3        ; @MACSEC_ATTR_IFINDEX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MACSEC_RXSC_ATTR_ACTIVE,8,3    ; @MACSEC_RXSC_ATTR_ACTIVE
	.no_dead_strip	_macsec_upd_rxsc
.subsections_via_symbols
