	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_operation_copyfile     ## -- Begin function pending_operation_copyfile
	.p2align	4, 0x90
_pending_operation_copyfile:            ## @pending_operation_copyfile
	.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	%r9, %r13
	movl	%r8d, %r14d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%r9), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_pot_symlink@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	(%r13), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_pot_mkdir@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%rsp, -72(%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, %rax
	movl	%r15d, %edi
	movq	%rax, %r15
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_compute_temporary_filename
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%r15, %rdx
	callq	_vkprintf
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$432, %edx                      ## imm = 0x1B0
	callq	_open
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_assert
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_write
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movl	%r14d, %edi
	callq	_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_pot_rename@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_po_olddir_length@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax), %rbx
	incq	%rbx
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_6:
	movq	16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_pending_operation_fill
	jmp	LBB0_11
LBB0_8:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_dyn_release
LBB0_10:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_pending_operation_create
	movl	%eax, %edi
	callq	_pending_operation_push
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pot_symlink,4,2                ## @pot_symlink
	.comm	_pot_mkdir,4,2                  ## @pot_mkdir
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"full_tmp_filename = %s\n"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_EXCL,4,2                     ## @O_EXCL
L_.str.1:                               ## @.str.1
	.asciz	"fail to open file '%s', flags: O_CREAT | O_TRUNC | O_WRONLY | O_EXCL. %m\n"

	.comm	_pot_rename,4,2                 ## @pot_rename
	.comm	_po_olddir_length,4,2           ## @po_olddir_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_operation_copyfile     ; -- Begin function pending_operation_copyfile
	.p2align	2
_pending_operation_copyfile:            ; @pending_operation_copyfile
	.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	x21, x7
	mov	x22, x6
	mov	x19, x5
	mov	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x26, x1
	mov	x27, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x5]
	bl	_S_ISLNK
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _pot_symlink@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pot_symlink@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	cbnz	x22, LBB0_4
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19]
	bl	_S_ISDIR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x23, #0
Lloh6:
	adrp	x8, _pot_mkdir@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pot_mkdir@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	cbz	x22, LBB0_7
LBB0_4:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_pending_operation_fill
	b	LBB0_10
LBB0_5:
	mov	x28, sp
Lloh9:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	mov	x0, x27
	mov	x1, x26
	mov	x2, x20
	mov	x3, x25
	bl	_compute_temporary_filename
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x25
	bl	_vkprintf
Lloh16:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x25
	mov	w2, #432
	bl	_open
	tbnz	w0, #31, LBB0_13
; %bb.6:
	mov	x26, x0
	mov	w0, #1
	bl	_assert
	mov	x0, x26
	mov	x1, x23
	mov	x2, x24
	bl	_write
	cmp	w0, w24
	cset	w0, eq
	bl	_assert
	mov	x0, x26
	bl	_close
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh28:
	adrp	x8, _pot_rename@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pot_rename@GOTPAGEOFF]
Lloh30:
	ldr	w24, [x8]
Lloh31:
	adrp	x8, _po_olddir_length@GOTPAGE
Lloh32:
	ldr	x8, [x8, _po_olddir_length@GOTPAGEOFF]
Lloh33:
	ldrsw	x8, [x8]
	add	x8, x25, x8
	add	x23, x8, #1
	mov	sp, x28
	cbnz	x22, LBB0_4
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_dyn_release
LBB0_9:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_pending_operation_create
	bl	_pending_operation_push
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
LBB0_13:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_pot_symlink,4,2                ; @pot_symlink
	.comm	_pot_mkdir,4,2                  ; @pot_mkdir
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"full_tmp_filename = %s\n"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_EXCL,4,2                     ; @O_EXCL
l_.str.1:                               ; @.str.1
	.asciz	"fail to open file '%s', flags: O_CREAT | O_TRUNC | O_WRONLY | O_EXCL. %m\n"

	.comm	_pot_rename,4,2                 ; @pot_rename
	.comm	_po_olddir_length,4,2           ; @po_olddir_length
.subsections_via_symbols
