	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brport_store
_brport_store:                          ## @brport_store
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_brport_attr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_brport
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_simple_strtoul
	cmpq	%r13, -56(%rbp)
	je	LBB0_10
## %bb.3:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_rtnl_trylock
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.6:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	callq	_spin_lock_bh
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*(%r15)
	movq	%rax, %rbx
	movq	(%r12), %rdi
	callq	_spin_unlock_bh
	testq	%rbx, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmovneq	%rbx, %rax
	movq	%rax, %rbx
LBB0_9:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_10
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
	callq	_restart_syscall
	movq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_brport_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brport_store
_brport_store:                          ; @brport_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_brport_attr
	mov	x22, x0
	mov	x0, x20
	bl	_to_brport
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_8
; %bb.1:
	neg	x21, x21
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.eq	LBB0_10
; %bb.2:
	mov	x24, x0
	bl	_rtnl_trylock
	cbz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_spin_lock_bh
	ldr	x8, [x22]
	mov	x0, x20
	mov	x1, x24
	blr	x8
	mov	x21, x0
	ldr	x0, [x20]
	bl	_spin_unlock_bh
	cmp	x21, #0
	csel	x21, x19, x21, eq
LBB0_7:
	bl	_rtnl_unlock
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x21, x8
	b	LBB0_10
LBB0_9:
	bl	_restart_syscall
	mov	x21, x0
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_brport_store
.subsections_via_symbols
