	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NtfsFindAttributeHelper
_NtfsFindAttributeHelper:               ## @NtfsFindAttributeHelper
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rdx, %rsi
	jae	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	leaq	(%r9,%r9), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_NTFS_ATTR_TYPE_END@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NTFS_ATTR_TYPE_ATTRIBUTE_LIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_NtfsPrepareAttributeContext
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_NtfsGetAttributeSize
	movslq	%eax, %r15
	movq	_TAG_NTFS_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_FrLdrTempAlloc
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_TRACE
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	_NtfsReadAttribute
	cmpl	%r15d, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdx
	addq	%r15, %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_NtfsFindAttributeHelper
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_NtfsReleaseAttributeContext
	movq	_TAG_NTFS_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_FrLdrTempFree
	testq	%r15, %r15
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, (%rbx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rdi
	addq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_RtlEqualMemory
	testq	%rax, %rax
	jne	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %rbx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	jb	LBB0_3
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NtfsPrepareAttributeContext    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NTFS_ATTR_TYPE_END,8,3         ## @NTFS_ATTR_TYPE_END
	.comm	_NTFS_ATTR_TYPE_ATTRIBUTE_LIST,8,3 ## @NTFS_ATTR_TYPE_ATTRIBUTE_LIST
	.comm	_TAG_NTFS_LIST,4,2              ## @TAG_NTFS_LIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory: %x\n"

	.no_dead_strip	_NtfsFindAttributeHelper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NtfsFindAttributeHelper
_NtfsFindAttributeHelper:               ; @NtfsFindAttributeHelper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	x1, x2
	b.hs	LBB0_13
; %bb.1:
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	lsl	x8, x5, #1
	stp	x8, x4, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x20, _NTFS_ATTR_TYPE_END@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NTFS_ATTR_TYPE_END@GOTPAGEOFF]
Lloh2:
	adrp	x24, _NTFS_ATTR_TYPE_ATTRIBUTE_LIST@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NTFS_ATTR_TYPE_ATTRIBUTE_LIST@GOTPAGEOFF]
Lloh4:
	adrp	x21, _TAG_NTFS_LIST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TAG_NTFS_LIST@GOTPAGEOFF]
Lloh6:
	adrp	x26, l_.str@PAGE
Lloh7:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	add	x22, x8, x22
	cmp	x8, #0
	ccmp	x22, x23, #2, ne
	b.hs	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_NtfsPrepareAttributeContext
	mov	x27, x0
	bl	_NtfsGetAttributeSize
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	ldr	w1, [x21]
	mov	x0, x25
	bl	_FrLdrTempAlloc
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	mov	x1, x25
	bl	_TRACE
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x27
	mov	w2, #0
	mov	x3, x28
	mov	x4, x25
	bl	_NtfsReadAttribute
	cmp	w0, w25
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x28, x25
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x28
	mov	x3, x19
	ldr	x4, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x5, [sp, #24]                   ; 8-byte Folded Reload
	bl	_NtfsFindAttributeHelper
	mov	x25, x0
	mov	x0, x27
	bl	_NtfsReleaseAttributeContext
	ldr	w1, [x21]
	mov	x0, x28
	bl	_FrLdrTempFree
	cbnz	x25, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, x22
	ldp	x2, x1, [sp]                    ; 16-byte Folded Reload
	bl	_RtlEqualMemory
	cbz	x0, LBB0_2
; %bb.12:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_NtfsPrepareAttributeContext
LBB0_13:
	mov	x25, #0
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NTFS_ATTR_TYPE_END,8,3         ; @NTFS_ATTR_TYPE_END
	.comm	_NTFS_ATTR_TYPE_ATTRIBUTE_LIST,8,3 ; @NTFS_ATTR_TYPE_ATTRIBUTE_LIST
	.comm	_TAG_NTFS_LIST,4,2              ; @TAG_NTFS_LIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory: %x\n"

	.no_dead_strip	_NtfsFindAttributeHelper
.subsections_via_symbols
