	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_type_seq              ## -- Begin function generate_type_seq
	.p2align	4, 0x90
_generate_type_seq:                     ## @generate_type_seq
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_seq_type
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	16(%rbx), %rax
	movq	_TTag@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	movq	(%rax), %rcx
	addq	$16, %rax
	cmpq	%rdx, %rcx
	je	LBB0_2
## %bb.3:
	movq	_TSequenceOf@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:
	movq	_TSetOf@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_TType@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.6:
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	_headerfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	movq	%rcx, %rdx
	movq	%r14, %r8
	movq	%rcx, %r9
	xorl	%eax, %eax
	callq	_fprintf
	movq	_codefile@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rcx, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %r15
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_TTag,8,3                       ## @TTag
	.comm	_TSequenceOf,8,3                ## @TSequenceOf
	.comm	_TSetOf,8,3                     ## @TSetOf
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s not seq of %d\n"

	.comm	_TType,8,3                      ## @TType
L_.str.1:                               ## @.str.1
	.asciz	"%s subtype is not a type, can't generate sequence code for this case: %d\n"

	.comm	_headerfile,4,2                 ## @headerfile
L_.str.2:                               ## @.str.2
	.asciz	"ASN1EXP int   ASN1CALL add_%s  (%s *, const %s *);\nASN1EXP int   ASN1CALL remove_%s  (%s *, unsigned int);\n"

	.comm	_codefile,4,2                   ## @codefile
L_.str.3:                               ## @.str.3
	.asciz	"int ASN1CALL\nadd_%s(%s *data, const %s *element)\n{\n"

L_.str.4:                               ## @.str.4
	.asciz	"int ret;\nvoid *ptr;\n\nptr = realloc(data->val, \n\t(data->len + 1) * sizeof(data->val[0]));\nif (ptr == NULL) return ENOMEM;\ndata->val = ptr;\n\nret = copy_%s(element, &data->val[data->len]);\nif (ret) return ret;\ndata->len++;\nreturn 0;\n"

L_.str.5:                               ## @.str.5
	.asciz	"}\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"int ASN1CALL\nremove_%s(%s *data, unsigned int element)\n{\n"

L_.str.7:                               ## @.str.7
	.asciz	"void *ptr;\n\nif (data->len == 0 || element >= data->len)\n\treturn ASN1_OVERRUN;\nfree_%s(&data->val[element]);\ndata->len--;\nif (element < data->len)\n\tmemmove(&data->val[element], &data->val[element + 1], \n\t\tsizeof(data->val[0]) * (data->len - element));\nptr = realloc(data->val, data->len * sizeof(data->val[0]));\nif (ptr != NULL || data->len == 0) data->val = ptr;\nreturn 0;\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_type_seq              ; -- Begin function generate_type_seq
	.p2align	2
_generate_type_seq:                     ; @generate_type_seq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x0, [x0]
	bl	_seq_type
	cbz	w0, LBB0_7
; %bb.1:
	add	x8, x19, #16
Lloh0:
	adrp	x9, _TTag@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTag@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	ldr	x9, [x8], #16
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.3:
Lloh3:
	adrp	x10, _TSequenceOf@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TSequenceOf@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _TSetOf@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TSetOf@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x8]
	ldr	x8, [x9]
Lloh9:
	adrp	x10, _TType@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TType@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x9, #8]
	ldr	x21, [x8]
Lloh12:
	adrp	x8, _headerfile@GOTPAGE
Lloh13:
	ldr	x8, [x8, _headerfile@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	stp	x8, x8, [sp, #24]
	stp	x8, x21, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh17:
	adrp	x22, _codefile@GOTPAGE
Lloh18:
	ldr	x22, [x22, _codefile@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	stp	x8, x21, [sp, #8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
Lloh23:
	adrp	x20, l_.str.5@PAGE
Lloh24:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_fprintf
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	stp	x8, x8, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_fprintf
LBB0_6:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [x19]
	stp	x8, x9, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh34:
	adrp	x9, _stderr@GOTPAGE
Lloh35:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x9]
	ldr	x9, [x19]
	stp	x9, x8, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TTag,8,3                       ; @TTag
	.comm	_TSequenceOf,8,3                ; @TSequenceOf
	.comm	_TSetOf,8,3                     ; @TSetOf
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s not seq of %d\n"

	.comm	_TType,8,3                      ; @TType
l_.str.1:                               ; @.str.1
	.asciz	"%s subtype is not a type, can't generate sequence code for this case: %d\n"

	.comm	_headerfile,4,2                 ; @headerfile
l_.str.2:                               ; @.str.2
	.asciz	"ASN1EXP int   ASN1CALL add_%s  (%s *, const %s *);\nASN1EXP int   ASN1CALL remove_%s  (%s *, unsigned int);\n"

	.comm	_codefile,4,2                   ; @codefile
l_.str.3:                               ; @.str.3
	.asciz	"int ASN1CALL\nadd_%s(%s *data, const %s *element)\n{\n"

l_.str.4:                               ; @.str.4
	.asciz	"int ret;\nvoid *ptr;\n\nptr = realloc(data->val, \n\t(data->len + 1) * sizeof(data->val[0]));\nif (ptr == NULL) return ENOMEM;\ndata->val = ptr;\n\nret = copy_%s(element, &data->val[data->len]);\nif (ret) return ret;\ndata->len++;\nreturn 0;\n"

l_.str.5:                               ; @.str.5
	.asciz	"}\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"int ASN1CALL\nremove_%s(%s *data, unsigned int element)\n{\n"

l_.str.7:                               ; @.str.7
	.asciz	"void *ptr;\n\nif (data->len == 0 || element >= data->len)\n\treturn ASN1_OVERRUN;\nfree_%s(&data->val[element]);\ndata->len--;\nif (element < data->len)\n\tmemmove(&data->val[element], &data->val[element + 1], \n\t\tsizeof(data->val[0]) * (data->len - element));\nptr = realloc(data->val, data->len * sizeof(data->val[0]));\nif (ptr != NULL || data->len == 0) data->val = ptr;\nreturn 0;\n"

.subsections_via_symbols
