	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_directory
_check_directory:                       ## @check_directory
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-112(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movq	_S_IWOTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_7
LBB0_5:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	%r15, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_dirfd
	leaq	-144(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_25
## %bb.9:
	movq	-96(%rbp), %rax
	movq	_EACCES@GOTPCREL(%rip), %rbx
	cmpq	-128(%rbp), %rax
	jne	LBB0_26
## %bb.10:
	movq	-88(%rbp), %rax
	cmpq	-120(%rbp), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_27
## %bb.11:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:
	movq	%rax, %r13
	jmp	LBB0_18
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_24
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %rbx
	cmpb	$35, (%rbx)
	je	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$126, -1(%rax,%rbx)
	je	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r13), %r8
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rcx
	callq	_snprintf
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_check_one_file
	testq	%rax, %rax
	jne	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r12), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_closedir
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %rbx
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_27:
	callq	_closedir
	movq	(%rbx), %rax
	jmp	LBB0_15
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	".."

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_check_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_directory
_check_directory:                       ; @check_directory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x4]
	sub	x1, x29, #120
	mov	x0, x22
	bl	_lstat
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldur	w26, [x29, #-120]
	mov	x0, x26
	bl	_S_ISDIR
	cbz	w0, LBB0_6
; %bb.2:
	ldur	x8, [x29, #-112]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _S_IWGRP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_IWGRP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _S_IWOTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S_IWOTH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w26
	b.eq	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _EACCES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh19:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	mov	x0, x22
	bl	_opendir
	cbz	x0, LBB0_13
; %bb.8:
	mov	x26, x0
	bl	_dirfd
	sub	x1, x29, #152
	bl	_fstat
	tbnz	x0, #63, LBB0_26
; %bb.9:
	ldur	x8, [x29, #-104]
	ldur	x9, [x29, #-136]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.10:
	ldur	x8, [x29, #-96]
	ldur	x9, [x29, #-128]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.11:
	mov	x0, x26
	bl	_readdir
	cbz	x0, LBB0_24
; %bb.12:
	mov	x28, x0
	b	LBB0_18
LBB0_13:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x26
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x28]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x27, [x28]
	ldrb	w8, [x27]
	cmp	w8, #35
	b.eq	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x27
	bl	_strlen
	add	x8, x27, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #126
	b.eq	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x4, [x28]
	mov	x0, x25
	mov	x1, x24
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	mov	x0, x23
	mov	x1, x25
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_check_one_file
	cbnz	x0, LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x19]
Lloh32:
	adrp	x9, _TRUE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_24:
	mov	x0, x26
	bl	_closedir
	mov	x0, #0
	b	LBB0_15
LBB0_25:
Lloh35:
	adrp	x19, _EACCES@GOTPAGE
Lloh36:
	ldr	x19, [x19, _EACCES@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh37:
	adrp	x19, _errno@GOTPAGE
Lloh38:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
LBB0_27:
	mov	x0, x26
	bl	_closedir
	ldr	x0, [x19]
	b	LBB0_15
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	".."

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_check_directory
.subsections_via_symbols
