	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc_create_path_text_file
_mc_create_path_text_file:              ## @mc_create_path_text_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
	incq	%r14
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_3:
	movq	_mcset_mc_basename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	L_.str.1(%rip), %r13
	testq	%r12, %r12
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %r14
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	movq	%r13, %r14
LBB0_6:
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_xmalloc
	movq	%rax, %r12
	testq	%r15, %r15
	cmovneq	%r15, %r13
	movq	_mcset_mc_basename@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r14, %r8
	callq	_sprintf
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	leaq	L_.str.4(%rip), %rsi
	cmovneq	%rcx, %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_fatal
LBB0_8:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcset_mc_basename,8,3          ## @mcset_mc_basename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"wb"

L_.str.3:                               ## @.str.3
	.asciz	"can't create %s file ,%s' for output.\n"

L_.str.4:                               ## @.str.4
	.asciz	"text"

	.no_dead_strip	_mc_create_path_text_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc_create_path_text_file
_mc_create_path_text_file:              ; @mc_create_path_text_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_strlen
	add	x21, x0, #1
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
Lloh0:
	adrp	x23, _mcset_mc_basename@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mcset_mc_basename@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_strlen
	add	x21, x0, x21
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	cbz	x19, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_strlen
	mov	x22, x19
	b	LBB0_6
LBB0_5:
	mov	x0, #0
	mov	x22, x24
LBB0_6:
	add	x0, x21, x0
	bl	_xmalloc
	mov	x21, x0
	cmp	x20, #0
	csel	x2, x24, x20, eq
	ldr	x3, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x22
	bl	_sprintf
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
Lloh10:
	adrp	x8, l_.str.4@PAGE
Lloh11:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	x19, #0
	csel	x1, x8, x19, eq
	mov	x2, x21
	bl	_fatal
LBB0_8:
	mov	x0, x21
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mcset_mc_basename,8,3          ; @mcset_mc_basename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"wb"

l_.str.3:                               ; @.str.3
	.asciz	"can't create %s file ,%s' for output.\n"

l_.str.4:                               ; @.str.4
	.asciz	"text"

	.no_dead_strip	_mc_create_path_text_file
.subsections_via_symbols
