	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_file_flags
_update_file_flags:                     ## @update_file_flags
	.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
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.1:
	movl	%r8d, %r13d
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	movl	$0, %r8d
	jne	LBB0_32
## %bb.2:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_S_ISGITLINK
	xorl	%r14d, %r14d
	movl	$0, %r8d
	testq	%rax, %rax
	jne	LBB0_31
## %bb.3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leaq	4(%r15), %r14
	leaq	-92(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_read_object_file
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movl	-92(%rbp), %eax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.5:
	movl	(%r15), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.6:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_convert_to_working_tree
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rbx, %rdi
	callq	_free
	movq	-88(%rbp), %rax
	movq	%rax, -72(%rbp)
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_8:
	xorl	%r8d, %r8d
	jmp	LBB0_32
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %r14d
	callq	_oid_to_hex
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movl	%eax, %r14d
	callq	_oid_to_hex
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
	movq	%rbx, %rdi
LBB0_11:
	movl	%eax, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_30
LBB0_13:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_14:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %rdi
	callq	_make_room_for_path
	xorl	%r14d, %r14d
	testq	%rax, %rax
	js	LBB0_18
## %bb.15:
	movl	(%r15), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:
	testb	$64, (%r15)
	movl	$438, %eax                      ## imm = 0x1B6
	movl	$511, %edx                      ## imm = 0x1FF
	cmovel	%eax, %edx
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_open
	testl	%eax, %eax
	js	LBB0_23
## %bb.17:
	movq	-72(%rbp), %rdx
	movl	%eax, %edi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_write_in_full
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	jmp	LBB0_29
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_19:
	movq	_has_symlinks@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_24
LBB0_20:
	movl	(%r15), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_xmemdupz
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_safe_create_leading_directories_const
	movq	%r14, %rdi
	callq	_unlink
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_symlink
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%r12, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_err
	movl	%eax, %r14d
	jmp	LBB0_28
LBB0_23:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_26
LBB0_24:
	movl	(%r15), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_20
LBB0_25:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
LBB0_26:
	movl	%eax, %r14d
	jmp	LBB0_29
LBB0_27:
	xorl	%r14d, %r14d
LBB0_28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_29:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_30:
	callq	_free
	movl	%r13d, %r8d
LBB0_31:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_32:
	testl	%ebx, %ebx
	je	LBB0_35
## %bb.33:
	testl	%r14d, %r14d
	jne	LBB0_35
## %bb.34:
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_add_cacheinfo
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_36
LBB0_35:
	movl	%r14d, %eax
LBB0_36:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot read object %s '%s'"

	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
L_.str.1:                               ## @.str.1
	.asciz	"blob expected for %s '%s'"

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_has_symlinks,4,2               ## @has_symlinks
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.2:                               ## @.str.2
	.asciz	"failed to open '%s': %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"failed to symlink '%s': %s"

L_.str.4:                               ## @.str.4
	.asciz	"do not know what to do with %06o %s '%s'"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
	.no_dead_strip	_update_file_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_file_flags
_update_file_flags:                     ; @update_file_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w25, #0
	cbz	w4, LBB0_4
; %bb.1:
	mov	x23, x4
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x4, x25
	cbnz	x8, LBB0_30
; %bb.2:
	ldr	w0, [x20]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_5
; %bb.3:
	mov	w25, #0
	mov	w23, #0
	b	LBB0_29
LBB0_4:
	mov	x4, x25
	b	LBB0_30
LBB0_5:
	add	x25, x20, #4
	add	x1, sp, #44
	add	x2, sp, #32
	mov	x0, x25
	bl	_read_object_file
	cbz	x0, LBB0_14
; %bb.6:
	mov	x24, x0
	ldr	w8, [sp, #44]
Lloh0:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.7:
	ldr	w0, [x20]
	bl	_S_ISREG
	cbz	x0, LBB0_10
; %bb.8:
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	x3, [sp, #32]
	add	x4, sp, #24
	mov	x1, x19
	mov	x2, x24
	bl	_convert_to_working_tree
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x24
	bl	_free
	ldr	x8, [sp, #24]
	str	x8, [sp, #32]
	add	x0, sp, #24
	mov	x1, #0
	bl	_strbuf_detach
	mov	x24, x0
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_make_room_for_path
	tbnz	x0, #63, LBB0_18
; %bb.11:
	ldr	w0, [x20]
	bl	_S_ISREG
	cbz	x0, LBB0_19
LBB0_12:
	ldr	w8, [x20]
	tst	w8, #0x40
	mov	w8, #511
	mov	w9, #438
	csel	w2, w9, w8, eq
Lloh6:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_open
	tbnz	w0, #31, LBB0_23
; %bb.13:
	mov	x25, x0
	ldr	x2, [sp, #32]
	mov	x1, x24
	bl	_write_in_full
	mov	x0, x25
	bl	_close
	mov	w25, #0
	b	LBB0_28
LBB0_14:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x24, x0
	mov	x0, x25
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x19, [sp]
	mov	x0, x21
	mov	x1, x24
	bl	_err
	mov	x25, x0
	mov	x24, #0
	b	LBB0_28
LBB0_15:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x26, x0
	mov	x0, x25
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x19, [sp]
LBB0_16:
	mov	x0, x21
	mov	x1, x26
LBB0_17:
	bl	_err
	mov	x25, x0
	b	LBB0_28
LBB0_18:
	mov	w25, #0
	mov	w23, #0
	b	LBB0_28
LBB0_19:
Lloh19:
	adrp	x8, _has_symlinks@GOTPAGE
Lloh20:
	ldr	x8, [x8, _has_symlinks@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	w8, LBB0_24
LBB0_20:
	ldr	w0, [x20]
	bl	_S_ISLNK
	cbz	x0, LBB0_25
; %bb.21:
	ldr	x1, [sp, #32]
	mov	x0, x24
	bl	_xmemdupz
	mov	x26, x0
	mov	x0, x19
	bl	_safe_create_leading_directories_const
	mov	x0, x19
	bl	_unlink
	mov	x0, x26
	mov	x1, x19
	bl	_symlink
	cbz	x0, LBB0_26
; %bb.22:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x25, x0
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x25
	bl	_err
	mov	x25, x0
	b	LBB0_27
LBB0_23:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x25, x0
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
	mov	x0, x21
	mov	x1, x25
	b	LBB0_17
LBB0_24:
	ldr	w0, [x20]
	bl	_S_ISLNK
	cbnz	x0, LBB0_12
	b	LBB0_20
LBB0_25:
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x26, x0
	ldr	w27, [x20]
	mov	x0, x25
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x19, [sp, #8]
	str	x27, [sp]
	b	LBB0_16
LBB0_26:
	mov	w25, #0
LBB0_27:
	mov	x0, x26
	bl	_free
LBB0_28:
	mov	x0, x24
	bl	_free
LBB0_29:
	mov	x4, x23
LBB0_30:
	cbz	w22, LBB0_34
; %bb.31:
	cbnz	w25, LBB0_34
; %bb.32:
Lloh34:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh36:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_add_cacheinfo
	cbz	x0, LBB0_34
; %bb.33:
	mov	w25, #-1
LBB0_34:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot read object %s '%s'"

	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
l_.str.1:                               ; @.str.1
	.asciz	"blob expected for %s '%s'"

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_has_symlinks,4,2               ; @has_symlinks
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.2:                               ; @.str.2
	.asciz	"failed to open '%s': %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"failed to symlink '%s': %s"

l_.str.4:                               ; @.str.4
	.asciz	"do not know what to do with %06o %s '%s'"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
	.no_dead_strip	_update_file_flags
.subsections_via_symbols
