	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tolocal                        ## -- Begin function tolocal
	.p2align	4, 0x90
_tolocal:                               ## @tolocal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$2, %edi
	jl	LBB0_18
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rax
	movq	%rdi, %rcx
	movl	%ecx, %eax
	decl	%ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rax,8), %rax
	addq	$-8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_sink
	movl	(%r15), %edi
	callq	_close
	movl	$-1, (%r13)
	movl	$-1, (%r15)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,8), %rdi
	callq	_colon
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	cmpb	$0, 1(%rax)
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %r13
	movq	(%r14,%r12,8), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%r12,8), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_okname
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	__PATH_CP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_iamrecursive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rcx
	movq	_pflag@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	movq	(%r14,%r12,8), %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%r14,%rax,8), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_susystem
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_pwd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_asprintf
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	_remin@GOTPCREL(%rip), %r15
	movq	%r15, %rcx
	movq	_remout@GOTPCREL(%rip), %r13
	movq	%r13, %r8
	callq	_do_cmd
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	jns	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_17
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exec %s%s%s %s %s"

	.comm	__PATH_CP,4,2                   ## @_PATH_CP
	.comm	_iamrecursive,8,3               ## @iamrecursive
L_.str.1:                               ## @.str.1
	.asciz	" -PR"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_pflag,8,3                      ## @pflag
L_.str.3:                               ## @.str.3
	.asciz	" -p"

L_.str.4:                               ## @.str.4
	.asciz	"malloc"

	.comm	_errs,4,2                       ## @errs
L_.str.5:                               ## @.str.5
	.asciz	"."

	.comm	_pwd,8,3                        ## @pwd
L_.str.6:                               ## @.str.6
	.asciz	"%s -f %s"

	.comm	_cmd,4,2                        ## @cmd
	.comm	_remin,4,2                      ## @remin
	.comm	_remout,4,2                     ## @remout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tolocal                        ; -- Begin function tolocal
	.p2align	2
_tolocal:                               ; @tolocal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w0, #2
	b.lt	LBB0_19
; %bb.1:
	mov	x24, x1
	add	x8, x1, w0, uxtw #3
	sub	w20, w0, #1
Lloh0:
	adrp	x25, _errs@GOTPAGE
Lloh1:
	ldr	x25, [x25, _errs@GOTPAGEOFF]
Lloh2:
	adrp	x22, _remin@GOTPAGE
Lloh3:
	ldr	x22, [x22, _remin@GOTPAGEOFF]
Lloh4:
	adrp	x23, _remout@GOTPAGE
Lloh5:
	ldr	x23, [x23, _remout@GOTPAGEOFF]
	sub	x8, x8, #8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	x21, x20
	mov	x19, x1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_sink
	ldr	w0, [x22]
	bl	_close
	mov	w8, #-1
	str	w8, [x23]
	str	w8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #8
	subs	x21, x21, #1
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_colon
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x0]
	ldrb	w8, [x0, #1]!
	cmp	w8, #0
Lloh6:
	adrp	x8, l_.str.5@PAGE
Lloh7:
	add	x8, x8, l_.str.5@PAGEOFF
	csel	x27, x8, x0, eq
	ldr	x28, [x19]
	mov	x0, x28
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	strb	wzr, [x26], #1
	ldr	x28, [x19]
	ldrb	w8, [x28]
	cbz	w8, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_okname
	cbnz	w0, LBB0_15
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, __PATH_CP@GOTPAGE
Lloh9:
	ldr	x8, [x8, __PATH_CP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _iamrecursive@GOTPAGE
Lloh12:
	ldr	x8, [x8, _iamrecursive@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x3, x9, x8, eq
Lloh18:
	adrp	x8, _pflag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pflag@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh21:
	adrp	x8, l_.str.3@PAGE
Lloh22:
	add	x8, x8, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	ldr	x9, [x19]
	ldr	x10, [x24, x20, lsl #3]
	stp	x9, x10, [sp, #8]
	add	x0, sp, #40
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_asprintf
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #40]
	bl	_susystem
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #40]
	bl	_free
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x28
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh27:
	adrp	x8, _pwd@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pwd@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x28, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh30:
	adrp	x8, _cmd@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cmd@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x0, sp, #40
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x3, x27
	bl	_asprintf
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp, #40]
	mov	x0, x26
	mov	x1, x28
	mov	x3, x22
	mov	x4, x23
	bl	_do_cmd
	mov	x26, x0
	ldr	x0, [sp, #40]
	bl	_free
	tbz	x26, #63, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	b	LBB0_3
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exec %s%s%s %s %s"

	.comm	__PATH_CP,4,2                   ; @_PATH_CP
	.comm	_iamrecursive,8,3               ; @iamrecursive
l_.str.1:                               ; @.str.1
	.asciz	" -PR"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_pflag,8,3                      ; @pflag
l_.str.3:                               ; @.str.3
	.asciz	" -p"

l_.str.4:                               ; @.str.4
	.asciz	"malloc"

	.comm	_errs,4,2                       ; @errs
l_.str.5:                               ; @.str.5
	.asciz	"."

	.comm	_pwd,8,3                        ; @pwd
l_.str.6:                               ; @.str.6
	.asciz	"%s -f %s"

	.comm	_cmd,4,2                        ; @cmd
	.comm	_remin,4,2                      ; @remin
	.comm	_remout,4,2                     ; @remout
.subsections_via_symbols
