	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsshare_main
_fsshare_main:                          ## @fsshare_main
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_strlcat
	cltq
	cmpq	%rbx, %rax
	jae	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_LOCK_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_flock
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.4:
	movl	%r14d, %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rdx
	xorl	(%rdx), %ecx
	notl	%eax
	xorl	%edi, %edi
	orl	%eax, %ecx
	sete	%dil
	jmp	LBB0_11
LBB0_5:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.8:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movl	$1, %edi
LBB0_11:
	callq	_assert
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdopen
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	callq	_fileno
	movq	_LOCK_EX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_flock
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rdx
	xorl	(%rdx), %ecx
	notl	%eax
	xorl	%edi, %edi
	orl	%eax, %ecx
	sete	%dil
	jmp	LBB0_18
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.15:
	cmpl	%ecx, %ebx
	jne	LBB0_28
## %bb.16:
	movq	_FILE_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_fputs
	movl	%r14d, %ebx
	jmp	LBB0_23
LBB0_17:
	movl	$1, %edi
LBB0_18:
	callq	_assert
	movq	_FILE_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_fputs
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_zgetline
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.4(%rip), %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_zgetline
	testq	%rax, %rax
	jne	LBB0_20
LBB0_21:
	movq	%r13, %rdi
	callq	_ferror
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%r12, %rdi
	callq	_ferror
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.24:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_28
## %bb.25:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_translate_opts
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_28
LBB0_26:
	cmpl	%ecx, %ebx
	jne	LBB0_28
## %bb.27:
	movl	$0, (%rax)
	jmp	LBB0_35
LBB0_28:
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	je	LBB0_35
LBB0_29:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_30:
	callq	_unlink
	testq	%r13, %r13
	je	LBB0_33
LBB0_32:
	movq	%r13, %rdi
	callq	_fileno
	movq	_LOCK_UN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_flock
	movq	%r13, %rdi
	callq	_fclose
LBB0_33:
	testq	%r12, %r12
	je	LBB0_7
## %bb.34:
	movq	%r12, %rdi
	callq	_fileno
	movq	_LOCK_UN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_flock
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_7
LBB0_35:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_rename
	cmpl	$-1, %eax
	je	LBB0_37
## %bb.36:
	movq	%r12, %rdi
	callq	_fflush
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_restart_mountd
	testq	%r13, %r13
	jne	LBB0_32
	jmp	LBB0_33
LBB0_37:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	jmp	LBB0_30
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".XXXXXXXX"

	.comm	_errno,4,2                      ## @errno
	.comm	_LOCK_EX,4,2                    ## @LOCK_EX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"r+"

L_.str.2:                               ## @.str.2
	.asciz	"r"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_FILE_HEADER,8,3                ## @FILE_HEADER
L_.str.4:                               ## @.str.4
	.asciz	"%s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s\t%s\n"

	.comm	_LOCK_UN,4,2                    ## @LOCK_UN
	.no_dead_strip	_fsshare_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsshare_main
_fsshare_main:                          ; @fsshare_main
	.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	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, 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	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x21
	b.hs	LBB0_5
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_strlcat
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x21
	b.hs	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	mov	x21, x0
Lloh10:
	adrp	x27, _LOCK_EX@GOTPAGE
Lloh11:
	ldr	x27, [x27, _LOCK_EX@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_flock
	mov	x26, x0
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x28, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x28, [x28, _EOPNOTSUPP@GOTPAGEOFF]
	cbz	w0, LBB0_10
; %bb.4:
	cmn	w26, #1
	ldr	w8, [x8]
	ldr	w9, [x28]
	ccmp	w8, w9, #0, eq
	cset	w0, eq
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
LBB0_6:
	ldr	w26, [x8]
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.8:
	mov	x0, x26
	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_9:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	mov	w0, #1
LBB0_11:
	bl	_assert
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fdopen
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
	mov	x25, x0
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x25
	bl	_fileno
	ldr	w1, [x27]
	bl	_flock
	cbz	w0, LBB0_17
; %bb.13:
	cmn	w0, #1
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x28]
	ccmp	w8, w9, #0, eq
	cset	w0, eq
	b	LBB0_18
