	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function itsdir
_itsdir:                                ## @itsdir
	.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
	movq	%rdi, %r15
	leaq	-32(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOVERFLOW@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	3(%rax), %rdi
	callq	_emalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	addq	%rbx, %rdi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	cmpb	$47, -1(%rbx,%r15)
	sete	%al
	jmp	LBB0_5
LBB0_3:
	movl	$1, %eax
LBB0_5:
	leaq	L_.str(%rip), %rsi
	addq	%rax, %rsi
	callq	_strcpy
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	sete	%al
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EOVERFLOW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %ebx
	movq	%r14, %rdi
	callq	_free
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EOVERFLOW,8,3                  ## @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/."

	.no_dead_strip	_itsdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function itsdir
_itsdir:                                ; @itsdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	add	x1, sp, #8
	bl	_stat
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x23, _EOVERFLOW@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EOVERFLOW@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	add	x0, x0, #3
	bl	_emalloc
	mov	x19, x0
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	add	x0, x19, x21
	cbz	x21, LBB0_5
; %bb.3:
	add	x8, x21, x20
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	cset	w8, eq
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w8, #1
LBB0_6:
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
	add	x1, x9, x8
	bl	_strcpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cmp	x0, #0
	ldr	x8, [x22]
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cset	w20, eq
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EOVERFLOW,8,3                  ; @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/."

	.no_dead_strip	_itsdir
.subsections_via_symbols
