	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_waccess                  ## -- Begin function wceex_waccess
	.p2align	4, 0x90
_wceex_waccess:                         ## @wceex_waccess
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_SHGFI_ATTRIBUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	leaq	-24(%rbp), %rdx
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_SHGetFileInfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testb	$2, %r14b
	je	LBB0_6
## %bb.3:
	movq	_SFGAO_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -24(%rbp)
	je	LBB0_6
## %bb.4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHGFI_ATTRIBUTES,4,2           ## @SHGFI_ATTRIBUTES
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
	.comm	_SFGAO_READONLY,4,2             ## @SFGAO_READONLY
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_waccess                  ; -- Begin function wceex_waccess
	.p2align	2
_wceex_waccess:                         ; @wceex_waccess
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _SHGFI_ATTRIBUTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHGFI_ATTRIBUTES@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	w1, #0
	mov	w3, #4
	bl	_SHGetFileInfo
	cbz	w0, LBB0_5
; %bb.1:
	tbz	w19, #1, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _SFGAO_READONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SFGAO_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EACCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SHGFI_ATTRIBUTES,4,2           ; @SHGFI_ATTRIBUTES
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
	.comm	_SFGAO_READONLY,4,2             ; @SFGAO_READONLY
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
