	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_demand_copy_C_string           ## -- Begin function demand_copy_C_string
	.p2align	4, 0x90
_demand_copy_C_string:                  ## @demand_copy_C_string
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_demand_copy_string
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	movb	(%rax), %dl
	incl	%ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	%dl, %dl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ecx
	cmpl	$1, %ecx
	ja	LBB0_3
	jmp	LBB0_8
LBB0_6:
	movl	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_as_bad
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this string may not contain '\\0'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_demand_copy_C_string           ; -- Begin function demand_copy_C_string
	.p2align	2
_demand_copy_C_string:                  ; @demand_copy_C_string
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_demand_copy_string
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	ldrb	w8, [x0]
	add	w9, w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_3
	b	LBB0_6
LBB0_5:
	str	wzr, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_as_bad
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this string may not contain '\\0'"

.subsections_via_symbols
