	.file	"extr_run-command.c_prepare_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"command is empty"
.LC1:
	.string	"git"
	.text
	.p2align 4
	.type	prepare_cmd, @function
prepare_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L11
.L2:
	mov	rsi, QWORD PTR SHELL_PATH[rip]
	mov	rdi, rbp
	call	argv_array_push@PLT
	cmp	QWORD PTR 16[rbx], 0
	jne	.L12
	cmp	QWORD PTR 8[rbx], 0
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	jne	.L13
	call	argv_array_pushv@PLT
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, 47
	mov	rdi, QWORD PTR 8[rax]
	call	strchr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	prepare_shell_cmd@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	locate_in_PATH@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	free@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[rax], rbx
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	argv_array_push@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	argv_array_pushv@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC0[rip]
	call	BUG@PLT
	jmp	.L2
.L7:
	mov	rdi, rbp
	mov	r12d, -1
	call	argv_array_clear@PLT
	mov	eax, DWORD PTR ENOENT[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	prepare_cmd, .-prepare_cmd
	.comm	errno,4,4
	.comm	SHELL_PATH,8,8
	.comm	ENOENT,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_run-command.c_prepare_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"command is empty\000"
	.align	2
.LC1:
	.ascii	"git\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_cmd, %function
prepare_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r3, #0
	mov	r4, r0
	beq	.L11
.L2:
	ldr	r3, .L15
	mov	r0, r4
	ldr	r1, [r3]
	bl	argv_array_push
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L12
	ldm	r5, {r1, r3}
	cmp	r3, #0
	mov	r0, r4
	bne	.L13
	bl	argv_array_pushv
.L4:
	ldr	r3, [r4]
	mov	r1, #47
	ldr	r0, [r3, #4]
	bl	strchr
	subs	r5, r0, #0
	movne	r5, #0
	beq	.L14
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	bl	prepare_shell_cmd
	b	.L4
.L14:
	ldr	r3, [r4]
	ldr	r0, [r3, #4]
	bl	locate_in_PATH
	subs	r6, r0, #0
	beq	.L7
	ldr	r3, [r4]
	ldr	r0, [r3, #4]
	bl	free
	ldr	r3, [r4]
	mov	r0, r5
	str	r6, [r3, #4]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r4
	ldr	r1, .L15+4
	bl	argv_array_push
	mov	r0, r4
	ldr	r1, [r5]
	bl	argv_array_pushv
	b	.L4
.L11:
	ldr	r0, .L15+8
	bl	BUG
	b	.L2
.L7:
	mov	r0, r4
	bl	argv_array_clear
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	ldr	r2, [r2]
	mvn	r5, #0
	str	r2, [r3]
	b	.L1
.L16:
	.align	2
.L15:
	.word	SHELL_PATH
	.word	.LC1
	.word	.LC0
	.word	ENOENT
	.word	errno
	.size	prepare_cmd, .-prepare_cmd
	.comm	errno,4,4
	.comm	SHELL_PATH,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
