	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sane_execvp                    ## -- Begin function sane_execvp
	.p2align	4, 0x90
_sane_execvp:                           ## @sane_execvp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_trace2_exec
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_execvp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_trace2_exec_result
	movl	%ebx, (%r12)
	movq	_EACCES@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ebx
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	(%r12), %ebx
LBB0_5:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	callq	_exists_in_PATH
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_ENOENT@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %eax
LBB0_11:
	movl	%eax, (%r12)
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sane_execvp                    ; -- Begin function sane_execvp
	.p2align	2
_sane_execvp:                           ; @sane_execvp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_trace2_exec
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_execvp
	cbz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_trace2_exec_result
	str	w20, [x22]
Lloh2:
	adrp	x21, _EACCES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EACCES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w20, [x22]
LBB0_4:
Lloh4:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbnz	w0, LBB0_9
; %bb.6:
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_exists_in_PATH
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x21, eq
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
.subsections_via_symbols
