	.file	"extr_sync-mgr.c_seaf_sync_manager_get_path_sync_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BUG: empty repo_id or path.\n"
	.text
	.p2align 4
	.globl	seaf_sync_manager_get_path_sync_status
	.type	seaf_sync_manager_get_path_sync_status, @function
seaf_sync_manager_get_path_sync_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rsi, rsi
	je	.L13
	mov	r12, rdx
	test	rdx, rdx
	je	.L13
	cmp	BYTE PTR [rdx], 0
	mov	r13, rdi
	mov	rbp, rsi
	je	.L28
	mov	rbx, rcx
	call	get_sync_info@PLT
	test	rax, rax
	je	.L6
	cmp	QWORD PTR [rax], 0
	jne	.L26
.L6:
	mov	rdi, QWORD PTR 0[r13]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rsi, rbp
	mov	edi, DWORD PTR 4[rax]
	call	g_hash_table_lookup@PLT
	mov	r15, rax
	test	rax, rax
	je	.L29
	mov	edi, DWORD PTR 8[rax]
	mov	rsi, r12
	call	g_hash_table_lookup@PLT
	mov	r14, rax
	test	rbx, rbx
	jne	.L30
.L9:
	mov	rdi, QWORD PTR 0[r13]
	call	pthread_mutex_unlock@PLT
	cmp	QWORD PTR SYNC_STATUS_SYNCED[rip], r14
	je	.L31
.L7:
	mov	rax, QWORD PTR path_status_tbl[rip]
	mov	edi, DWORD PTR [rax+r14*4]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	g_strdup@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	get_repo_sync_status@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[r13]
	call	pthread_mutex_unlock@PLT
