	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_renameunique          ## -- Begin function isc_file_renameunique
	.p2align	4, 0x90
_isc_file_renameunique:                 ## @isc_file_renameunique
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_close
	cmpq	(%r12), %r15
	je	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isc__errno2result
	movq	%rax, %r15
	cmpq	(%r12), %r15
	jne	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_isc_file_safemovefile
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isc__errno2result
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_unlink
	movq	%r14, %rax
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_renameunique          ; -- Begin function isc_file_renameunique
	.p2align	2
_isc_file_renameunique:                 ; @isc_file_renameunique
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x22]
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
	cmp	x19, #0
	cset	w0, ne
	bl	_REQUIRE
	mov	x0, x19
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	bl	_close
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_isc__errno2result
	mov	x21, x0
LBB0_3:
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_isc_file_safemovefile
	cbz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_isc__errno2result
	mov	x20, x0
	mov	x0, x19
	bl	_unlink
	mov	x0, x20
	b	LBB0_7
LBB0_6:
	mov	x0, x21
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
