	.file	"extr_vc-utils.c_build_checkout_path.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"entry name should not be empty.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s/"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Failed to create directory %s.\n"
	.text
	.p2align 4
	.globl	build_checkout_path
	.type	build_checkout_path, @function
build_checkout_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 40
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	strlen@PLT
	mov	rcx, rsp
	mov	DWORD PTR -68[rbp], eax
	movsx	rax, DWORD PTR SEAF_PATH_MAX[rip]
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L26
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L27
.L4:
	mov	r15, rsp
	test	ebx, ebx
	je	.L28
	mov	rcx, r14
	lea	rdx, .LC1[rip]
	mov	rdi, rsp
	call	snprintf@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	ebx, ebx
	lea	r14d, 1[rax]
	lea	r12d, [rax+rbx]
	movsx	rbx, r14d
	jle	.L7
	movsx	rax, DWORD PTR -68[rbp]
	mov	r13, QWORD PTR -80[rbp]
	sub	r13, rax
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR -80[rbp]
	sub	r14d, DWORD PTR -68[rbp]
	movsx	r14, r14d
	movzx	edx, BYTE PTR -1[rax+r14]
	mov	rax, rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	add	rax, 1
	movzx	edx, BYTE PTR -1[r13+rax]
	cmp	dl, 47
	je	.L29
.L8:
	mov	BYTE PTR [r15+rax], dl
	lea	r14d, 1[rax]
	cmp	r12d, eax
	jg	.L23
	movsx	rbx, r14d
.L7:
	mov	rdi, r15
	mov	BYTE PTR [r15+rbx], 0
	call	g_strdup@PLT
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movsx	rbx, r14d
	lea	rsi, -60[rbp]
	mov	rdi, r15
	mov	BYTE PTR [r15+rbx], 0
	call	seaf_stat@PLT
	test	rax, rax
	jne	.L12
	mov	edi, DWORD PTR -60[rbp]
	call	S_ISDIR@PLT
	test	rax, rax
	jne	.L11
.L12:
	mov	esi, 511
	mov	rdi, r15
	call	seaf_util_mkdir@PLT
	test	rax, rax
	js	.L31
.L11:
	cmp	r14d, r12d
	jle	.L13
	jmp	.L7
.L31:
	mov	rsi, r15
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	seaf_warning@PLT
	xor	eax, eax
	jmp	.L1
.L27:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L28:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	seaf_warning@PLT
	xor	eax, eax
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	build_checkout_path, .-build_checkout_path
	.comm	SEAF_PATH_MAX,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_vc-utils.c_build_checkout_path.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"entry name should not be empty.\012\000"
	.align	2
.LC1:
	.ascii	"%s/\000"
	.align	2
.LC2:
	.ascii	"Failed to create directory %s.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	build_checkout_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_checkout_path, %function
build_checkout_path:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	mov	r9, r2
	ldr	r3, .L21
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r5, r0
	bl	strlen
	ldr	r3, .L21+4
	cmp	r9, #0
	ldr	r1, [r3]
	add	r2, r1, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	beq	.L17
	mov	r7, r0
	mov	r3, r5
	mov	r0, sp
	ldr	r2, .L21+8
	bl	snprintf
	cmp	r9, #0
	mov	r6, sp
	add	r9, r7, r9
	add	r4, r7, #1
	ble	.L4
	ldr	r10, .L21+12
.L10:
	add	r5, r4, #1
	sub	r3, r4, r7
	sub	r0, r5, r7
	add	r3, r8, r3
	sub	r0, r0, #2
	sub	r1, r4, #1
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	add	r0, r8, r0
	add	r1, r6, r1
	b	.L5
.L18:
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L14
	add	r5, r5, #1
.L5:
	cmp	r4, r9
	strb	r3, [r1, #1]!
	mov	r4, r5
	blt	.L18
.L4:
	mov	r3, #0
	mov	r0, r6
	strb	r3, [r6, r4]
	bl	g_strdup
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r3, #0
	mov	r0, r6
	sub	r1, fp, #44
	strb	r3, [r6, r5]
	bl	seaf_stat
	cmp	r0, #0
	bne	.L9
	ldr	r0, [fp, #-44]
	bl	S_ISDIR
	cmp	r0, #0
	bne	.L8
.L9:
	mov	r1, r10
	mov	r0, r6
	bl	seaf_util_mkdir
	cmp	r0, #0
	blt	.L20
.L8:
	cmp	r9, r5
	bge	.L10
	b	.L4
.L20:
	mov	r1, r6
	ldr	r0, .L21+16
	bl	seaf_warning
	mov	r0, #0
	b	.L1
.L17:
	ldr	r0, .L21+20
	bl	seaf_warning
	mov	r0, r9
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	SEAF_PATH_MAX
	.word	.LC1
	.word	511
	.word	.LC2
	.word	.LC0
	.size	build_checkout_path, .-build_checkout_path
	.comm	SEAF_PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
