	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_tmp                        ## -- Begin function rcv_tmp
	.p2align	4, 0x90
_rcv_tmp:                               ## @rcv_tmp
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	_O_RECDIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_opts_empty
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_O_STR
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mkdir
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_msgq
	jmp	LBB0_9
LBB0_5:
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movq	_S_IRWXG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_ISVTX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_chmod
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_join
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_rcv_mktemp
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.11:
	movl	%eax, %r15d
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_fchmod
	movl	%r15d, %edi
	callq	_close
	movq	%r12, (%r14)
	movq	_F_RCV_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_SET
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_free
LBB0_9:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_msgq
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RECDIR,4,2                   ## @O_RECDIR
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
	.comm	_S_ISVTX,4,2                    ## @S_ISVTX
L_.str.1:                               ## @.str.1
	.asciz	"vi.XXXXXX"

	.comm	_M_ERR,4,2                      ## @M_ERR
L_.str.2:                               ## @.str.2
	.asciz	"056|Modifications not recoverable if the session fails"

	.comm	_F_RCV_ON,4,2                   ## @F_RCV_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_tmp                        ; -- Begin function rcv_tmp
	.p2align	2
_rcv_tmp:                               ; @rcv_tmp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _O_RECDIR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _O_RECDIR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_opts_empty
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_O_STR
	mov	x21, x0
	add	x1, sp, #8
	bl	_stat
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ENOENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_mkdir
	cbz	x0, LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _S_IRWXU@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S_IRWXU@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _S_IRWXO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _S_IRWXO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _S_ISVTX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _S_ISVTX@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_chmod
LBB0_6:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_join
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_rcv_mktemp
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	mov	x21, x0
Lloh27:
	adrp	x8, _S_IRWXU@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S_IRWXU@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_fchmod
	mov	x0, x21
	bl	_close
	str	x22, [x20]
Lloh30:
	adrp	x8, _F_RCV_ON@GOTPAGE
Lloh31:
	ldr	x8, [x8, _F_RCV_ON@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_SET
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_free
LBB0_10:
Lloh33:
	adrp	x8, _M_ERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.2@PAGE
Lloh37:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_msgq
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RECDIR,4,2                   ; @O_RECDIR
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
	.comm	_S_ISVTX,4,2                    ; @S_ISVTX
l_.str.1:                               ; @.str.1
	.asciz	"vi.XXXXXX"

	.comm	_M_ERR,4,2                      ; @M_ERR
l_.str.2:                               ; @.str.2
	.asciz	"056|Modifications not recoverable if the session fails"

	.comm	_F_RCV_ON,4,2                   ; @F_RCV_ON
.subsections_via_symbols
