	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_newfile
_create_newfile:                        ## @create_newfile
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_dobackup@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_suffix@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rcx
	callq	_snprintf
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	addq	%r12, %rax
	xorl	%r12d, %r12d
	cmpq	%rax, %r13
	je	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_errx
	movq	_suffix@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_snprintf
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_printf
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rename
	testq	%rax, %rax
	jns	LBB0_10
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_err
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_unlink
	movq	%rax, %r12
	movq	_errno@GOTPCREL(%rip), %rax
	sarq	$63, %r12
	andl	(%rax), %r12d
LBB0_10:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_open
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%r12d, (%rcx)
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_dobackup,8,3                   ## @dobackup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_suffix,8,3                     ## @suffix
	.comm	_errno,4,2                      ## @errno
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.1:                               ## @.str.1
	.asciz	"%s: backup filename too long"

	.comm	_verbose,8,3                    ## @verbose
L_.str.2:                               ## @.str.2
	.asciz	"install: %s -> %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"rename: %s to %s"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_NOCHANGEBITS,4,2               ## @NOCHANGEBITS
	.no_dead_strip	_create_newfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_newfile
_create_newfile:                        ; @create_newfile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	cbz	w1, LBB0_4
; %bb.1:
Lloh7:
	adrp	x9, _dobackup@GOTPAGE
Lloh8:
	ldr	x9, [x9, _dobackup@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.2:
Lloh10:
	adrp	x25, _suffix@GOTPAGE
Lloh11:
	ldr	x25, [x25, _suffix@GOTPAGEOFF]
	ldr	x4, [x25]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x8
	mov	x3, x19
	bl	_snprintf
	mov	x22, x0
	mov	x0, x19
	bl	_strlen
	mov	x23, x0
	ldr	x21, [x25]
	mov	x0, x21
	bl	_strlen
	add	x8, x0, x23
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.3:
	mov	w22, #0
	b	LBB0_7
LBB0_4:
	mov	w22, #0
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_unlink
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	x9, x0, #63
	and	w22, w9, w8
	b	LBB0_11
LBB0_6:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
Lloh20:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_errx
	ldr	x21, [x25]
LBB0_7:
	ldr	w1, [x24]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x21
	bl	_snprintf
Lloh27:
	adrp	x8, _verbose@GOTPAGE
Lloh28:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_printf
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_rename
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
Lloh35:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_err
LBB0_11:
Lloh40:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh44:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh46:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh47:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
Lloh49:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh50:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh51:
	ldr	w8, [x10]
Lloh52:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh53:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_open
	tbz	w0, #31, LBB0_14
; %bb.12:
	cbz	w22, LBB0_14
; %bb.13:
Lloh55:
	adrp	x8, _errno@GOTPAGE
Lloh56:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh57:
	str	w22, [x8]
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_dobackup,8,3                   ; @dobackup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_suffix,8,3                     ; @suffix
	.comm	_errno,4,2                      ; @errno
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.1:                               ; @.str.1
	.asciz	"%s: backup filename too long"

	.comm	_verbose,8,3                    ; @verbose
l_.str.2:                               ; @.str.2
	.asciz	"install: %s -> %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"rename: %s to %s"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_NOCHANGEBITS,4,2               ; @NOCHANGEBITS
	.no_dead_strip	_create_newfile
.subsections_via_symbols
