	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_write_name            ## -- Begin function generate_write_name
	.p2align	4, 0x90
_generate_write_name:                   ## @generate_write_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	cmpl	$101, %eax
	setge	%sil
	orl	$2, %esi
	cmpl	$1001, %eax                     ## imm = 0x3E9
	movl	$4, %edx
	cmovll	%esi, %edx
	cmpl	$2, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$3, %edx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	cmpl	$1001, %eax                     ## imm = 0x3E9
	jl	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	_cur_write_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_name_pattern@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_split_mod,4,2              ## @log_split_mod
	.comm	_cur_write_name,4,2             ## @cur_write_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%02d.bin"

	.comm	_name_pattern,8,3               ## @name_pattern
L_.str.1:                               ## @.str.1
	.asciz	"%s%03d.bin"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_write_name            ; -- Begin function generate_write_name
	.p2align	2
_generate_write_name:                   ; @generate_write_name
	.cfi_startproc
; %bb.0:
	mov	x3, x0
Lloh0:
	adrp	x8, _log_split_mod@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_split_mod@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #100
	mov	w9, #2
	cinc	w9, w9, gt
	mov	w10, #4
	cmp	w8, #1000
	csel	w9, w10, w9, gt
	cmp	w9, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #3
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	cmp	w8, #1001
	b.lt	LBB0_7
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
Lloh9:
	adrp	x8, _cur_write_name@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cur_write_name@GOTPAGEOFF]
Lloh11:
	adrp	x9, _name_pattern@GOTPAGE
Lloh12:
	ldr	x9, [x9, _name_pattern@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	ldr	x2, [x9]
	b	_sprintf
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_log_split_mod,4,2              ; @log_split_mod
	.comm	_cur_write_name,4,2             ; @cur_write_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%02d.bin"

	.comm	_name_pattern,8,3               ; @name_pattern
l_.str.1:                               ; @.str.1
	.asciz	"%s%03d.bin"

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

.subsections_via_symbols
