	.file	"extr_Admin.c_StSetServerCert.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LA_SET_SERVER_CERT"
	.text
	.p2align 4
	.globl	StSetServerCert
	.type	StSetServerCert, @function
StSetServerCert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 16[rsi]
	test	rdi, rdi
	je	.L14
	mov	rbx, rsi
	mov	rsi, QWORD PTR 8[rsi]
	test	rsi, rsi
	je	.L14
	mov	edx, DWORD PTR [rdi]
	mov	eax, DWORD PTR ERR_NOT_RSA_1024[rip]
	test	edx, edx
	jne	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	r12, QWORD PTR 0[rbp]
	mov	r13, QWORD PTR [r12]
	call	CheckXandK@PLT
	test	eax, eax
	je	.L14
	mov	rsi, QWORD PTR 16[rbx]
	mov	DWORD PTR [rbx], 1
	mov	eax, DWORD PTR 4[rsi]
	test	eax, eax
	je	.L17
.L7:
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, r13
	call	SetCedarCert@PLT
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	xor	esi, esi
	call	ALog@PLT
	mov	rdi, r12
	call	IncrementServerConfigRevision@PLT
	mov	eax, DWORD PTR ERR_NO_ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR ERR_PROTOCOL_ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rsi
	call	DownloadAndSaveIntermediateCertificatesIfNecessary@PLT
	test	eax, eax
	jne	.L13
	mov	DWORD PTR [rbx], 0
.L13:
	mov	rsi, QWORD PTR 16[rbx]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	StSetServerCert, .-StSetServerCert
	.comm	SERVER_ADMIN_ONLY,4,4
	.comm	ERR_PROTOCOL_ERROR,4,4
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_NOT_RSA_1024,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Admin.c_StSetServerCert.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LA_SET_SERVER_CERT\000"
	.text
	.align	2
	.global	StSetServerCert
	.syntax unified
	.arm
	.fpu softvfp
	.type	StSetServerCert, %function
StSetServerCert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #8]
	cmp	r3, #0
	beq	.L13
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1, #4]
	cmp	r1, #0
	beq	.L16
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L5
	ldr	r3, .L19
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r6, [r0]
	mov	r5, r0
	mov	r0, r3
	ldr	r7, [r6]
	bl	CheckXandK
	cmp	r0, #0
	beq	.L16
	mov	r3, #1
	ldr	r1, [r4, #8]
	str	r3, [r4]
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L18
.L7:
	ldr	r2, [r4, #4]
	mov	r0, r7
	bl	SetCedarCert
	mov	r1, #0
	ldr	r2, .L19+4
	mov	r0, r5
	bl	ALog
	mov	r0, r6
	bl	IncrementServerConfigRevision
	ldr	r3, .L19+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L19+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r1
	bl	DownloadAndSaveIntermediateCertificatesIfNecessary
	cmp	r0, #0
	ldr	r1, [r4, #8]
	streq	r0, [r4]
	b	.L7
.L13:
	ldr	r3, .L19+12
	ldr	r0, [r3]
	bx	lr
.L20:
	.align	2
.L19:
	.word	ERR_NOT_RSA_1024
	.word	.LC0
	.word	ERR_NO_ERROR
	.word	ERR_PROTOCOL_ERROR
	.size	StSetServerCert, .-StSetServerCert
	.comm	SERVER_ADMIN_ONLY,4,4
	.comm	ERR_PROTOCOL_ERROR,4,4
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_NOT_RSA_1024,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
