	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_next_name
_find_next_name:                        ## @find_next_name
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-76(%rbp), %r14
	movq	%r14, %rdi
	callq	_time
	movq	%r14, %rdi
	callq	_localtime
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_newfile_format@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_strftime
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	$-5, %r13
	subq	%r14, %r13
	addq	%r13, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_4
## %bb.5:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_strlen
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %r13
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_syslog
	movq	_EACCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_EACCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_S_IWOTH@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	callq	_sprintf
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_S_IRGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_open
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	cmpl	$100, %r13d
	jne	LBB0_7
## %bb.9:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_newfile_format,4,2             ## @newfile_format
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Filename suffix too long (%d characters maximum)"

	.comm	_EACCESS,4,2                    ## @EACCESS
L_.str.1:                               ## @.str.1
	.asciz	"Filename too long (%zd characters, %zd maximum)"

L_.str.2:                               ## @.str.2
	.asciz	"%s.%s.%02d"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	_find_next_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_next_name
_find_next_name:                        ; @find_next_name
	.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, #32
	mov	x20, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	w8, [x24]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x0, x29, #92
	bl	_time
	sub	x0, x29, #92
	bl	_localtime
	ldr	w8, [x0]
	stur	w8, [x29, #-96]
Lloh9:
	adrp	x8, _newfile_format@GOTPAGE
Lloh10:
	ldr	x8, [x8, _newfile_format@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	sub	x3, x29, #96
	mov	x0, x21
	mov	x1, x23
	bl	_strftime
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	mov	x0, x19
	bl	_strlen
	ldrsw	x8, [x24]
	mov	x9, #-5
	sub	x23, x9, x23
	add	x8, x23, x8
	cmp	x8, w0, sxtw
	b.hs	LBB0_5
; %bb.2:
Lloh12:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	ldrsw	x8, [x24]
	add	x8, x23, x8
	str	x8, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syslog
	add	sp, sp, #16
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x24]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_4:
Lloh22:
	adrp	x8, _EACCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EACCESS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_5:
	stur	x25, [x29, #-104]               ; 8-byte Folded Spill
	mov	w23, #0
Lloh25:
	adrp	x26, _S_IWUSR@GOTPAGE
Lloh26:
	ldr	x26, [x26, _S_IWUSR@GOTPAGEOFF]
Lloh27:
	adrp	x27, _S_IRGRP@GOTPAGE
Lloh28:
	ldr	x27, [x27, _S_IRGRP@GOTPAGEOFF]
Lloh29:
	adrp	x28, _S_IWGRP@GOTPAGE
Lloh30:
	ldr	x28, [x28, _S_IWGRP@GOTPAGEOFF]
Lloh31:
	adrp	x24, _S_IROTH@GOTPAGE
Lloh32:
	ldr	x24, [x24, _S_IROTH@GOTPAGEOFF]
Lloh33:
	adrp	x25, _S_IWOTH@GOTPAGE
Lloh34:
	ldr	x25, [x25, _S_IWOTH@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	mov	x4, x23
	bl	_sprintf
Lloh37:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh43:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh44:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh46:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x22
	bl	_open
	str	w0, [x20]
	cmp	w0, #0
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	cmp	w23, #100
	b.ne	LBB0_6
; %bb.8:
Lloh49:
	adrp	x8, _EEXIST@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x25, [x29, #-104]               ; 8-byte Folded Reload
LBB0_11:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_newfile_format,4,2             ; @newfile_format
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Filename suffix too long (%d characters maximum)"

	.comm	_EACCESS,4,2                    ; @EACCESS
l_.str.1:                               ; @.str.1
	.asciz	"Filename too long (%zd characters, %zd maximum)"

l_.str.2:                               ; @.str.2
	.asciz	"%s.%s.%02d"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	_find_next_name
.subsections_via_symbols
