	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_one_file
_create_one_file:                       ## @create_one_file
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, (%rdi)
	je	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.3:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_try_create_file
	movl	$-1, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.5:
	je	LBB0_1
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	movq	%rbx, %rdi
	callq	_safe_create_leading_directories
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_try_create_file
	testl	%eax, %eax
	js	LBB0_2
## %bb.11:
	movl	$0, %r14d
	je	LBB0_2
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_16
## %bb.14:
	movq	_EACCES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_16
## %bb.15:
	cmpq	%rcx, %rax
	je	LBB0_21
	jmp	LBB0_30
LBB0_16:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movl	-56(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_rmdir
	testl	%eax, %eax
	jne	LBB0_20
LBB0_19:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_30
LBB0_21:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r15d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movl	%r12d, %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	callq	_mksnpath
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_try_create_file
	testl	%eax, %eax
	js	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	incl	%r15d
	movq	%r13, %rsp
	jmp	LBB0_22
LBB0_26:
	movl	$-1, %r14d
	movq	%r13, %rsp
	jmp	LBB0_2
LBB0_27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rename
	testl	%eax, %eax
	je	LBB0_31
## %bb.28:
	movq	%r14, %rdi
	callq	_unlink_or_warn
LBB0_29:
	movq	%r13, %rsp
LBB0_30:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_error_errno
	movl	%eax, %r14d
	jmp	LBB0_2
LBB0_31:
	xorl	%r14d, %r14d
	movq	%r13, %rsp
	jmp	LBB0_2
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s~%u"

L_.str.1:                               ## @.str.1
	.asciz	"unable to write file '%s' mode %o"

	.no_dead_strip	_create_one_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_one_file
_create_one_file:                       ; @create_one_file
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.3:
	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_4:
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_try_create_file
	tbnz	w0, #31, LBB0_23
; %bb.5:
	cbz	w0, LBB0_2
; %bb.6:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ENOENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_safe_create_leading_directories
	cbnz	x0, LBB0_1
; %bb.8:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	bl	_try_create_file
	tbnz	w0, #31, LBB0_23
; %bb.9:
	cbz	w0, LBB0_2
; %bb.10:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_11:
Lloh15:
	adrp	x9, _EEXIST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _EACCES@GOTPAGE
Lloh19:
	ldr	x10, [x10, _EACCES@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_17
; %bb.12:
	sub	x1, x29, #96
	mov	x0, x20
	bl	_lstat
	cbnz	w0, LBB0_16
; %bb.13:
	ldur	w0, [x29, #-96]
	bl	_S_ISDIR
	cbz	w0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_rmdir
	cbnz	w0, LBB0_16
LBB0_15:
Lloh21:
	adrp	x8, _EEXIST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _errno@GOTPAGE
Lloh25:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh26:
	str	x8, [x9]
LBB0_16:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _EEXIST@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
LBB0_17:
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.18:
	bl	_getpid
	mov	x24, x0
Lloh33:
	adrp	x28, _PATH_MAX@GOTPAGE
Lloh34:
	ldr	x28, [x28, _PATH_MAX@GOTPAGEOFF]
Lloh35:
	adrp	x25, l_.str@PAGE
Lloh36:
	add	x25, x25, l_.str@PAGEOFF
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x27, sp
	ldr	w1, [x28]
	mov	x9, x1
Lloh37:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh38:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x26, x8, x9
	mov	sp, x26
	mov	x0, x26
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x25
	mov	x3, x20
	mov	x4, x24
	bl	_mksnpath
	mov	x0, x23
	mov	x1, x26
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
	bl	_try_create_file
	tbnz	w0, #31, LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	w0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _EEXIST@GOTPAGE
Lloh43:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w24, w24, #1
	mov	sp, x27
	b	LBB0_19
LBB0_23:
	mov	w0, #-1
	b	LBB0_2
LBB0_24:
	mov	w0, #-1
	b	LBB0_29
LBB0_25:
	mov	x0, x26
	mov	x1, x20
	bl	_rename
	cbz	w0, LBB0_29
; %bb.26:
	mov	x0, x26
	bl	_unlink_or_warn
LBB0_27:
	mov	sp, x27
LBB0_28:
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	mov	x2, x19
	bl	_error_errno
	b	LBB0_2
LBB0_29:
	mov	sp, x27
	b	LBB0_2
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s~%u"

l_.str.1:                               ; @.str.1
	.asciz	"unable to write file '%s' mode %o"

	.no_dead_strip	_create_one_file
.subsections_via_symbols
