	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_cmd
_prepare_cmd:                           ## @prepare_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	movq	_SHELL_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	movq	(%rbx), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_argv_array_pushv
	jmp	LBB0_7
LBB0_5:
	cmpq	$0, 8(%rbx)
	movq	(%rbx), %rsi
	je	LBB0_4
## %bb.6:
	movq	%r15, %rdi
	callq	_prepare_shell_cmd
LBB0_7:
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	movl	$47, %esi
	callq	_strchr
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_locate_in_PATH
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_free
	movq	(%r15), %rax
	movq	%rbx, 8(%rax)
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_argv_array_clear
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command is empty"

	.comm	_SHELL_PATH,8,3                 ## @SHELL_PATH
L_.str.1:                               ## @.str.1
	.asciz	"git"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_prepare_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_cmd
_prepare_cmd:                           ; @prepare_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
Lloh2:
	adrp	x8, _SHELL_PATH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SHELL_PATH@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_argv_array_push
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_argv_array_push
	ldr	x1, [x20]
LBB0_4:
	mov	x0, x19
	bl	_argv_array_pushv
	b	LBB0_7
LBB0_5:
	ldp	x1, x8, [x20]
	cbz	x8, LBB0_4
; %bb.6:
	mov	x0, x19
	bl	_prepare_shell_cmd
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	w1, #47
	bl	_strchr
	cbz	w0, LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_locate_in_PATH
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_free
	mov	w0, #0
	ldr	x8, [x19]
	str	x20, [x8, #8]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_argv_array_clear
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command is empty"

	.comm	_SHELL_PATH,8,3                 ; @SHELL_PATH
l_.str.1:                               ; @.str.1
	.asciz	"git"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_prepare_cmd
.subsections_via_symbols
