	.file	"extr_seafile-session.c_seafile_session_prepare.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"client id = %s, client_name = %s\n"
	.section	.rodata.str1.1
.LC2:
	.string	"use_system_proxy"
	.text
	.p2align 4
	.globl	seafile_session_prepare
	.type	seafile_session_prepare, @function
seafile_session_prepare:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 136[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	lea	rsi, 8[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	read_ccnet_conf@PLT
	mov	esi, DWORD PTR KEY_CLIENT_ID[rip]
	mov	rdi, rbx
	call	seafile_session_config_get_string@PLT
	mov	QWORD PTR 128[rbx], rax
	test	rax, rax
	je	.L12
.L2:
	mov	esi, DWORD PTR KEY_CLIENT_NAME[rip]
	mov	rdi, rbx
	call	seafile_session_config_get_string@PLT
	mov	QWORD PTR 120[rbx], rax
	mov	rdx, rax
	test	rax, rax
	je	.L13
.L5:
	mov	rsi, QWORD PTR 128[rbx]
	lea	rdi, .LC1[rip]
	call	seaf_warning@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	g_free@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	g_free@PLT
	mov	rsi, QWORD PTR KEY_SYNC_EXTRA_TEMP_FILE[rip]
	mov	rdi, rbx
	call	seafile_session_config_get_bool@PLT
	mov	rsi, QWORD PTR KEY_DISABLE_VERIFY_CERTIFICATE[rip]
	mov	rdi, rbx
	mov	QWORD PTR 112[rbx], rax
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 104[rbx], eax
	call	seafile_session_config_get_bool@PLT
	mov	rsi, QWORD PTR KEY_USE_PROXY[rip]
	mov	rdi, rbx
	mov	QWORD PTR 96[rbx], rax
	call	seafile_session_config_get_bool@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	mov	QWORD PTR 88[rbx], rax
	call	seafile_session_config_get_bool@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbx
	call	load_system_proxy@PLT
.L8:
	mov	esi, DWORD PTR KEY_CDC_AVERAGE_BLOCK_SIZE[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	seafile_session_config_get_int@PLT
	mov	rsi, QWORD PTR KEY_DISABLE_BLOCK_HASH[rip]
	mov	rdi, rbx
	test	eax, eax
	mov	edx, eax
	mov	eax, 0
	cmovns	eax, edx
	mov	DWORD PTR [rbx], eax
	call	seafile_session_config_get_bool@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	QWORD PTR 40[rbx], rax
	call	seaf_mq_manager_init@PLT
	mov	edi, DWORD PTR 28[rbx]
	call	seaf_commit_manager_init@PLT
	mov	edi, DWORD PTR 24[rbx]
	call	seaf_fs_manager_init@PLT
	mov	edi, DWORD PTR 20[rbx]
	call	seaf_branch_manager_init@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	seaf_filelock_manager_init@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	seaf_repo_manager_init@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	seaf_clone_manager_init@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	seaf_sync_manager_init@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L3
	call	g_strdup@PLT
	mov	QWORD PTR 128[rbx], rax
	mov	rdx, rax
.L4:
	mov	esi, DWORD PTR KEY_CLIENT_ID[rip]
	mov	rdi, rbx
	call	seafile_session_config_set_string@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR KEY_PROXY_TYPE[rip]
	mov	rdi, rbx
	call	seafile_session_config_get_string@PLT
	mov	esi, DWORD PTR KEY_PROXY_ADDR[rip]
	mov	rdi, rbx
	mov	QWORD PTR 80[rbx], rax
	call	seafile_session_config_get_string@PLT
	mov	esi, DWORD PTR KEY_PROXY_PORT[rip]
	xor	edx, edx
	mov	rdi, rbx
	mov	QWORD PTR 72[rbx], rax
	call	seafile_session_config_get_int@PLT
	mov	esi, DWORD PTR KEY_PROXY_USERNAME[rip]
	mov	rdi, rbx
	mov	QWORD PTR 64[rbx], rax
	call	seafile_session_config_get_string@PLT
	mov	esi, DWORD PTR KEY_PROXY_PASSWORD[rip]
	mov	rdi, rbx
	mov	QWORD PTR 56[rbx], rax
	call	seafile_session_config_get_string@PLT
	mov	QWORD PTR 48[rbx], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L6
	call	g_strdup@PLT
	mov	esi, DWORD PTR KEY_CLIENT_NAME[rip]
	mov	rdi, rbx
	mov	QWORD PTR 120[rbx], rax
	mov	rdx, rax
	call	seafile_session_config_set_string@PLT
	mov	rdx, QWORD PTR 120[rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	generate_client_id@PLT
	mov	QWORD PTR 128[rbx], rax
	mov	rdx, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC0[rip]
	call	g_strdup@PLT
	mov	QWORD PTR 120[rbx], rax
	mov	rdx, rax
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	seafile_session_prepare, .-seafile_session_prepare
	.comm	TRUE,4,4
	.comm	KEY_USE_PROXY,8,8
	.comm	KEY_SYNC_EXTRA_TEMP_FILE,8,8
	.comm	KEY_PROXY_USERNAME,4,4
	.comm	KEY_PROXY_TYPE,4,4
	.comm	KEY_PROXY_PORT,4,4
	.comm	KEY_PROXY_PASSWORD,4,4
	.comm	KEY_PROXY_ADDR,4,4
	.comm	KEY_DISABLE_VERIFY_CERTIFICATE,8,8
	.comm	KEY_DISABLE_BLOCK_HASH,8,8
	.comm	KEY_CLIENT_NAME,4,4
	.comm	KEY_CLIENT_ID,4,4
	.comm	KEY_CDC_AVERAGE_BLOCK_SIZE,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_seafile-session.c_seafile_session_prepare.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown\000"
	.align	2
.LC1:
	.ascii	"client id = %s, client_name = %s\012\000"
	.align	2
.LC2:
	.ascii	"use_system_proxy\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	seafile_session_prepare
	.syntax unified
	.arm
	.fpu softvfp
	.type	seafile_session_prepare, %function
seafile_session_prepare:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r3, #0
	mov	r4, r0
	sub	sp, sp, #20
	ldr	ip, .L15
	ldr	r5, .L15+4
	add	r2, sp, #8
	add	r1, sp, #4
	ldr	r0, [r0, #84]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	read_ccnet_conf
	mov	r0, r4
	ldr	r1, [r5]
	bl	seafile_session_config_get_string
	cmp	r0, #0
	str	r0, [r4, #80]
	beq	.L12
.L2:
	ldr	r5, .L15+8
	mov	r0, r4
	ldr	r1, [r5]
	bl	seafile_session_config_get_string
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r4, #76]
	beq	.L13
.L5:
	ldr	r1, [r4, #80]
	ldr	r0, .L15+12
	bl	seaf_warning
	ldr	r0, [sp, #4]
	bl	g_free
	ldr	r0, [sp, #8]
	bl	g_free
	ldr	r3, .L15+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	seafile_session_config_get_bool
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	ldr	r2, [r2]
	ldr	r1, [r3]
	str	r2, [r4, #68]
	str	r0, [r4, #72]
	mov	r0, r4
	bl	seafile_session_config_get_bool
	ldr	r3, .L15+28
	str	r0, [r4, #64]
	ldr	r1, [r3]
	mov	r0, r4
	bl	seafile_session_config_get_bool
	ldr	r1, .L15+32
	str	r0, [r4, #60]
	mov	r0, r4
	bl	seafile_session_config_get_bool
	subs	r5, r0, #0
	beq	.L7
	mov	r0, r4
	bl	load_system_proxy
.L8:
	ldr	r3, .L15+36
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	seafile_session_config_get_int
	ldr	r3, .L15+40
	bic	r0, r0, r0, asr #31
	ldr	r1, [r3]
	str	r0, [r4]
	mov	r0, r4
	bl	seafile_session_config_get_bool
	mov	r3, r0
	ldr	r0, [r4, #32]
	str	r3, [r4, #36]
	bl	seaf_mq_manager_init
	ldr	r0, [r4, #28]
	bl	seaf_commit_manager_init
	ldr	r0, [r4, #24]
	bl	seaf_fs_manager_init
	ldr	r0, [r4, #20]
	bl	seaf_branch_manager_init
	ldr	r0, [r4, #16]
	bl	seaf_filelock_manager_init
	ldr	r0, [r4, #12]
	bl	seaf_repo_manager_init
	ldr	r0, [r4, #8]
	bl	seaf_clone_manager_init
	ldr	r0, [r4, #4]
	bl	seaf_sync_manager_init
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L12:
	ldr	r0, [sp, #4]
	cmp	r0, #0
	beq	.L3
	bl	g_strdup
	mov	r2, r0
	str	r0, [r4, #80]
.L4:
	mov	r0, r4
	ldr	r1, [r5]
	bl	seafile_session_config_set_string
	b	.L2
.L7:
	ldr	r3, .L15+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	seafile_session_config_get_string
	ldr	r3, .L15+48
	str	r0, [r4, #56]
	ldr	r1, [r3]
	mov	r0, r4
	bl	seafile_session_config_get_string
	ldr	r3, .L15+52
	mov	r2, r5
	ldr	r1, [r3]
	str	r0, [r4, #52]
	mov	r0, r4
	bl	seafile_session_config_get_int
	ldr	r3, .L15+56
	str	r0, [r4, #48]
	ldr	r1, [r3]
	mov	r0, r4
	bl	seafile_session_config_get_string
	ldr	r3, .L15+60
	str	r0, [r4, #44]
	ldr	r1, [r3]
	mov	r0, r4
	bl	seafile_session_config_get_string
	str	r0, [r4, #40]
	b	.L8
.L13:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L6
	bl	g_strdup
	ldr	r1, [r5]
	mov	r2, r0
	str	r0, [r4, #76]
	mov	r0, r4
	bl	seafile_session_config_set_string
	ldr	r2, [r4, #76]
	b	.L5
.L3:
	bl	generate_client_id
	mov	r2, r0
	str	r0, [r4, #80]
	b	.L4
.L6:
	ldr	r0, .L15+64
	bl	g_strdup
	mov	r2, r0
	str	r0, [r4, #76]
	b	.L5
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	KEY_CLIENT_ID
	.word	KEY_CLIENT_NAME
	.word	.LC1
	.word	KEY_SYNC_EXTRA_TEMP_FILE
	.word	TRUE
	.word	KEY_DISABLE_VERIFY_CERTIFICATE
	.word	KEY_USE_PROXY
	.word	.LC2
	.word	KEY_CDC_AVERAGE_BLOCK_SIZE
	.word	KEY_DISABLE_BLOCK_HASH
	.word	KEY_PROXY_TYPE
	.word	KEY_PROXY_ADDR
	.word	KEY_PROXY_PORT
	.word	KEY_PROXY_USERNAME
	.word	KEY_PROXY_PASSWORD
	.word	.LC0
	.size	seafile_session_prepare, .-seafile_session_prepare
	.comm	TRUE,4,4
	.comm	KEY_USE_PROXY,4,4
	.comm	KEY_SYNC_EXTRA_TEMP_FILE,4,4
	.comm	KEY_PROXY_USERNAME,4,4
	.comm	KEY_PROXY_TYPE,4,4
	.comm	KEY_PROXY_PORT,4,4
	.comm	KEY_PROXY_PASSWORD,4,4
	.comm	KEY_PROXY_ADDR,4,4
	.comm	KEY_DISABLE_VERIFY_CERTIFICATE,4,4
	.comm	KEY_DISABLE_BLOCK_HASH,4,4
	.comm	KEY_CLIENT_NAME,4,4
	.comm	KEY_CLIENT_ID,4,4
	.comm	KEY_CDC_AVERAGE_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
