	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StAddL3Switch                  ## -- Begin function StAddL3Switch
	.p2align	4, 0x90
_StAddL3Switch:                         ## @StAddL3Switch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	(%r15), %r14
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rsi), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r13d
LBB0_3:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	callq	_IsSafeStr
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_L3GetSw
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rdi
	callq	_ReleaseL3Sw
	movq	_ERR_LAYER3_SW_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movl	(%r14), %edi
	callq	_LockList
	movl	(%r14), %edi
	callq	_LIST_NUM
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetServerCapsInt
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_10
## %bb.8:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_L3AddSw
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rbx
	callq	_ALog
	movq	%r15, %rdi
	callq	_IncrementServerConfigRevision
	movl	(%r14), %edi
	callq	_UnlockList
	movq	%rbx, %rdi
	callq	_ReleaseL3Sw
	jmp	LBB0_3
LBB0_10:
	movl	(%r14), %edi
	callq	_UnlockList
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ## @NO_SUPPORT_FOR_BRIDGE
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ## @SERVER_ADMIN_ONLY
	.comm	_ERR_LAYER3_SW_EXISTS,4,2       ## @ERR_LAYER3_SW_EXISTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i_max_l3_sw"

L_.str.1:                               ## @.str.1
	.asciz	"LA_ADD_L3_SW"

	.comm	_ERR_INTERNAL_ERROR,4,2         ## @ERR_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StAddL3Switch                  ; -- Begin function StAddL3Switch
	.p2align	2
_StAddL3Switch:                         ; @StAddL3Switch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x22, x0
	ldr	x21, [x0]
	ldr	x20, [x21]
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w0, [x1]
	bl	_IsEmptyStr
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
LBB0_2:
	ldr	w19, [x8]
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x23]
	bl	_IsSafeStr
	cbz	w0, LBB0_1
; %bb.5:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_L3GetSw
	cbz	x0, LBB0_7
; %bb.6:
	bl	_ReleaseL3Sw
Lloh5:
	adrp	x8, _ERR_LAYER3_SW_EXISTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_LAYER3_SW_EXISTS@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldr	w0, [x20]
	bl	_LockList
	ldr	w0, [x20]
	bl	_LIST_NUM
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_GetServerCapsInt
	cmp	x24, x0
	b.ge	LBB0_10
; %bb.8:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_L3AddSw
	cbz	x0, LBB0_10
; %bb.9:
	mov	x24, x0
	ldr	w3, [x23]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, #0
	bl	_ALog
	mov	x0, x21
	bl	_IncrementServerConfigRevision
	ldr	w0, [x20]
	bl	_UnlockList
	mov	x0, x24
	bl	_ReleaseL3Sw
	b	LBB0_3
LBB0_10:
	ldr	w0, [x20]
	bl	_UnlockList
Lloh11:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ; @NO_SUPPORT_FOR_BRIDGE
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ; @SERVER_ADMIN_ONLY
	.comm	_ERR_LAYER3_SW_EXISTS,4,2       ; @ERR_LAYER3_SW_EXISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i_max_l3_sw"

l_.str.1:                               ; @.str.1
	.asciz	"LA_ADD_L3_SW"

	.comm	_ERR_INTERNAL_ERROR,4,2         ; @ERR_INTERNAL_ERROR
.subsections_via_symbols
