	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fakefs_symlink
_fakefs_symlink:                        ## @fakefs_symlink
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_db_begin
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_fix_path
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$438, %ecx                      ## imm = 0x1B6
	callq	_openat
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_write
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_close
	testq	%r15, %r15
	js	LBB0_4
## %bb.5:
	movq	_S_IFLNK@GOTPCREL(%rip), %rax
	movl	$511, %ecx                      ## imm = 0x1FF
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_path_create
	movq	%r12, %rdi
	callq	_db_commit
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	callq	_db_rollback
	jmp	LBB0_2
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_fix_path
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_unlinkat
	movq	%r12, %rdi
	callq	_db_rollback
	movl	%r13d, (%r15)
LBB0_2:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errno_map                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_errno,4,2                      ## @errno
	.comm	_S_IFLNK,4,2                    ## @S_IFLNK
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_fakefs_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fakefs_symlink
_fakefs_symlink:                        ; @fakefs_symlink
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_db_begin
	ldr	w22, [x19]
	mov	x0, x20
	bl	_fix_path
	mov	x1, x0
Lloh0:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x22
	mov	w3, #438
	bl	_openat
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_write
	mov	x21, x0
	mov	x0, x22
	bl	_close
	tbnz	x21, #63, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _S_IFLNK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_IFLNK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, #0x1ff
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _current@GOTPAGE
Lloh13:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	d0, [x8]
	str	d0, [sp, #24]
	str	xzr, [sp, #16]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_path_create
	mov	x0, x19
	bl	_db_commit
	mov	w0, #0
	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_3:
	mov	x0, x19
	bl	_db_rollback
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x22, _errno@GOTPAGE
Lloh16:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
	ldr	w21, [x19]
	mov	x0, x20
	bl	_fix_path
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_unlinkat
	mov	x0, x19
	bl	_db_rollback
	str	w23, [x22]
LBB0_5:
	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
	b	_errno_map
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_errno,4,2                      ; @errno
	.comm	_S_IFLNK,4,2                    ; @S_IFLNK
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_fakefs_symlink
.subsections_via_symbols
