	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StSetHubExtOptions             ## -- Begin function StSetHubExtOptions
	.p2align	4, 0x90
_StSetHubExtOptions:                    ## @StSetHubExtOptions
	.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), %rax
	movq	_MAX_HUB_ADMIN_OPTIONS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_ERR_TOO_MANT_ITEMS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	(%r14), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	%rsi, %rbx
	movq	8(%r14), %r13
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_LockHubList
	movl	8(%rbx), %esi
	movq	%r13, %rdi
	callq	_GetHub
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_UnlockHubList
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ReleaseHub
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movl	8(%r15), %edi
	callq	_Lock
	movl	12(%r15), %edi
	movq	%rbx, %rsi
	callq	_DataToHubOptionStruct
	movl	8(%r15), %edi
	callq	_Unlock
	movl	4(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ALog
	incl	(%r15)
	movq	%r15, %rdi
	callq	_SiHubUpdateProc
	movq	%r15, %rdi
	callq	_ReleaseHub
	movq	%r14, %rdi
	callq	_IncrementServerConfigRevision
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_HUB_ADMIN_OPTIONS,8,3      ## @MAX_HUB_ADMIN_OPTIONS
	.comm	_ERR_TOO_MANT_ITEMS,4,2         ## @ERR_TOO_MANT_ITEMS
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_SUPPORTED,4,2          ## @ERR_NOT_SUPPORTED
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deny_hub_admin_change_ext_option"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ## @ERR_NOT_ENOUGH_RIGHT
L_.str.1:                               ## @.str.1
	.asciz	"LA_SET_HUB_EXT_OPTION"

	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StSetHubExtOptions             ; -- Begin function StSetHubExtOptions
	.p2align	2
_StSetHubExtOptions:                    ; @StSetHubExtOptions
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MAX_HUB_ADMIN_OPTIONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_HUB_ADMIN_OPTIONS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERR_TOO_MANT_ITEMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_TOO_MANT_ITEMS@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x8, [x19]
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_4
; %bb.3:
Lloh8:
	adrp	x8, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x21, x1
	ldr	x23, [x19, #8]
	ldr	w24, [x20]
	mov	x0, x23
	bl	_LockHubList
	ldr	w1, [x21, #8]
	mov	x0, x23
	bl	_GetHub
	mov	x22, x0
	mov	x0, x23
	bl	_UnlockHubList
	cbz	x22, LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_GetHubAdminOption
	cmp	x0, #0
	ccmp	w24, #0, #0, ne
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x22, #8]
	bl	_Lock
	ldr	w0, [x22, #12]
	mov	x1, x21
	bl	_DataToHubOptionStruct
	ldr	w0, [x22, #8]
	bl	_Unlock
	ldr	w3, [x22, #4]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	bl	_ALog
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	mov	x0, x22
	bl	_SiHubUpdateProc
	mov	x0, x22
	bl	_ReleaseHub
	mov	x0, x19
	bl	_IncrementServerConfigRevision
Lloh14:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_ReleaseHub
Lloh18:
	adrp	x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_HUB_ADMIN_OPTIONS,8,3      ; @MAX_HUB_ADMIN_OPTIONS
	.comm	_ERR_TOO_MANT_ITEMS,4,2         ; @ERR_TOO_MANT_ITEMS
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_SUPPORTED,4,2          ; @ERR_NOT_SUPPORTED
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deny_hub_admin_change_ext_option"

	.comm	_ERR_NOT_ENOUGH_RIGHT,4,2       ; @ERR_NOT_ENOUGH_RIGHT
l_.str.1:                               ; @.str.1
	.asciz	"LA_SET_HUB_EXT_OPTION"

	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
