	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_leaf_dir
_is_leaf_dir:                           ## @is_leaf_dir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_readdir
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsp
	movq	%r15, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	_DT_DIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_DT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r15
	movq	%rsp, %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r14), %rcx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_sprintf
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	$1, %ebx
	jmp	LBB0_16
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_12:
	movl	$1, %ebx
LBB0_15:
	movq	%r13, %rsp
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	%r15, %rdi
	callq	_closedir
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

	.comm	_DT_DIR,8,3                     ## @DT_DIR
	.comm	_DT_UNKNOWN,8,3                 ## @DT_UNKNOWN
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.no_dead_strip	_is_leaf_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_leaf_dir
_is_leaf_dir:                           ; @is_leaf_dir
	.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, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_opendir
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	bl	_readdir
	cbz	x0, LBB0_12
; %bb.2:
	mov	x24, x0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x26, _DT_DIR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _DT_DIR@GOTPAGEOFF]
Lloh9:
	adrp	x27, _DT_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x27, [x27, _DT_UNKNOWN@GOTPAGEOFF]
Lloh11:
	adrp	x23, l_.str.2@PAGE
Lloh12:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	sp, x28
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x24]
	mov	x0, x25
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, sp
Lloh13:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	x3, [x24]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	bl	_sprintf
	sub	x1, x29, #96
	mov	x0, x25
	bl	_stat
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-96]
	bl	_S_ISDIR
	cbz	x0, LBB0_3
; %bb.11:
	mov	w20, #0
	b	LBB0_19
LBB0_12:
	mov	w20, #1
LBB0_13:
	mov	x0, x19
	bl	_closedir
	b	LBB0_15
LBB0_14:
	mov	w20, #0
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.16:
	mov	x0, x20
	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:
	mov	w20, #0
	b	LBB0_13
LBB0_18:
	mov	w20, #1
LBB0_19:
	mov	sp, x28
	b	LBB0_13
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

	.comm	_DT_DIR,8,3                     ; @DT_DIR
	.comm	_DT_UNKNOWN,8,3                 ; @DT_UNKNOWN
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.no_dead_strip	_is_leaf_dir
.subsections_via_symbols