.L26:
	mov	r14, QWORD PTR SYNC_STATUS_NONE[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	cmp	QWORD PTR SYNC_STATUS_NONE[rip], rax
	jne	.L9
	mov	edi, DWORD PTR 4[r15]
	mov	rsi, r12
	call	sync_status_tree_exists@PLT
	test	rax, rax
	je	.L10
	mov	r14, QWORD PTR SYNC_STATUS_SYNCING[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	call	seaf_warning@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rax, QWORD PTR seaf[rip]
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, DWORD PTR 4[rax]
	call	seaf_repo_manager_is_path_writable@PLT
	test	eax, eax
	jne	.L11
	mov	r14, QWORD PTR SYNC_STATUS_READONLY[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR seaf[rip]
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	seaf_filelock_manager_is_file_locked_by_me@PLT
	test	rax, rax
	je	.L12
	mov	r14, QWORD PTR SYNC_STATUS_LOCKED_BY_ME[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [r15]
	mov	rsi, r12
	call	sync_status_tree_exists@PLT
	test	rax, rax
	cmovne	r14, QWORD PTR SYNC_STATUS_SYNCED[rip]
	jmp	.L9
.L12:
	mov	rax, QWORD PTR seaf[rip]
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	seaf_filelock_manager_is_file_locked@PLT
	test	rax, rax
	cmovne	r14, QWORD PTR SYNC_STATUS_LOCKED[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	seaf_sync_manager_get_path_sync_status, .-seaf_sync_manager_get_path_sync_status
	.comm	seaf,8,8
	.comm	path_status_tbl,8,8
	.comm	SYNC_STATUS_SYNCING,8,8
	.comm	SYNC_STATUS_SYNCED,8,8
	.comm	SYNC_STATUS_READONLY,8,8
	.comm	SYNC_STATUS_NONE,8,8
	.comm	SYNC_STATUS_LOCKED_BY_ME,8,8
	.comm	SYNC_STATUS_LOCKED,8,8
	.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_sync-mgr.c_seaf_sync_manager_get_path_sync_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BUG: empty repo_id or path.\012\000"
	.text
	.align	2
	.global	seaf_sync_manager_get_path_sync_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	seaf_sync_manager_get_path_sync_status, %function
seaf_sync_manager_get_path_sync_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	cmpne	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	beq	.L30
	mov	r7, r3
	ldrb	r3, [r2]	@ zero_extendqisi2
	mov	r4, r2
	cmp	r3, #0
	beq	.L35
	mov	r6, r1
	mov	r5, r0
	bl	get_sync_info
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L33
.L5:
	ldr	r0, [r5]
	bl	pthread_mutex_lock
	ldr	r3, [r5]
	mov	r1, r6
	ldr	r0, [r3, #4]
	bl	g_hash_table_lookup
	subs	r8, r0, #0
	beq	.L36
	mov	r1, r4
	ldr	r0, [r8, #8]
	bl	g_hash_table_lookup
	cmp	r7, #0
	mov	r7, r0
	bne	.L27
.L32:
	ldr	r8, .L38
.L8:
	ldr	r0, [r5]
	bl	pthread_mutex_unlock
	ldr	r3, [r8]
	cmp	r3, r7
	beq	.L37
.L6:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	ldr	r0, [r3, r7, lsl #2]
	pop	{r4, r5, r6, r7, r8, lr}
	b	g_strdup
.L35:
	pop	{r4, r5, r6, r7, r8, lr}
	b	get_repo_sync_status
.L36:
	ldr	r0, [r5]
	bl	pthread_mutex_unlock
.L33:
	ldr	r3, .L38+8
	ldr	r7, [r3]
	b	.L6
.L27:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L32
	mov	r1, r4
	ldr	r0, [r8, #4]
	bl	sync_status_tree_exists
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L38+12
	ldr	r8, .L38
	ldr	r7, [r3]
	b	.L8
.L30:
	ldr	r0, .L38+16
	bl	seaf_warning
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	ldr	r5, .L38+20
	mov	r2, r4
	ldr	r3, [r5]
	mov	r1, r6
	ldr	r0, [r3, #4]
	bl	seaf_repo_manager_is_path_writable
	cmp	r0, #0
	ldreq	r3, .L38+24
	ldreq	r7, [r3]
	beq	.L6
.L10:
	ldr	r3, [r5]
	mov	r2, r4
	mov	r1, r6
	ldr	r0, [r3]
	bl	seaf_filelock_manager_is_file_locked_by_me
	cmp	r0, #0
	beq	.L11
	ldr	r3, .L38+28
	ldr	r7, [r3]
	b	.L6
.L9:
	ldr	r0, [r8]
	mov	r1, r4
	bl	sync_status_tree_exists
	ldr	r8, .L38
	cmp	r0, #0
	ldrne	r7, [r8]
	b	.L8
.L11:
	ldr	r3, [r5]
	mov	r2, r4
	ldr	r0, [r3]
	mov	r1, r6
	bl	seaf_filelock_manager_is_file_locked
	cmp	r0, #0
	ldrne	r3, .L38+32
	ldrne	r7, [r3]
	b	.L6
.L39:
	.align	2
.L38:
	.word	SYNC_STATUS_SYNCED
	.word	path_status_tbl
	.word	SYNC_STATUS_NONE
	.word	SYNC_STATUS_SYNCING
	.word	.LC0
	.word	seaf
	.word	SYNC_STATUS_READONLY
	.word	SYNC_STATUS_LOCKED_BY_ME
	.word	SYNC_STATUS_LOCKED
	.size	seaf_sync_manager_get_path_sync_status, .-seaf_sync_manager_get_path_sync_status
	.comm	seaf,4,4
	.comm	path_status_tbl,4,4
	.comm	SYNC_STATUS_SYNCING,4,4
	.comm	SYNC_STATUS_SYNCED,4,4
	.comm	SYNC_STATUS_READONLY,4,4
	.comm	SYNC_STATUS_NONE,4,4
	.comm	SYNC_STATUS_LOCKED_BY_ME,4,4
	.comm	SYNC_STATUS_LOCKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