LBB0_14:
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w27, [x8]
Lloh33:
	adrp	x8, _ENOENT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w27, w8
	cbz	w24, LBB0_26
; %bb.15:
	b.ne	LBB0_28
; %bb.16:
Lloh36:
	adrp	x8, _FILE_HEADER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FILE_HEADER@GOTPAGEOFF]
Lloh38:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_fputs
	mov	x27, x26
	b	LBB0_23
LBB0_17:
	mov	w0, #1
LBB0_18:
	bl	_assert
Lloh39:
	adrp	x8, _FILE_HEADER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FILE_HEADER@GOTPAGEOFF]
Lloh41:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_fputs
	mov	x0, x25
	mov	x1, x22
	bl	_zgetline
	cbz	x0, LBB0_21
; %bb.19:
	mov	x2, x0
Lloh42:
	adrp	x26, l_.str.4@PAGE
Lloh43:
	add	x26, x26, l_.str.4@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_fprintf
	mov	x0, x25
	mov	x1, x22
	bl	_zgetline
	mov	x2, x0
	cbnz	x0, LBB0_20
LBB0_21:
	mov	x0, x25
	bl	_ferror
	mov	x26, x0
	cbnz	w0, LBB0_32
; %bb.22:
	mov	w27, #0
LBB0_23:
	mov	x0, x21
	bl	_ferror
	mov	x26, x0
	cbnz	w0, LBB0_32
; %bb.24:
	cbz	w24, LBB0_28
; %bb.25:
	mov	x0, x23
	bl	_translate_opts
	str	x0, [sp, #-16]!
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_28
LBB0_26:
	b.ne	LBB0_28
; %bb.27:
Lloh46:
	adrp	x8, _errno@GOTPAGE
Lloh47:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh48:
	str	wzr, [x8]
	b	LBB0_29
LBB0_28:
	mov	x26, x27
	cbnz	w27, LBB0_32
LBB0_29:
	mov	x0, x19
	mov	x1, x20
	bl	_rename
	cmn	w0, #1
	b.eq	LBB0_31
; %bb.30:
	mov	x0, x21
	bl	_fflush
	bl	_restart_mountd
	mov	w26, #0
	b	LBB0_33
LBB0_31:
Lloh49:
	adrp	x8, _errno@GOTPAGE
Lloh50:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh51:
	ldr	w26, [x8]
LBB0_32:
	mov	x0, x19
	bl	_unlink
LBB0_33:
Lloh52:
	adrp	x19, _LOCK_UN@GOTPAGE
Lloh53:
	ldr	x19, [x19, _LOCK_UN@GOTPAGEOFF]
	cbz	x25, LBB0_35
; %bb.34:
	mov	x0, x25
	bl	_fileno
	ldr	w1, [x19]
	bl	_flock
	mov	x0, x25
	bl	_fclose
LBB0_35:
	cbz	x21, LBB0_7
; %bb.36:
	mov	x0, x21
	bl	_fileno
	ldr	w1, [x19]
	bl	_flock
	mov	x0, x21
	bl	_fclose
	b	LBB0_7
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".XXXXXXXX"

	.comm	_errno,4,2                      ; @errno
	.comm	_LOCK_EX,4,2                    ; @LOCK_EX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"r+"

l_.str.2:                               ; @.str.2
	.asciz	"r"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_FILE_HEADER,8,3                ; @FILE_HEADER
l_.str.4:                               ; @.str.4
	.asciz	"%s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s\t%s\n"

	.comm	_LOCK_UN,4,2                    ; @LOCK_UN
	.no_dead_strip	_fsshare_main
.subsections_via_symbols
