	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_precompose_utf8_readdir        ## -- Begin function precompose_utf8_readdir
	.p2align	4, 0x90
_precompose_utf8_readdir:               ## @precompose_utf8_readdir
	.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	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_strlen
	movl	%eax, %r15d
	incl	%r15d
	movslq	%r15d, %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%r14), %rax
	cmpq	%r12, (%rax)
	jae	LBB0_4
## %bb.3:
	leaq	-4(%r12), %rsi
	movq	%rax, %rdi
	callq	_xrealloc
	movq	%rax, 8(%r14)
	movq	%r12, (%rax)
LBB0_4:
	movl	8(%rbx), %ecx
	movl	%ecx, 20(%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movq	_precomposed_unicode@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_11
## %bb.5:
	movl	(%rbx), %edi
	movq	$-1, %rsi
	xorl	%edx, %edx
	callq	_has_non_ascii
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	(%r14), %rdi
	cmpq	$-1, %rdi
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	%r12, -56(%rbp)
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_errno@GOTPCREL(%rip), %r12
	movl	$0, (%r12)
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-64(%rbp), %r8
	callq	_iconv
	cmpl	$0, (%r12)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, -56(%rbp)
	jne	LBB0_11
## %bb.10:
	testl	%r15d, %r15d
	jne	LBB0_12
LBB0_11:
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rdi
	movl	(%rbx), %esi
	callq	_strlcpy
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	8(%r14), %rax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_repo_encoding@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_path_encoding@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_die
	testl	%r15d, %r15d
	jne	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_precomposed_unicode,4,2        ## @precomposed_unicode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iconv_open(%s,%s) failed, but needed:\n    precomposed unicode is not supported.\n    If you want to use decomposed unicode, run\n    \"git config core.precomposeunicode false\"\n"

	.comm	_repo_encoding,4,2              ## @repo_encoding
	.comm	_path_encoding,4,2              ## @path_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_precompose_utf8_readdir        ; -- Begin function precompose_utf8_readdir
	.p2align	2
_precompose_utf8_readdir:               ; @precompose_utf8_readdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_readdir
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x23, w8
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cmp	x8, x23
	b.hs	LBB0_3
; %bb.2:
	sub	x1, x23, #4
	bl	_xrealloc
	str	x0, [x19, #8]
	str	x23, [x0]
LBB0_3:
	ldur	d0, [x20, #4]
	str	d0, [x0, #16]
Lloh2:
	adrp	x8, _precomposed_unicode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _precomposed_unicode@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [x20]
	mov	x1, #-1
	mov	x2, #0
	bl	_has_non_ascii
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19]
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.6:
	ldr	w8, [x20]
	str	w8, [sp, #28]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	stp	x9, x23, [sp, #8]
	ldr	x8, [x8]
	str	x8, [sp]
	str	wzr, [x21]
	add	x1, sp, #28
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, sp
	bl	_iconv
	ldr	w8, [x21]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_9
; %bb.8:
	cbnz	w23, LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	ldp	x2, x0, [x8]
	bl	_strlcpy
LBB0_10:
	str	w22, [x21]
	ldr	x0, [x19, #8]
LBB0_11:
	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
	add	sp, sp, #96
	ret
LBB0_12:
Lloh5:
	adrp	x8, _repo_encoding@GOTPAGE
Lloh6:
	ldr	x8, [x8, _repo_encoding@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _path_encoding@GOTPAGE
Lloh9:
	ldr	x8, [x8, _path_encoding@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	cbnz	w23, LBB0_10
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_precomposed_unicode,4,2        ; @precomposed_unicode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iconv_open(%s,%s) failed, but needed:\n    precomposed unicode is not supported.\n    If you want to use decomposed unicode, run\n    \"git config core.precomposeunicode false\"\n"

	.comm	_repo_encoding,4,2              ; @repo_encoding
	.comm	_path_encoding,4,2              ; @path_encoding
.subsections_via_symbols
