	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_string                   ## -- Begin function parse_string
	.p2align	4, 0x90
_parse_string:                          ## @parse_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_next_token
	movq	_STRING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r15
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_parse_semi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_parse_warn
	movq	%r14, %rdi
	callq	_skip_to_semi
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING,4,2                     ## @STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filename must be a string"

L_.str.1:                               ## @.str.1
	.asciz	"no memory for string %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_string                   ; -- Begin function parse_string
	.p2align	2
_parse_string:                          ; @parse_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x19
	bl	_next_token
Lloh0:
	adrp	x8, _STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x21, w8
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x1, [sp, #8]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_3:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	bl	_parse_semi
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_free
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_parse_warn
	mov	x0, x19
	bl	_skip_to_semi
LBB0_6:
	mov	x20, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING,4,2                     ; @STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filename must be a string"

l_.str.1:                               ; @.str.1
	.asciz	"no memory for string %s."

.subsections_via_symbols
