	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_stp_state
_store_stp_state:                       ## @store_stp_state
	.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	%rcx, %r15
	movq	%rdx, %rbx
	callq	_to_bridge
	movq	%rax, %r14
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_simple_strtoul
	cmpq	%rbx, -40(%rbp)
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_rtnl_trylock
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_br_stp_set_enabled
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_8
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	callq	_restart_syscall
	movq	%rax, %r15
LBB0_8:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_store_stp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_stp_state
_store_stp_state:                       ; @store_stp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_to_bridge
	mov	x20, x0
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.eq	LBB0_5
; %bb.2:
	mov	x22, x0
	bl	_rtnl_trylock
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_br_stp_set_enabled
	bl	_rtnl_unlock
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_8
LBB0_7:
	bl	_restart_syscall
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_stp_state
.subsections_via_symbols
