	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macsec_del_rxsc
_macsec_del_rxsc:                       ## @macsec_del_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	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_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse_rxsc_config
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.5:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MACSEC_RXSC_ATTR_SCI@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%r14,%rax,8)
	je	LBB0_2
## %bb.7:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_genl_info_net
	movq	(%r15), %rsi
	movl	%eax, %edi
	callq	_get_dev_from_nl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_9:
	movq	%rbx, %rdi
	callq	_macsec_priv
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%r14,%rax,8), %rdi
	callq	_nla_get_sci
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_del_rx_sc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rdi
	callq	_free_rx_sc
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_4
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	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_SCI,8,3       ## @MACSEC_RXSC_ATTR_SCI
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_macsec_del_rxsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macsec_del_rxsc
_macsec_del_rxsc:                       ; @macsec_del_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, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x0, [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	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _MACSEC_ATTR_IFINDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MACSEC_ATTR_IFINDEX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x0, x8, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_parse_rxsc_config
	cbz	x0, LBB0_6
LBB0_2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	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_6:
Lloh16:
	adrp	x21, _MACSEC_RXSC_ATTR_SCI@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MACSEC_RXSC_ATTR_SCI@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x19, x8, lsl #3]
	cbz	x8, LBB0_2
; %bb.7:
	bl	_rtnl_lock
	mov	x0, x20
	bl	_genl_info_net
	ldr	x1, [x20]
	bl	_get_dev_from_nl
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	bl	_rtnl_unlock
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_4
LBB0_9:
	mov	x0, x20
	bl	_macsec_priv
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x0, [x19, x8, lsl #3]
	bl	_nla_get_sci
	mov	x1, x0
	mov	x0, x20
	bl	_del_rx_sc
	cbz	x0, LBB0_11
; %bb.10:
	bl	_free_rx_sc
	bl	_rtnl_unlock
	mov	w0, #0
	b	LBB0_4
LBB0_11:
	bl	_rtnl_unlock
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	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_SCI,8,3       ; @MACSEC_RXSC_ATTR_SCI
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_macsec_del_rxsc
.subsections_via_symbols
