	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_template              ## -- Begin function generate_template
	.p2align	4, 0x90
_generate_template:                     ## @generate_template
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_get_code_file
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_use_extern
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%rcx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gen_extern_stubs               ## TAILCALL
LBB0_1:
	movl	8(%rbx), %r9d
	movl	12(%rbx), %edx
	subq	$8, %rsp
	leaq	-24(%rbp), %rsi
	movq	%rcx, %rdi
	xorl	%r8d, %r8d
	pushq	$1
	pushq	$0
	pushq	$0
	callq	_generate_template_type
	addq	$32, %rsp
	movq	(%rbx), %rcx
	movq	-24(%rbp), %r8
	movq	_support_ber@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rcx
	movq	-24(%rbp), %r8
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rcx
	movq	-24(%rbp), %r8
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rcx
	movq	-24(%rbp), %r8
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rcx
	movq	-24(%rbp), %r9
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rcx, %rdx
	movq	%rcx, %r8
	xorl	%eax, %eax
	callq	_fprintf
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nint\ndecode_%s(const unsigned char *p, size_t len, %s *data, size_t *size)\n{\n    return _asn1_decode_top(asn1_%s, 0|%s, p, len, data, size);\n}\n\n"

	.comm	_support_ber,8,3                ## @support_ber
L_.str.1:                               ## @.str.1
	.asciz	"A1_PF_ALLOW_BER"

L_.str.2:                               ## @.str.2
	.asciz	"0"

L_.str.3:                               ## @.str.3
	.asciz	"\nint\nencode_%s(unsigned char *p, size_t len, const %s *data, size_t *size)\n{\n    return _asn1_encode(asn1_%s, p, len, data, size);\n}\n\n"

L_.str.4:                               ## @.str.4
	.asciz	"\nsize_t\nlength_%s(const %s *data)\n{\n    return _asn1_length(asn1_%s, data);\n}\n\n"

L_.str.5:                               ## @.str.5
	.asciz	"\nvoid\nfree_%s(%s *data)\n{\n    _asn1_free(asn1_%s, data);\n}\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"\nint\ncopy_%s(const %s *from, %s *to)\n{\n    return _asn1_copy_top(asn1_%s, from, to);\n}\n\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_template              ; -- Begin function generate_template
	.p2align	2
_generate_template:                     ; @generate_template
	.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	x20, x0
	bl	_get_code_file
	mov	x19, x0
	mov	x0, x20
	bl	_use_extern
	ldr	x3, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_gen_extern_stubs
LBB0_2:
	ldp	w5, w2, [x20, #8]
	mov	w8, #1
	str	w8, [sp]
	add	x1, sp, #8
	mov	x0, x3
	mov	x4, #0
	mov	w6, #0
	mov	w7, #0
	bl	_generate_template_type
	ldr	x2, [x20]
	ldr	x4, [sp, #8]
Lloh0:
	adrp	x8, _support_ber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _support_ber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x3, x2
	bl	_fprintf
	ldr	x2, [x20]
	ldr	x4, [sp, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x2
	bl	_fprintf
	ldr	x2, [x20]
	ldr	x4, [sp, #8]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x3, x2
	bl	_fprintf
	ldr	x2, [x20]
	ldr	x4, [sp, #8]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x3, x2
	bl	_fprintf
	ldr	x2, [x20]
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	x3, x2
	mov	x4, x2
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nint\ndecode_%s(const unsigned char *p, size_t len, %s *data, size_t *size)\n{\n    return _asn1_decode_top(asn1_%s, 0|%s, p, len, data, size);\n}\n\n"

	.comm	_support_ber,8,3                ; @support_ber
l_.str.1:                               ; @.str.1
	.asciz	"A1_PF_ALLOW_BER"

l_.str.2:                               ; @.str.2
	.asciz	"0"

l_.str.3:                               ; @.str.3
	.asciz	"\nint\nencode_%s(unsigned char *p, size_t len, const %s *data, size_t *size)\n{\n    return _asn1_encode(asn1_%s, p, len, data, size);\n}\n\n"

l_.str.4:                               ; @.str.4
	.asciz	"\nsize_t\nlength_%s(const %s *data)\n{\n    return _asn1_length(asn1_%s, data);\n}\n\n"

l_.str.5:                               ; @.str.5
	.asciz	"\nvoid\nfree_%s(%s *data)\n{\n    _asn1_free(asn1_%s, data);\n}\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"\nint\ncopy_%s(const %s *from, %s *to)\n{\n    return _asn1_copy_top(asn1_%s, from, to);\n}\n\n"

.subsections_via_symbols
