	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_type_decode           ## -- Begin function generate_type_decode
	.p2align	4, 0x90
_generate_type_decode:                  ## @generate_type_decode
	.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
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_preserve_type
	movq	%rax, %r12
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_codefile@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r14), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$23, %eax
	ja	LBB0_5
## %bb.1:
	testq	%r12, %r12
	cmovel	%r13d, %ebx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r14), %rsi
	movl	$1, (%rsp)
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.7(%rip), %r8
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_decode_type
	movl	(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r14), %rsi
	movl	$1, (%rsp)
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.7(%rip), %r8
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_decode_type
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_codefile,4,2                   ## @codefile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"int ASN1CALL\ndecode_%s(const unsigned char *p HEIMDAL_UNUSED_ATTRIBUTE, size_t len HEIMDAL_UNUSED_ATTRIBUTE, %s *data, size_t *size)\n{\n"

L_.str.1:                               ## @.str.1
	.asciz	"size_t ret = 0;\nsize_t l HEIMDAL_UNUSED_ATTRIBUTE;\nint e HEIMDAL_UNUSED_ATTRIBUTE;\n"

L_.str.2:                               ## @.str.2
	.asciz	"const unsigned char *begin = p;\n"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"memset(data, 0, sizeof(*data));\n"

L_.str.5:                               ## @.str.5
	.asciz	"data"

L_.str.6:                               ## @.str.6
	.asciz	"goto fail"

L_.str.7:                               ## @.str.7
	.asciz	"Top"

L_.str.8:                               ## @.str.8
	.asciz	"data->_save.data = calloc(1, ret);\nif (data->_save.data == NULL) { \ne = ENOMEM; goto fail; \n}\ndata->_save.length = ret;\nmemcpy(data->_save.data, begin, ret);\n"

L_.str.9:                               ## @.str.9
	.asciz	"if(size) *size = ret;\nreturn 0;\n"

L_.str.10:                              ## @.str.10
	.asciz	"fail:\nfree_%s(data);\nreturn e;\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_type_decode           ; -- Begin function generate_type_decode
	.p2align	2
_generate_type_decode:                  ; @generate_type_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_preserve_type
	mov	x20, x0
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FALSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w23, [x9]
Lloh6:
	adrp	x21, _codefile@GOTPAGE
Lloh7:
	ldr	x21, [x21, _codefile@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19]
	stp	x8, x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #23
	b.hi	LBB0_5
; %bb.1:
	cmp	x20, #0
	csel	w20, w23, w22, eq
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
	cbz	w20, LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x1, [x19, #8]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh20:
	adrp	x3, l_.str.6@PAGE
Lloh21:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh22:
	adrp	x4, l_.str.7@PAGE
Lloh23:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	w2, #0
	mov	x5, #0
	mov	w6, #1
	bl	_decode_type
	ldr	w0, [x21]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	b	LBB0_4
LBB0_3:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x1, [x19, #8]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh32:
	adrp	x3, l_.str.6@PAGE
Lloh33:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh34:
	adrp	x4, l_.str.7@PAGE
Lloh35:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	w2, #0
	mov	x5, #0
	mov	w6, #1
	bl	_decode_type
LBB0_4:
	ldr	w0, [x21]
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
Lloh40:
	adrp	x1, l_.str.11@PAGE
Lloh41:
	add	x1, x1, l_.str.11@PAGEOFF
	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
	add	sp, sp, #80
	b	_fprintf
LBB0_5:
	bl	_abort
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_codefile,4,2                   ; @codefile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"int ASN1CALL\ndecode_%s(const unsigned char *p HEIMDAL_UNUSED_ATTRIBUTE, size_t len HEIMDAL_UNUSED_ATTRIBUTE, %s *data, size_t *size)\n{\n"

l_.str.1:                               ; @.str.1
	.asciz	"size_t ret = 0;\nsize_t l HEIMDAL_UNUSED_ATTRIBUTE;\nint e HEIMDAL_UNUSED_ATTRIBUTE;\n"

l_.str.2:                               ; @.str.2
	.asciz	"const unsigned char *begin = p;\n"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"memset(data, 0, sizeof(*data));\n"

l_.str.5:                               ; @.str.5
	.asciz	"data"

l_.str.6:                               ; @.str.6
	.asciz	"goto fail"

l_.str.7:                               ; @.str.7
	.asciz	"Top"

l_.str.8:                               ; @.str.8
	.asciz	"data->_save.data = calloc(1, ret);\nif (data->_save.data == NULL) { \ne = ENOMEM; goto fail; \n}\ndata->_save.length = ret;\nmemcpy(data->_save.data, begin, ret);\n"

l_.str.9:                               ; @.str.9
	.asciz	"if(size) *size = ret;\nreturn 0;\n"

l_.str.10:                              ; @.str.10
	.asciz	"fail:\nfree_%s(data);\nreturn e;\n"

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

.subsections_via_symbols
