	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_attr_stack
_prepare_attr_stack:                    ## @prepare_attr_stack
	.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	%rcx, %r15
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	callq	_bootstrap_attr_stack
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rbx
	movq	%rbx, (%r15)
	movl	4(%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_debug_pop
	movq	8(%rbx), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_attr_stack_free
	movq	(%r15), %rbx
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %r12
	cmpl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$47, (%r13,%r12)
	jne	LBB0_6
LBB0_7:
	movq	(%r15), %rax
	movl	4(%rax), %edi
LBB0_8:
	callq	_assert
	movq	(%r15), %rax
	movl	4(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_addstr
	movl	-48(%rbp), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	jge	LBB0_19
## %bb.9:
	movslq	%ecx, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	cltq
	leaq	(%rax,%r13), %rsi
	movq	%r12, %rdx
	subq	%rax, %rdx
	movq	%rbx, %rdi
	callq	_strbuf_add
	movq	_GITATTRIBUTES_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strbuf_addf
	movl	-44(%rbp), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_read_attr
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movq	%r12, %rsi
	callq	_strbuf_setlen
	movl	-44(%rbp), %edi
	callq	_xstrdup
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_push_stack
	movl	-48(%rbp), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	jge	LBB0_19
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movslq	%eax, %r12
	cmpl	%ecx, %r12d
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	(%r13,%r12), %edi
	callq	_is_dir_sep
	cmpq	$1, %rax
	sbbq	$-1, %r12
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	-48(%rbp), %rbx
	cmpq	%r14, %r12
	jae	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r13,%r12), %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %r12
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movl	-48(%rbp), %eax
	jmp	LBB0_18
LBB0_19:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_push_stack
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%s"

	.comm	_GITATTRIBUTES_FILE,4,2         ## @GITATTRIBUTES_FILE
	.no_dead_strip	_prepare_attr_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_attr_stack
_prepare_attr_stack:                    ; @prepare_attr_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x1, x3
	bl	_bootstrap_attr_stack
	ldr	x23, [x19]
	ldr	x24, [x23, #8]
	str	x24, [x19]
	ldr	w0, [x24, #4]
	cbnz	w0, LBB0_2
	b	LBB0_7
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_debug_pop
	ldr	x8, [x24, #8]
	str	x8, [x19]
	mov	x0, x24
	bl	_attr_stack_free
	ldr	x24, [x19]
	ldr	w0, [x24, #4]
	cbz	w0, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x25, [x24]
	cmp	w25, w20
	b.gt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x21
	mov	x2, x25
	bl	_strncmp
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x21, x25]
	cmp	w8, #47
	b.ne	LBB0_1
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
LBB0_7:
	bl	_assert
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w8, [sp, #8]
	cmp	w8, w20
	b.ge	LBB0_18
; %bb.8:
	sxtw	x27, w20
Lloh3:
	adrp	x28, _GITATTRIBUTES_FILE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GITATTRIBUTES_FILE@GOTPAGEOFF]
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x8, w8
	add	x1, x21, x8
	sub	x2, x25, x8
	add	x0, sp, #8
	bl	_strbuf_add
	ldr	w2, [x28]
	add	x0, sp, #8
	mov	x1, x24
	bl	_strbuf_addf
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	w2, #0
	bl	_read_attr
	mov	x26, x0
	add	x0, sp, #8
	mov	x1, x25
	bl	_strbuf_setlen
	ldr	w0, [sp, #12]
	bl	_xstrdup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	mov	x3, x25
	bl	_push_stack
	ldr	w8, [sp, #8]
	cmp	w8, w20
	b.ge	LBB0_18
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	sxtw	x25, w8
	cmp	w8, w20
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsb	w0, [x21, x25]
	bl	_is_dir_sep
	cmp	x0, #0
	cinc	x25, x25, ne
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	x25, x27
	b.hs	LBB0_16
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x21, x25]
	bl	_is_dir_sep
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x25, x25, #1
	cmp	x27, x25
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, x27
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #47
	bl	_strbuf_addch
	ldr	w8, [sp, #8]
	b	LBB0_9
LBB0_18:
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	bl	_push_stack
	add	x0, sp, #8
	bl	_strbuf_release
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%s"

	.comm	_GITATTRIBUTES_FILE,4,2         ; @GITATTRIBUTES_FILE
	.no_dead_strip	_prepare_attr_stack
.subsections_via_symbols
