	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_entry_mode                ## -- Begin function proc_entry_mode
	.p2align	4, 0x90
_proc_entry_mode:                       ## @proc_entry_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	%eax, %ebx
	testl	$511, %ebx                      ## imm = 0x1FF
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	orl	$292, %ebx                      ## imm = 0x124
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	orl	$365, %ebx                      ## imm = 0x16D
	jmp	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	callq	_S_ISLNK
	movl	%ebx, %ecx
	orl	$511, %ecx                      ## imm = 0x1FF
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_entry_mode                ; -- Begin function proc_entry_mode
	.p2align	2
_proc_entry_mode:                       ; @proc_entry_mode
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _S_IFREG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _S_IFREG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, w10, wzr, eq
	orr	w19, w9, w8
	tst	w19, #0x1ff
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_S_ISREG
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #292
	orr	w19, w19, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_S_ISDIR
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #365
	orr	w19, w19, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_S_ISLNK
	orr	w8, w19, #0x1ff
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
.subsections_via_symbols
