	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IsoSearchDirectoryBufferForFile
_IsoSearchDirectoryBufferForFile:       ## @IsoSearchDirectoryBufferForFile
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-80(%rbp), %rdi
	movl	$128, %esi
	callq	_RtlZeroMemory
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r15
	xorl	%r12d, %r12d
	movq	%r13, %r14
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_TRACE
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_RtlZeroMemory
	cmpq	$0, (%rbx)
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	addq	(%r14), %r12
	cmpq	$0, (%r13,%r12)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r13), %r14
	cmpq	-104(%rbp), %r12                ## 8-byte Folded Reload
	jl	LBB0_7
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ROUND_UP
	movq	%rax, %r12
	movq	%rax, %r14
	addq	%r13, %r14
	cmpq	-104(%rbp), %r12                ## 8-byte Folded Reload
	jge	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %eax
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %eax
	leaq	L_.str.1(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %eax
	je	LBB0_10
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	jl	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rcx
	movl	(%rcx,%rax,4), %ecx
	cmpl	$59, %ecx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movb	%cl, -80(%rbp,%rax)
	incq	%rax
	movslq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_17
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -80(%rbp,%rax)
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movq	%r15, %rbx
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	%rax, %r15
	movq	%rbx, %r15
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jne	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	__stricmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.21:
	movl	32(%r14), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 20(%rcx)
	movl	28(%r14), %eax
	movl	%eax, 16(%rcx)
	movq	$0, 8(%rcx)
	movl	24(%r14), %eax
	shrl	%eax
	andl	$1, %eax
	movl	%eax, (%rcx)
	jmp	LBB0_22
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_22
LBB0_1:
	movq	%rax, %rbx
LBB0_22:
	movq	(%rbx), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IsoSearchDirectoryBufferForFile() DirectoryBuffer = 0x%x DirectoryLength = %d FileName = %s\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_SECTORSIZE,4,2                 ## @SECTORSIZE
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Name '.'\n"

L_.str.2:                               ## @.str.2
	.asciz	"Name '..'\n"

L_.str.3:                               ## @.str.3
	.asciz	"Name '%s'\n"

	.no_dead_strip	_IsoSearchDirectoryBufferForFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IsoSearchDirectoryBufferForFile
_IsoSearchDirectoryBufferForFile:       ; @IsoSearchDirectoryBufferForFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	stp	x1, x2, [sp, #8]
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x27, sp, #40
	add	x0, sp, #40
	mov	w1, #128
	bl	_RtlZeroMemory
Lloh5:
	adrp	x28, _TRUE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _TRUE@GOTPAGEOFF]
	ldr	x8, [x28]
	cbz	x8, LBB0_20
; %bb.1:
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	mov	x23, #0
Lloh7:
	adrp	x19, _SECTORSIZE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _SECTORSIZE@GOTPAGEOFF]
	mov	x22, x26
Lloh9:
	adrp	x24, l_.str.3@PAGE
Lloh10:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_TRACE
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #40
	mov	w1, #128
	bl	_RtlZeroMemory
	ldr	x8, [x28]
	cbz	x8, LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x22]
	add	x23, x8, x23
	add	x22, x23, x26
	ldr	x8, [x22]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19]
	mov	x0, x23
	bl	_ROUND_UP
	mov	x23, x0
	add	x22, x0, x26
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x23, x21
	b.ge	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	b.lt	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22, #16]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #59
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	strb	w9, [x27, x8]
	add	x8, x8, #1
	ldrsw	x9, [x22, #8]
	cmp	x8, x9
	b.lt	LBB0_14
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x27, x8]
	str	x27, [sp]
	mov	x0, x24
	bl	_TRACE
	mov	x0, x20
	bl	_strlen
	mov	x25, x0
	add	x0, sp, #40
	bl	_strlen
	cmp	x25, x0
	b.ne	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #40
	mov	x0, x20
	bl	__stricmp
	cbnz	x0, LBB0_4
; %bb.19:
	ldur	d0, [x22, #28]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	d0, [x9, #16]
	str	xzr, [x9, #8]
	ldr	w8, [x22, #24]
	ubfx	w8, w8, #1, #1
	str	w8, [x9]
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_21:
	ldr	x0, [x8]
	ldr	x8, [sp, #72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IsoSearchDirectoryBufferForFile() DirectoryBuffer = 0x%x DirectoryLength = %d FileName = %s\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_SECTORSIZE,4,2                 ; @SECTORSIZE
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Name '.'\n"

l_.str.2:                               ; @.str.2
	.asciz	"Name '..'\n"

l_.str.3:                               ; @.str.3
	.asciz	"Name '%s'\n"

	.no_dead_strip	_IsoSearchDirectoryBufferForFile
.subsections_via_symbols
