	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emitstruct
_emitstruct:                            ## @emitstruct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	incl	%esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_print
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_print
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%rbx), %eax
	movl	$1, %edx
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	sarl	%ecx
	incl	%edx
	cmpl	$3, %eax
	movl	%ecx, %eax
	ja	LBB0_4
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_print                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"struct %Pstate {\n%1short cost[%d];\n%1struct {\n"

L_.str.1:                               ## @.str.1
	.asciz	"%2unsigned int %P%S:%d;\n"

L_.str.2:                               ## @.str.2
	.asciz	"%1} rule;\n};\n\n"

	.no_dead_strip	_emitstruct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emitstruct
_emitstruct:                            ; @emitstruct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	w8, w1, #1
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print
	cbz	x19, LBB0_5
; %bb.1:
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	x19, x8, [sp]
	mov	x0, x20
	bl	_print
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w9, [x19]
	mov	w8, #1
	cmp	w9, #2
	b.lo	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w10, w9, #1
	add	w8, w8, #1
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_4
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_print
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"struct %Pstate {\n%1short cost[%d];\n%1struct {\n"

l_.str.1:                               ; @.str.1
	.asciz	"%2unsigned int %P%S:%d;\n"

l_.str.2:                               ; @.str.2
	.asciz	"%1} rule;\n};\n\n"

	.no_dead_strip	_emitstruct
.subsections_via_symbols
