	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_openuniquemode        ## -- Begin function isc_file_openuniquemode
	.p2align	4, 0x90
_isc_file_openuniquemode:               ## @isc_file_openuniquemode
	.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	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_REQUIRE
	testq	%rbx, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_REQUIRE
	movq	%r15, %rdi
	callq	_mkstemp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	cmpq	(%r14), %r13
	je	LBB0_6
	jmp	LBB0_9
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isc__errno2result
	movq	%rax, %r13
	cmpq	(%r14), %r13
	jne	LBB0_9
LBB0_6:
	movl	%r12d, %edi
	callq	_UNUSED
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_9:
	movq	%r13, %rax
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isc__errno2result
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_remove
	movl	%ebx, %edi
	callq	_close
	movq	%r14, %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w+"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_openuniquemode        ; -- Begin function isc_file_openuniquemode
	.p2align	2
_isc_file_openuniquemode:               ; @isc_file_openuniquemode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x24]
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_REQUIRE
	mov	x0, x19
	bl	_mkstemp
	mov	x23, x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_isc__errno2result
	mov	x21, x0
LBB0_5:
	ldr	x8, [x24]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_UNUSED
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_fdopen
	cbz	x0, LBB0_9
; %bb.7:
	str	x0, [x20]
LBB0_8:
	mov	x0, x21
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_isc__errno2result
	mov	x20, x0
	mov	x0, x19
	bl	_remove
	mov	x0, x23
	bl	_close
	mov	x0, x20
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w+"

.subsections_via_symbols
