	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emitkids
_emitkids:                              ## @emitkids
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	16(,%rsi,8), %r15d
	movl	%r15d, %edi
	callq	_alloc
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_alloc
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	leaq	-1072(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	movslq	-1076(%rbp), %rcx
	movq	%r12, (%r15,%rcx,8)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%rcx,8), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%r14,%rcx,8)
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$0, -1076(%rbp)
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	leaq	-1076(%rbp), %rcx
	callq	_computekids
	movq	$0, (%rax)
	movl	$0, -1076(%rbp)
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rsi
	callq	_strcmp
	movslq	-1076(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%rcx), %rax
	movl	%eax, -1076(%rbp)
	movq	8(%r15,%rcx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r15,%rcx,8)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.10:
	leaq	L_.str.2(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_print
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15,%r12,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	movq	8(%r14,%r12,8), %rbx
	incq	%r12
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p"

L_.str.1:                               ## @.str.1
	.asciz	"static void %Pkids(NODEPTR_TYPE p, int eruleno, NODEPTR_TYPE kids[]) {\n%1if (!p)\n%2fatal(\"%Pkids\", \"Null tree\\n\", 0);\n%1if (!kids)\n%2fatal(\"%Pkids\", \"Null kids\\n\", 0);\n%1switch (eruleno) {\n"

L_.str.2:                               ## @.str.2
	.asciz	"%1case %d: /* %R */\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s%2break;\n"

L_.str.4:                               ## @.str.4
	.asciz	"%1default:\n%2fatal(\"%Pkids\", \"Bad rule number %%d\\n\", eruleno);\n%1}\n}\n\n"

	.no_dead_strip	_emitkids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emitkids
_emitkids:                              ; @emitkids
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1056
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	lsl	w8, w1, #3
	add	w20, w8, #16
	mov	x0, x20
	bl	_alloc
	mov	x19, x0
	mov	x0, x20
	bl	_alloc
	mov	x20, x0
	cbz	x21, LBB0_8
; %bb.1:
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	bl	_strlen
	add	w0, w0, #1
	bl	_alloc
	add	x1, sp, #24
	bl	_strcpy
	ldrsw	x8, [sp, #20]
	str	x0, [x20, x8, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x8, #3
	ldr	x9, [x19, x8]
	str	x9, [x21, #8]
	str	x21, [x19, x8]
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	wzr, [sp, #20]
	ldr	w0, [x21, #16]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x1, x22
	bl	_computekids
	str	xzr, [x0]
	str	wzr, [sp, #20]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #24
	bl	_strcmp
	ldrsw	x8, [sp, #20]
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x8, x8, #1
	str	w8, [sp, #20]
	ldr	x0, [x20, x8, lsl #3]
	cbnz	x0, LBB0_5
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, x8, lsl #3]
	cbnz	x9, LBB0_3
	b	LBB0_2
LBB0_8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print
	ldr	x24, [x19]
	cbz	x24, LBB0_12
; %bb.9:
	mov	x23, #0
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh9:
	adrp	x22, l_.str.3@PAGE
Lloh10:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	stp	x8, x24, [sp]
	mov	x0, x21
	bl	_print
	ldr	x24, [x24, #8]
	cbnz	x24, LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, x23, lsl #3]
	str	x8, [sp]
	mov	x0, x22
	bl	_print
	add	x23, x23, #1
	ldr	x24, [x19, x23, lsl #3]
	cbnz	x24, LBB0_10
LBB0_12:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_print
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1056
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p"

l_.str.1:                               ; @.str.1
	.asciz	"static void %Pkids(NODEPTR_TYPE p, int eruleno, NODEPTR_TYPE kids[]) {\n%1if (!p)\n%2fatal(\"%Pkids\", \"Null tree\\n\", 0);\n%1if (!kids)\n%2fatal(\"%Pkids\", \"Null kids\\n\", 0);\n%1switch (eruleno) {\n"

l_.str.2:                               ; @.str.2
	.asciz	"%1case %d: /* %R */\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s%2break;\n"

l_.str.4:                               ; @.str.4
	.asciz	"%1default:\n%2fatal(\"%Pkids\", \"Bad rule number %%d\\n\", eruleno);\n%1}\n}\n\n"

	.no_dead_strip	_emitkids
.subsections_via_symbols
