	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeLogFileName                ## -- Begin function MakeLogFileName
	.p2align	4, 0x90
_MakeLogFileName:                       ## @MakeLogFileName
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -184(%rbp)                 ## 8-byte Spill
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	%edx, -148(%rbp)                ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_21
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.2:
	cmpq	$0, -168(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_21
## %bb.3:
	cmpq	$0, 32(%rbp)
	je	LBB0_21
## %bb.4:
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %ebx
	movl	16(%rbp), %r8d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	callq	_MakeLogFileNameStringFromTick
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_GetMaxLogSize
	movq	_MAX_LOG_SIZE_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-160(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movl	-148(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_17
LBB0_5:
	movb	$0, -112(%rbp)
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movl	-148(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_17
LBB0_9:
	movb	$51, %r15b
	cmpq	$999999999, %rax                ## imm = 0x3B9AC9FF
	movl	-148(%rbp), %r13d               ## 4-byte Reload
	ja	LBB0_16
## %bb.10:
	movb	$52, %r15b
	cmpq	$99999999, %rax                 ## imm = 0x5F5E0FF
	ja	LBB0_16
## %bb.11:
	movb	$53, %r15b
	cmpq	$9999999, %rax                  ## imm = 0x98967F
	ja	LBB0_16
## %bb.12:
	movb	$54, %r15b
	cmpq	$999999, %rax                   ## imm = 0xF423F
	ja	LBB0_16
## %bb.13:
	movb	$55, %r15b
	cmpq	$99999, %rax                    ## imm = 0x1869F
	ja	LBB0_16
## %bb.14:
	movb	$56, %r15b
	cmpq	$9999, %rax                     ## imm = 0x270F
	ja	LBB0_16
## %bb.15:
	cmpq	$1000, %rax                     ## imm = 0x3E8
	movl	$57, %eax
	movl	$50, %r15d
	cmovael	%eax, %r15d
LBB0_16:
	leaq	L_.str(%rip), %rdx
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_StrCpy
	movb	%r15b, -141(%rbp)
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	movq	%rbx, %rdx
	movl	24(%rbp), %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_17:
	movq	32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_StrCpy
	movl	$1, %r15d
	jmp	LBB0_20
LBB0_18:
	xorl	%r15d, %r15d
LBB0_20:
	movq	%r12, %rdi
	callq	_StrLen
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	-112(%rbp), %r10
	leaq	L_.str.1(%rip), %rdx
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r12, %rcx
	movq	-168(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r14
	callq	_snprintf
	addq	$16, %rsp
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_MAX_LOG_SIZE_DEFAULT,8,3       ## @MAX_LOG_SIZE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"~%02u"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s%s%s%s.log"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"/"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MakeLogFileName                ; -- Begin function MakeLogFileName
	.p2align	2
_MakeLogFileName:                       ; @MakeLogFileName
	.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, #112
	mov	x25, x7
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
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	x27, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_SIZE@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	w26, #0
	cbz	x0, LBB0_27
; %bb.1:
	cbz	x20, LBB0_27
; %bb.2:
	cbz	x22, LBB0_27
; %bb.3:
	ldr	x24, [x29, #16]
	cbz	x24, LBB0_27
; %bb.4:
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x5
	mov	x4, x6
	bl	_MakeLogFileNameStringFromTick
	cbz	w25, LBB0_7
; %bb.5:
	bl	_GetMaxLogSize
Lloh7:
	adrp	x8, _MAX_LOG_SIZE_DEFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_LOG_SIZE_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp, #-16]!
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #152
	b	LBB0_22
LBB0_7:
	sturb	wzr, [x29, #-152]
	b	LBB0_23
LBB0_8:
	mov	w8, #51711
	movk	w8, #15258, lsl #16
	cmp	x0, x8
	b.ls	LBB0_10
; %bb.9:
	mov	w26, #51
	b	LBB0_21
LBB0_10:
	mov	w8, #57599
	movk	w8, #1525, lsl #16
	cmp	x0, x8
	b.ls	LBB0_12
; %bb.11:
	mov	w26, #52
	b	LBB0_21
LBB0_12:
	mov	w8, #38527
	movk	w8, #152, lsl #16
	cmp	x0, x8
	b.ls	LBB0_14
; %bb.13:
	mov	w26, #53
	b	LBB0_21
LBB0_14:
	mov	w8, #16959
	movk	w8, #15, lsl #16
	cmp	x0, x8
	b.ls	LBB0_16
; %bb.15:
	mov	w26, #54
	b	LBB0_21
LBB0_16:
	lsr	x8, x0, #5
	cmp	x8, #3124
	b.ls	LBB0_18
; %bb.17:
	mov	w26, #55
	b	LBB0_21
LBB0_18:
	lsr	x8, x0, #4
	cmp	x8, #624
	b.ls	LBB0_20
; %bb.19:
	mov	w26, #56
	b	LBB0_21
LBB0_20:
	cmp	x0, #999
	mov	w8, #50
	mov	w9, #57
	csel	w26, w9, w8, hi
LBB0_21:
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #184
	mov	w1, #32
	bl	_StrCpy
	sturb	w26, [x29, #-181]
	str	x25, [sp, #-16]!
	sub	x0, x29, #152
	sub	x2, x29, #184
LBB0_22:
	mov	w1, #64
	bl	_snprintf
	add	sp, sp, #16
LBB0_23:
	mov	x0, x24
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w1, [x27]
	mov	x0, x24
	mov	x2, x23
	bl	_StrCpy
	mov	w26, #1
	b	LBB0_26
LBB0_25:
	mov	w26, #0
LBB0_26:
	mov	x0, x21
	bl	_StrLen
Lloh14:
	adrp	x8, l_.str.3@PAGE
Lloh15:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	sub	sp, sp, #48
	sub	x9, x29, #152
	stp	x23, x9, [sp, #24]
	stp	x8, x22, [sp, #8]
	str	x21, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
	add	sp, sp, #48
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x26
	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_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_MAX_LOG_SIZE_DEFAULT,8,3       ; @MAX_LOG_SIZE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"~%02u"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s%s%s%s.log"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"/"

.subsections_via_symbols
