	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_peer
_create_peer:                           ## @create_peer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_dst_files@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_dst_fnum@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %r12
	shlq	$4, %r12
	leaq	(%r15,%r12), %r13
	movq	_dstdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_strlen
	movq	_dst_fnum@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MAX_DIR_FILES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	setl	%cl
	cmpl	$2, %r14d
	setge	%dl
	andb	%cl, %dl
	movq	_MAX_DIRNAME_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	movl	%r14d, %ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	setl	%al
	andb	%dl, %al
	movzbl	%al, %edi
	callq	_assert
	xorl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	(%r15,%r12), %r13
	addq	$8, %r13
	movl	$-1, 8(%r15,%r12)
	movq	_FIF_ZIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	12(%rcx), %eax
	movq	_FIF_DEST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%r15,%r12)
	movq	_dstdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	%ebx, %rbx
	cmpb	$47, -1(%rsi,%rbx)
	leaq	-1(%rbx), %rax
	cmovel	%eax, %ebx
	movq	16(%r15,%r12), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movq	16(%r15,%r12), %rax
	movslq	%ebx, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movb	$47, (%rax,%rcx)
	movq	16(%r15,%r12), %rax
	leaq	1(%rax,%rcx), %rdi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, (%r15,%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	addl	$13, %eax
	movq	%rbx, %r15
	movq	_MAX_FPATH_LEN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_assert
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %ebx
	movslq	%r15d, %r12
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	%r12, %rdi
	leal	(%rbx,%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	8(%r13), %rdi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r15), %esi
	movl	$416, %edx                      ## imm = 0x1A0
	callq	_open
	movl	%eax, (%r13)
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	$8, %r14d
	jne	LBB0_2
## %bb.7:
	movq	8(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_kprintf
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, 24(%r14,%r15)
	movq	_F_WRLCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_lock_whole_file
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movl	(%r13), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax), %esi
	movq	_BSIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_write
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_5
## %bb.4:
	movq	8(%r13), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_kprintf
	movq	%rbx, %rdi
	callq	_invalidate_file
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%rcx, 32(%r14,%r15)
	movq	_dst_fnum@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dst_files,8,3                  ## @dst_files
	.comm	_dst_fnum,4,2                   ## @dst_fnum
	.comm	_dstdir,8,3                     ## @dstdir
	.comm	_MAX_DIR_FILES,4,2              ## @MAX_DIR_FILES
	.comm	_MAX_DIRNAME_LEN,4,2            ## @MAX_DIRNAME_LEN
	.comm	_FIF_DEST,4,2                   ## @FIF_DEST
	.comm	_FIF_ZIPPED,4,2                 ## @FIF_ZIPPED
	.comm	_MAX_FPATH_LEN,4,2              ## @MAX_FPATH_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".%d"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.1:                               ## @.str.1
	.asciz	"cannot create file %s: %m\n"

	.comm	_F_WRLCK,4,2                    ## @F_WRLCK
	.comm	_BSIZE,8,3                      ## @BSIZE
L_.str.2:                               ## @.str.2
	.asciz	"cannot write to %s: %m\n"

	.no_dead_strip	_create_peer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_peer
_create_peer:                           ; @create_peer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x0
Lloh0:
	adrp	x8, _dst_files@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dst_files@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x23, _dst_fnum@GOTPAGE
Lloh4:
	ldr	x23, [x23, _dst_fnum@GOTPAGEOFF]
	ldrsw	x10, [x23]
	mov	w8, #48
	stp	x10, x9, [sp, #16]              ; 16-byte Folded Spill
	madd	x19, x10, x8, x9
Lloh5:
	adrp	x20, _dstdir@GOTPAGE
Lloh6:
	ldr	x20, [x20, _dstdir@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_strlen
	mov	x22, x0
	ldr	x0, [x24]
	bl	_strlen
	mov	x21, x0
	ldr	w8, [x23]
Lloh7:
	adrp	x9, _MAX_DIR_FILES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAX_DIR_FILES@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	ccmp	w22, #1, #4, lt
Lloh10:
	adrp	x8, _MAX_DIRNAME_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_DIRNAME_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ccmp	w22, w8, #0, gt
	cset	w0, lt
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #-1
	mov	x26, x19
	str	w8, [x26, #8]!
Lloh13:
	adrp	x8, _FIF_DEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FIF_DEST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x24, #12]
Lloh16:
	adrp	x10, _FIF_ZIPPED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FIF_ZIPPED@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19, #12]
	ldr	x1, [x20]
	sxtw	x8, w22
	sub	x8, x8, #1
	ldrb	w9, [x1, x8]
	cmp	w9, #47
	csel	w22, w8, w22, eq
	mov	x27, x19
	ldr	x0, [x27, #16]!
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x27]
	sxtw	x9, w22
	mov	w10, #47
	strb	w10, [x8, x9]
	ldr	x8, [x27]
	add	x8, x8, x9
	add	x0, x8, #1
	str	x0, [x19]
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x1, [x24]
	mov	x2, x21
	bl	_memcpy
	add	w8, w21, w22
	add	w8, w8, #13
Lloh19:
	adrp	x9, _MAX_FPATH_LEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAX_FPATH_LEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, lt
	bl	_assert
	mov	w0, #0
	bl	_time
	mov	x22, x0
	mov	w28, #0
	sxtw	x23, w21
Lloh22:
	adrp	x24, _O_CREAT@GOTPAGE
Lloh23:
	ldr	x24, [x24, _O_CREAT@GOTPAGEOFF]
Lloh24:
	adrp	x25, _O_EXCL@GOTPAGE
Lloh25:
	ldr	x25, [x25, _O_EXCL@GOTPAGEOFF]
Lloh26:
	adrp	x20, _O_RDWR@GOTPAGE
Lloh27:
	ldr	x20, [x20, _O_RDWR@GOTPAGEOFF]
Lloh28:
	adrp	x21, l_.str@PAGE
Lloh29:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x23
	add	w2, w22, w28
	mov	x1, x21
	bl	_sprintf
	ldr	x0, [x27]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w1, w8, w9
	mov	w2, #416
	bl	_open
	str	w0, [x26]
	tbz	w0, #31, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w28, w28, #1
	cmp	w28, #8
	b.ne	LBB0_1
; %bb.3:
	ldr	x1, [x27]
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	x19, #0
	b	LBB0_7
LBB0_4:
	mov	w8, #48
	ldp	x23, x21, [sp, #16]             ; 16-byte Folded Reload
	madd	x8, x23, x8, x21
	str	w22, [x8, #24]
Lloh32:
	adrp	x8, _F_WRLCK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_WRLCK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_lock_whole_file
	cmp	x0, #0
	cset	w0, gt
	bl	_assert
	ldr	w0, [x26]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w1, [x8, #40]
Lloh35:
	adrp	x20, _BSIZE@GOTPAGE
Lloh36:
	ldr	x20, [x20, _BSIZE@GOTPAGEOFF]
	ldr	x2, [x20]
	bl	_write
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	ldr	x1, [x27]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kprintf
	mov	x0, x19
	bl	_invalidate_file
	mov	x19, #0
	b	LBB0_7
LBB0_6:
	mov	w9, #48
	madd	x9, x23, x9, x21
	str	x8, [x9, #32]
Lloh39:
	adrp	x9, _dst_fnum@GOTPAGE
Lloh40:
	ldr	x9, [x9, _dst_fnum@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_dst_files,8,3                  ; @dst_files
	.comm	_dst_fnum,4,2                   ; @dst_fnum
	.comm	_dstdir,8,3                     ; @dstdir
	.comm	_MAX_DIR_FILES,4,2              ; @MAX_DIR_FILES
	.comm	_MAX_DIRNAME_LEN,4,2            ; @MAX_DIRNAME_LEN
	.comm	_FIF_DEST,4,2                   ; @FIF_DEST
	.comm	_FIF_ZIPPED,4,2                 ; @FIF_ZIPPED
	.comm	_MAX_FPATH_LEN,4,2              ; @MAX_FPATH_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".%d"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.1:                               ; @.str.1
	.asciz	"cannot create file %s: %m\n"

	.comm	_F_WRLCK,4,2                    ; @F_WRLCK
	.comm	_BSIZE,8,3                      ; @BSIZE
l_.str.2:                               ; @.str.2
	.asciz	"cannot write to %s: %m\n"

	.no_dead_strip	_create_peer
.subsections_via_symbols
