	.file	"extr_path.c_join_path_components.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/"
.LC1:
	.string	""
.LC2:
	.string	"%s%s"
	.text
	.p2align 4
	.globl	join_path_components
	.type	join_path_components, @function
join_path_components:
.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
	mov	r12, rsi
	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
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	rdi, rsi
	je	.L13
	mov	edx, DWORD PTR MAXPGPATH[rip]
	call	strlcpy@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L16:
	movsx	edi, BYTE PTR 1[rbx]
	call	IS_DIR_SEP@PLT
	test	rax, rax
	je	.L15
	add	rbx, 2
.L13:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 46
	je	.L16
	test	al, al
	jne	.L17
.L1:
	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
.L15:
	.cfi_restore_state
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L1
.L17:
	mov	rdi, r12
	lea	r13, .LC0[rip]
	call	skip_drive@PLT
	lea	rcx, .LC1[rip]
	mov	rdi, rbp
	mov	r12d, DWORD PTR MAXPGPATH[rip]
	cmp	BYTE PTR [rax], 0
	cmove	r13, rcx
	call	strlen@PLT
	mov	rdi, rbp
	sub	r12d, eax
	call	strlen@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r8, rbx
	mov	rcx, r13
	movsx	rdi, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdx, .LC2[rip]
	mov	esi, r12d
	add	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	snprintf@PLT
	.cfi_endproc
.LFE0:
	.size	join_path_components, .-join_path_components
	.comm	MAXPGPATH,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_path.c_join_path_components.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"%s%s\000"
	.text
	.align	2
	.global	join_path_components
	.syntax unified
	.arm
	.fpu softvfp
	.type	join_path_components, %function
join_path_components:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	cmp	r0, r1
	mov	r6, r0
	mov	r5, r1
	mov	r4, r2
	sub	sp, sp, #8
	beq	.L2
	ldr	r3, .L17
	ldr	r2, [r3]
	bl	strlcpy
.L2:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L3
	b	.L4
.L5:
	ldrb	r3, [r4, #2]!	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
.L3:
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	bl	IS_DIR_SEP
	cmp	r0, #0
	bne	.L5
	ldrb	r3, [r4]	@ zero_extendqisi2
.L4:
	cmp	r3, #0
	bne	.L16
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r6
	bl	strlen
	mov	r1, r0
	ldr	r3, .L17
	mov	r0, r5
	ldr	r3, [r3]
	add	r5, r6, r1
	sub	r6, r3, r1
	bl	skip_drive
	ldrb	ip, [r0]	@ zero_extendqisi2
	ldr	r2, .L17+4
	cmp	ip, #0
	ldr	r3, .L17+8
	mov	r1, r6
	moveq	r3, r2
	mov	r0, r5
	ldr	r2, .L17+12
	str	r4, [sp]
	bl	snprintf
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	MAXPGPATH
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	join_path_components, .-join_path_components
	.comm	MAXPGPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
