	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_operation_apply        ## -- Begin function pending_operation_apply
	.p2align	4, 0x90
_pending_operation_apply:               ## @pending_operation_apply
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movb	$0, (%r14)
	movb	$0, (%r15)
	movq	(%r12), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	_po_olddir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setl	%dil
	callq	_assert
LBB0_2:
	movq	8(%r12), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	movq	_po_newdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setl	%dil
	callq	_assert
LBB0_4:
	movl	16(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_symlink
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rename
LBB0_10:
	movl	%eax, %edi
	callq	_PO_ASSERT
LBB0_11:
	addq	$20, %r12
	jmp	LBB0_12
LBB0_16:
	movq	%r14, %rdi
	callq	_delete_file
	jmp	LBB0_13
LBB0_7:
	movl	20(%r12), %esi
	addq	$20, %r12
	movq	%r14, %rdi
	callq	_mkdir
	movl	%eax, %edi
	callq	_PO_ASSERT
LBB0_12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_lcopy_attrs
LBB0_13:
	movl	%eax, %edi
	callq	_PO_ASSERT
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_po_olddir,8,3                  ## @po_olddir
	.comm	_po_newdir,8,3                  ## @po_newdir
L_.str.1:                               ## @.str.1
	.asciz	"pending_operation_apply (P.type == pot_null)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pending_operation_apply        ; -- Begin function pending_operation_apply
	.p2align	2
_pending_operation_apply:               ; @pending_operation_apply
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	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, #-40]
Lloh3:
	adrp	x22, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PATH_MAX@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x1
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
	strb	wzr, [x20]
	strb	wzr, [x21]
	ldr	x4, [x0]
	cbz	x4, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _po_olddir@GOTPAGE
Lloh10:
	ldr	x8, [x8, _po_olddir@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
	ldr	w8, [x22]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
LBB0_2:
	ldr	x4, [x19, #8]
	cbz	x4, LBB0_4
; %bb.3:
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _po_newdir@GOTPAGE
Lloh15:
	ldr	x8, [x8, _po_newdir@GOTPAGEOFF]
Lloh16:
	ldr	x3, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_snprintf
	ldr	w8, [x22]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
LBB0_4:
	ldr	w8, [x19, #16]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_14
; %bb.5:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x0, [x19], #20
	mov	x1, x20
	bl	_symlink
	b	LBB0_11
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_rename
	bl	_PO_ASSERT
LBB0_8:
	add	x1, x19, #20
	mov	x0, x20
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	bl	_delete_file
	b	LBB0_13
LBB0_10:
	ldr	w1, [x19, #20]!
	mov	x0, x20
	bl	_mkdir
LBB0_11:
	bl	_PO_ASSERT
	mov	x0, x20
	mov	x1, x19
LBB0_12:
	bl	_lcopy_attrs
LBB0_13:
	bl	_PO_ASSERT
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
LBB0_17:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_po_olddir,8,3                  ; @po_olddir
	.comm	_po_newdir,8,3                  ; @po_newdir
l_.str.1:                               ; @.str.1
	.asciz	"pending_operation_apply (P.type == pot_null)\n"

.subsections_via_symbols
