	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MSG_WriteString                ## -- Begin function MSG_WriteString
	.p2align	4, 0x90
_MSG_WriteString:                       ## @MSG_WriteString
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rdi
	callq	_strlen
	cmpl	(%r14), %eax
	jge	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_Q_strncpyz
	testl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_20
## %bb.6:
	movl	%r15d, %ecx
	cmpl	$1, %r15d
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
LBB0_16:
	testb	$1, %cl
	je	LBB0_20
## %bb.17:
	cmpl	$127, (%rbx,%rax,4)
	jg	LBB0_19
## %bb.18:
	cmpb	$37, (%rbx,%rax)
	jne	LBB0_20
LBB0_19:
	movb	$46, (%rbx,%rax)
LBB0_20:
	incl	%r15d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	jmp	LBB0_21
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MSG_WriteData                  ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
LBB0_21:
	callq	_MSG_WriteData
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%ecx, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$46, 1(%rbx,%rax)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdx
	je	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$127, (%rbx,%rax,4)
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$37, (%rbx,%rax)
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$46, (%rbx,%rax)
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$127, 4(%rbx,%rax,4)
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$37, 1(%rbx,%rax)
	je	LBB0_14
	jmp	LBB0_15
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MAX_STRING_CHARS,4,2           ## @MAX_STRING_CHARS
L_.str.1:                               ## @.str.1
	.asciz	"MSG_WriteString: MAX_STRING_CHARS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MSG_WriteString                ; -- Begin function MSG_WriteString
	.p2align	2
_MSG_WriteString:                       ; @MSG_WriteString
	.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]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x22, x1
	mov	x24, sp
Lloh3:
	adrp	x25, _MAX_STRING_CHARS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_STRING_CHARS@GOTPAGEOFF]
	ldr	w23, [x25]
	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	x20, x8, x9
	mov	sp, x20
	mov	x0, x1
	bl	_strlen
	ldr	w8, [x25]
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_Q_strncpyz
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x8, #0
	mov	w9, w21
	mov	w10, #46
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w10, [x20, x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x20, x8, lsl #2]
	cmp	w11, #127
	b.gt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w11, [x20, x8]
	cmp	w11, #37
	b.eq	LBB0_4
	b	LBB0_5
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.9:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	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
	b	_MSG_WriteData
LBB0_10:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	b	LBB0_12
LBB0_11:
	add	w2, w21, #1
	mov	x0, x19
	mov	x1, x20
LBB0_12:
	bl	_MSG_WriteData
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	sp, x24
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MAX_STRING_CHARS,4,2           ; @MAX_STRING_CHARS
l_.str.1:                               ; @.str.1
	.asciz	"MSG_WriteString: MAX_STRING_CHARS"

.subsections_via_symbols
