	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emitlabel
_emitlabel:                             ## @emitlabel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %r13d
	negl	%r13d
	movl	$1, %ebx
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_print
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	jne	LBB0_2
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	testq	%r12, %r12
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_emitcase
	movq	(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_4
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"static void %Plabel(NODEPTR_TYPE a) {\n%1int c;\n%1struct %Pstate *p;\n\n%1if (!a)\n%2fatal(\"%Plabel\", \"Null tree\\n\", 0);\n"

L_.str.1:                               ## @.str.1
	.asciz	"%1STATE_LABEL(a) = p = allocate(sizeof *p, FUNC);\n%1p->rule._stmt = 0;\n"

L_.str.2:                               ## @.str.2
	.asciz	"%1p->cost[%d] =\n"

L_.str.3:                               ## @.str.3
	.asciz	"%20x7fff;\n%1switch (OP_LABEL(a)) {\n"

L_.str.4:                               ## @.str.4
	.asciz	"%1default:\n%2fatal(\"%Plabel\", \"Bad terminal %%d\\n\", OP_LABEL(a));\n%1}\n}\n\n"

	.no_dead_strip	_emitlabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emitlabel
_emitlabel:                             ; @emitlabel
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	str	x22, [sp]
	mov	x0, x21
	bl	_print
	cmp	w19, w22
	b.ne	LBB0_2
LBB0_3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_print
	cbz	x20, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_emitcase
	ldr	x20, [x20]
	cbnz	x20, LBB0_4
LBB0_5:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	b	_print
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"static void %Plabel(NODEPTR_TYPE a) {\n%1int c;\n%1struct %Pstate *p;\n\n%1if (!a)\n%2fatal(\"%Plabel\", \"Null tree\\n\", 0);\n"

l_.str.1:                               ; @.str.1
	.asciz	"%1STATE_LABEL(a) = p = allocate(sizeof *p, FUNC);\n%1p->rule._stmt = 0;\n"

l_.str.2:                               ; @.str.2
	.asciz	"%1p->cost[%d] =\n"

l_.str.3:                               ; @.str.3
	.asciz	"%20x7fff;\n%1switch (OP_LABEL(a)) {\n"

l_.str.4:                               ; @.str.4
	.asciz	"%1default:\n%2fatal(\"%Plabel\", \"Bad terminal %%d\\n\", OP_LABEL(a));\n%1}\n}\n\n"

	.no_dead_strip	_emitlabel
.subsections_via_symbols
