	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_attrs
_change_attrs:                          ## @change_attrs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_new_dir@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	20(%rsi), %edx
	movl	%r14d, %esi
	callq	_append_path
	movq	_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	(%rbx), %rax
	movq	_new_dir_length@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	1(%rax,%rcx), %r15
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_printf
	movl	%r12d, %edi
	callq	_print_attrs
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_use_clone@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tmp_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %r8
	callq	_snprintf
	xorl	%edi, %edi
	movq	_PATH_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_lcopy_attrs
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	_new_dir@GOTPCREL(%rip), %rbx
	testl	%r12d, %r12d
	js	LBB0_7
LBB0_6:
	movq	%r13, %rdi
	callq	_incr_file_mode_stat
LBB0_7:
	movq	_LEV_FILESYS_XFS_CHANGE_ATTRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	addl	$28, %esi
	callq	_filesys_xfs_alloc_log_event
	movl	16(%r13), %ecx
	movl	%ecx, 24(%rax)
	movups	(%r13), %xmm0
	movups	%xmm0, 8(%rax)
	movl	%r12d, (%rax)
	movl	4(%rax), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_8:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movb	$0, (%rax,%rcx)
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_pot_copy_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_pending_operation_create
	movl	%eax, %edi
	callq	_pending_operation_push
	testl	%r12d, %r12d
	jns	LBB0_6
	jmp	LBB0_7
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_vkprintf
	movl	$-2, %eax
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_new_dir,8,3                    ## @new_dir
	.comm	_status,8,3                     ## @status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"New attrs: %s "

	.comm	_new_dir_length,4,2             ## @new_dir_length
	.comm	_use_clone,8,3                  ## @use_clone
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ## @tmp_dir
L_.str.2:                               ## @.str.2
	.asciz	"lcopy_attrs returns error code %d.\n"

	.comm	_pot_copy_attrs,4,2             ## @pot_copy_attrs
	.comm	_LEV_FILESYS_XFS_CHANGE_ATTRS,4,2 ## @LEV_FILESYS_XFS_CHANGE_ATTRS
	.no_dead_strip	_change_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_attrs
_change_attrs:                          ; @change_attrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _new_dir@GOTPAGE
Lloh4:
	ldr	x25, [x25, _new_dir@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	w2, [x1, #20]
	mov	x1, x19
	bl	_append_path
Lloh5:
	adrp	x8, _status@GOTPAGE
Lloh6:
	ldr	x8, [x8, _status@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x25]
Lloh8:
	adrp	x10, _new_dir_length@GOTPAGE
Lloh9:
	ldr	x10, [x10, _new_dir_length@GOTPAGEOFF]
Lloh10:
	ldrsw	x10, [x10]
	add	x9, x9, x10
	add	x21, x9, #1
	cbz	x8, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printf
	mov	x0, x22
	bl	_print_attrs
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	bl	_strlen
	mov	x23, x0
Lloh13:
	adrp	x8, _use_clone@GOTPAGE
Lloh14:
	ldr	x8, [x8, _use_clone@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x26, sp
Lloh16:
	adrp	x27, _PATH_MAX@GOTPAGE
Lloh17:
	ldr	x27, [x27, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w1, [x27]
Lloh20:
	adrp	x8, _tmp_dir@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tmp_dir@GOTPAGEOFF]
Lloh22:
	ldr	x3, [x8]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x4, x21
	bl	_snprintf
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
	mov	x0, x24
	mov	x1, x20
	bl	_lcopy_attrs
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	sp, x26
	tbnz	w22, #31, LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_incr_file_mode_stat
LBB0_6:
Lloh25:
	adrp	x8, _LEV_FILESYS_XFS_CHANGE_ATTRS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LEV_FILESYS_XFS_CHANGE_ATTRS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	w1, w23, #28
	bl	_filesys_xfs_alloc_log_event
	ldr	w8, [x20, #16]
	str	w8, [x0, #24]
	ldr	q0, [x20]
	stur	q0, [x0, #8]
	str	w23, [x0]
	ldr	w0, [x0, #4]
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
LBB0_7:
	mov	w0, #0
	ldr	x8, [x25]
	strb	wzr, [x8, w19, sxtw]
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh31:
	adrp	x8, _pot_copy_attrs@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pot_copy_attrs@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x21
	mov	x3, x20
	bl	_pending_operation_create
	bl	_pending_operation_push
	tbz	w22, #31, LBB0_5
	b	LBB0_6
LBB0_11:
	mov	x2, x0
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	w0, #-2
	mov	sp, x26
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_new_dir,8,3                    ; @new_dir
	.comm	_status,8,3                     ; @status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"New attrs: %s "

	.comm	_new_dir_length,4,2             ; @new_dir_length
	.comm	_use_clone,8,3                  ; @use_clone
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ; @tmp_dir
l_.str.2:                               ; @.str.2
	.asciz	"lcopy_attrs returns error code %d.\n"

	.comm	_pot_copy_attrs,4,2             ; @pot_copy_attrs
	.comm	_LEV_FILESYS_XFS_CHANGE_ATTRS,4,2 ; @LEV_FILESYS_XFS_CHANGE_ATTRS
	.no_dead_strip	_change_attrs
.subsections_via_symbols
