	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_executable                     ## -- Begin function executable
	.p2align	4, 0x90
_executable:                            ## @executable
	.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
	movl	%edx, %r14d
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	callq	_Strspl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_short2str
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_xfree
	jmp	LBB0_4
LBB0_3:
	movq	%rsi, %rdi
	callq	_short2str
	movq	%rax, %r15
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:
	movl	-32(%rbp), %ebx
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_S_ISDIR
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
LBB0_7:
	movl	%ebx, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_S_IXOTH@GOTPCREL(%rip), %rax
	movq	_S_IXGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_S_IXUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	$0, %eax
	testl	%ebx, %ecx
	je	LBB0_12
## %bb.9:
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_access
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_X_OK,4,2                       ## @X_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_executable                     ; -- Begin function executable
	.p2align	2
_executable:                            ; @executable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_Strspl
	mov	x21, x0
	bl	_short2str
	mov	x19, x0
	mov	x0, x21
	bl	_xfree
	b	LBB0_4
LBB0_3:
	mov	x0, x1
	bl	_short2str
	mov	x19, x0
LBB0_4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:
	ldr	w21, [sp, #8]
	cbz	w20, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_S_ISDIR
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	_S_ISREG
	cbz	x0, LBB0_12
; %bb.9:
Lloh0:
	adrp	x8, _S_IXOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IXOTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_IXGRP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IXGRP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _X_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_access
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_X_OK,4,2                       ; @X_OK
.subsections_via_symbols
