	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_wcs                        ## -- Begin function add_wcs
	.p2align	4, 0x90
_add_wcs:                               ## @add_wcs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_wideidx@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leal	1(%rcx), %edx
	movq	_widesz@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %edx
	jge	LBB0_2
## %bb.1:
	movq	_widestr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	leal	64(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_widestr@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leal	512(,%rax,8), %esi
	callq	_realloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r14), %ecx
	leal	1(%rcx), %edx
LBB0_4:
	movl	%edx, (%r14)
	movslq	%ecx, %rcx
	movq	%r15, (%rax,%rcx,8)
	movslq	%edx, %rcx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_yyerror
	movl	$0, (%r14)
	movl	$0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wideidx,4,2                    ## @wideidx
	.comm	_widesz,4,2                     ## @widesz
	.comm	_widestr,8,3                    ## @widestr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_wcs                        ; -- Begin function add_wcs
	.p2align	2
_add_wcs:                               ; @add_wcs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _wideidx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wideidx@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w9, w8, #1
Lloh2:
	adrp	x21, _widesz@GOTPAGE
Lloh3:
	ldr	x21, [x21, _widesz@GOTPAGEOFF]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
Lloh4:
	adrp	x10, _widestr@GOTPAGE
Lloh5:
	ldr	x10, [x10, _widestr@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x10]
	b	LBB0_4
LBB0_2:
	add	w8, w10, #64
	str	w8, [x21]
Lloh7:
	adrp	x22, _widestr@GOTPAGE
Lloh8:
	ldr	x22, [x22, _widestr@GOTPAGEOFF]
	ldr	x0, [x22]
	lsl	w1, w8, #3
	bl	_realloc
	str	x0, [x22]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x20]
	add	w9, w8, #1
LBB0_4:
	str	w9, [x20]
	str	x19, [x0, w8, sxtw #3]
	str	xzr, [x0, w9, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_yyerror
	str	wzr, [x20]
	str	wzr, [x21]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_wideidx,4,2                    ; @wideidx
	.comm	_widesz,4,2                     ; @widesz
	.comm	_widestr,8,3                    ; @widestr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

.subsections_via_symbols
