	.file	"extr_apilist.c_build_path.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	"/"
	.text
	.p2align 4
	.type	build_path, @function
build_path:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	strlen@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	lea	r13d, 1[rax]
	call	strcmp@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	rdi, r12
	mov	esi, r13d
	call	mrb_malloc@PLT
	xor	esi, esi
	mov	edx, r13d
	mov	rdi, rax
	mov	r12, rax
	call	memset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	rsi, r14
	mov	rdi, r12
	call	strcat@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	call	strlen@PLT
	lea	r13d, 1[r13+rax]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, rbp
	mov	rdi, r12
	call	strcat@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	strcat@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	build_path, .-build_path
	.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_apilist.c_build_path.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_path, %function
build_path:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r8, r0
	mov	r0, r2
	mov	r6, r2
	bl	strlen
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #46
	bne	.L6
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	add	r7, r0, #1
	cmp	r3, #0
	bne	.L6
.L3:
	mov	r1, r7
	mov	r0, r8
	bl	mrb_malloc
	mov	r2, r7
	mov	r1, #0
	mov	r5, r0
	bl	memset
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L16
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	strcat
	mov	r0, r5
	bl	strlen
	mov	r2, #2
	ldr	r1, .L17
	add	r0, r5, r0
	bl	memcpy
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	strcat
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	bl	strlen
	add	r5, r5, #2
	add	r7, r5, r0
	b	.L3
.L16:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	b	.L7
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	build_path, .-build_path
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
