	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StAddCa                        ## -- Begin function StAddCa
	.p2align	4, 0x90
_StAddCa:                               ## @StAddCa
	.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	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERR_NOT_FARM_CONTROLLER@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_2:
	movq	8(%rbx), %r13
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rbx
LBB0_15:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	movq	%rdi, %r15
	movq	%r13, %rdi
	callq	_LockHubList
	movl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_GetHub
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_UnlockHubList
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	cmpl	$0, (%r15)
	je	LBB0_11
LBB0_13:
	movq	%rbx, %rdi
	callq	_IncrementServerConfigRevision
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ALog
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_AddRootCert
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_5:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_7:
	movq	_ERR_NOT_RSA_1024@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_9:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_GetHubAdminOption
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ERR_NOT_ENOUGH_RIGHT@GOTPCREL(%rip), %rbx
LBB0_14:
	movq	%r12, %rdi
	callq	_ReleaseHub
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ## @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_NOT_SUPPORTED,4,2          ## @ERR_NOT_SUPPORTED
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_ERR_NOT_RSA_1024,4,2           ## @ERR_NOT_RSA_1024
	.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	"no_change_cert_list"

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

	.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	_StAddCa                        ; -- Begin function StAddCa
	.p2align	2
_StAddCa:                               ; @StAddCa
	.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	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x23, [x21, #8]
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.3:
Lloh5:
	adrp	x19, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x19, [x19, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [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_5:
	mov	x19, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.7:
	mov	x20, x0
	mov	x0, x23
	bl	_LockHubList
	ldr	w1, [x19, #8]
	mov	x0, x23
	bl	_GetHub
	mov	x22, x0
	mov	x0, x23
	bl	_UnlockHubList
	cbz	x22, LBB0_12
; %bb.8:
	ldr	w8, [x20]
	cbz	w8, LBB0_13
LBB0_9:
	mov	x0, x21
	bl	_IncrementServerConfigRevision
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_ALog
	ldr	x1, [x19]
	mov	x0, x22
	bl	_AddRootCert
Lloh9:
	adrp	x19, _ERR_NO_ERROR@GOTPAGE
Lloh10:
	ldr	x19, [x19, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh11:
	adrp	x19, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh12:
	ldr	x19, [x19, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
Lloh13:
	adrp	x19, _ERR_NOT_RSA_1024@GOTPAGE
Lloh14:
	ldr	x19, [x19, _ERR_NOT_RSA_1024@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
Lloh15:
	adrp	x19, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh16:
	ldr	x19, [x19, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_GetHubAdminOption
	cbz	x0, LBB0_9
; %bb.14:
Lloh19:
	adrp	x19, _ERR_NOT_ENOUGH_RIGHT@GOTPAGE
Lloh20:
	ldr	x19, [x19, _ERR_NOT_ENOUGH_RIGHT@GOTPAGEOFF]
LBB0_15:
	mov	x0, x22
	bl	_ReleaseHub
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ; @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_NOT_SUPPORTED,4,2          ; @ERR_NOT_SUPPORTED
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_ERR_NOT_RSA_1024,4,2           ; @ERR_NOT_RSA_1024
	.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	"no_change_cert_list"

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

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