	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StCreateGroup                  ## -- Begin function StCreateGroup
	.p2align	4, 0x90
_StCreateGroup:                         ## @StCreateGroup
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %r13
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rsi), %edi
	callq	_IsEmptyStr
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %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:
	movq	(%r14), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_ERR_NOT_FARM_CONTROLLER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r13, %rdi
	callq	_LockHubList
	movl	16(%rbx), %esi
	movq	%r13, %rdi
	callq	_GetHub
	movq	%r13, %rdi
	movq	%rax, %r13
	callq	_UnlockHubList
	testq	%r13, %r13
	je	LBB0_11
## %bb.8:
	cmpl	$0, (%r15)
	je	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	callq	_AcLock
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_AcIsGroup
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_ERR_GROUP_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_20
LBB0_11:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movq	%r13, %rdi
	callq	_ReleaseHub
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movl	12(%rbx), %esi
	movl	(%rbx), %edi
	movl	8(%rbx), %edx
	callq	_NewGroup
	movl	4(%rbx), %esi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_SetGroupPolicy
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_LIST_NUM
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_GetServerCapsInt
	cmpq	%rax, %r13
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_18
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_LIST_NUM
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_GetHubAdminOption
	cmpq	%rax, %r13
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_18
LBB0_17:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_AcAddGroup
	jmp	LBB0_19
LBB0_18:
	movq	_ERR_TOO_MANY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ReleaseGroup
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ALog
LBB0_20:
	movq	%r13, %rdi
	callq	_AcUnlock
	movq	%r13, %rdi
	callq	_ReleaseHub
	movq	%r14, %rdi
	callq	_IncrementServerConfigRevision
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ## @ERR_NOT_FARM_CONTROLLER
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ## @NO_SUPPORT_FOR_BRIDGE
	.comm	_ERR_NOT_SUPPORTED,4,2          ## @ERR_NOT_SUPPORTED
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_change_groups"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ## @ERR_NOT_ENOUGH_RIGHT
	.comm	_ERR_GROUP_ALREADY_EXISTS,4,2   ## @ERR_GROUP_ALREADY_EXISTS
L_.str.1:                               ## @.str.1
	.asciz	"i_max_users_per_hub"

L_.str.2:                               ## @.str.2
	.asciz	"max_groups"

	.comm	_ERR_TOO_MANY_GROUP,4,2         ## @ERR_TOO_MANY_GROUP
L_.str.3:                               ## @.str.3
	.asciz	"LA_CREATE_GROUP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StCreateGroup                  ; -- Begin function StCreateGroup
	.p2align	2
_StCreateGroup:                         ; @StCreateGroup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	x24, [x20, #8]
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, #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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x22]
	bl	_IsSafeStr
	cbz	w0, LBB0_1
; %bb.5:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	x0, x24
	bl	_LockHubList
	ldr	w1, [x22, #16]
	mov	x0, x24
	bl	_GetHub
	mov	x23, x0
	mov	x0, x24
	bl	_UnlockHubList
	cbz	x23, LBB0_11
; %bb.8:
	ldr	w8, [x21]
	cbz	w8, LBB0_12
LBB0_9:
	mov	x0, x23
	bl	_AcLock
	ldr	w1, [x22]
	mov	x0, x23
	bl	_AcIsGroup
	cbz	x0, LBB0_14
; %bb.10:
Lloh10:
	adrp	x8, _ERR_GROUP_ALREADY_EXISTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_GROUP_ALREADY_EXISTS@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	b	LBB0_20
LBB0_11:
Lloh13:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_GetHubAdminOption
	cbz	x0, LBB0_9
; %bb.13:
	mov	x0, x23
	bl	_ReleaseHub
Lloh17:
	adrp	x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	ldr	w0, [x22]
	ldp	w2, w1, [x22, #8]
	bl	_NewGroup
	mov	x24, x0
	ldr	w1, [x22, #4]
	bl	_SetGroupPolicy
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_LIST_NUM
	mov	x25, x0
	ldr	x0, [x21, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GetServerCapsInt
	cmp	x25, x0
	b.ge	LBB0_18
; %bb.15:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_GetHubAdminOption
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_LIST_NUM
	mov	x25, x0
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_GetHubAdminOption
	cmp	x25, x0
	b.ge	LBB0_18
LBB0_17:
	mov	x0, x23
	mov	x1, x24
	bl	_AcAddGroup
	b	LBB0_19
LBB0_18:
Lloh25:
	adrp	x8, _ERR_TOO_MANY_GROUP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERR_TOO_MANY_GROUP@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
LBB0_19:
	mov	x0, x24
	bl	_ReleaseGroup
	ldr	w3, [x22]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_ALog
LBB0_20:
	mov	x0, x23
	bl	_AcUnlock
	mov	x0, x23
	bl	_ReleaseHub
	mov	x0, x20
	bl	_IncrementServerConfigRevision
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ; @ERR_NOT_FARM_CONTROLLER
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_NO_SUPPORT_FOR_BRIDGE,4,2      ; @NO_SUPPORT_FOR_BRIDGE
	.comm	_ERR_NOT_SUPPORTED,4,2          ; @ERR_NOT_SUPPORTED
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_change_groups"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ; @ERR_NOT_ENOUGH_RIGHT
	.comm	_ERR_GROUP_ALREADY_EXISTS,4,2   ; @ERR_GROUP_ALREADY_EXISTS
l_.str.1:                               ; @.str.1
	.asciz	"i_max_users_per_hub"

l_.str.2:                               ; @.str.2
	.asciz	"max_groups"

	.comm	_ERR_TOO_MANY_GROUP,4,2         ; @ERR_TOO_MANY_GROUP
l_.str.3:                               ; @.str.3
	.asciz	"LA_CREATE_GROUP"

.subsections_via_symbols
