	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_template_ex_d2i
_asn1_template_ex_d2i:                  ## @asn1_template_ex_d2i
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%r9, %r15
	movq	%rcx, %r12
	movq	%rdx, %r10
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rbp), %esi
	movl	(%rcx), %ecx
	movq	_ASN1_TFLG_TAG_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdx
	movq	%rdx, -56(%rbp)
	movq	_ASN1_TFLG_EXPTAG@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_10
## %bb.2:
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	andl	%ecx, %eax
	movl	4(%r12), %r11d
	subq	$8, %rsp
	movsbl	%r8b, %r13d
	leaq	-64(%rbp), %rdi
	leaq	-42(%rbp), %rcx
	leaq	-41(%rbp), %r8
	leaq	-56(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%r15
	pushq	%r13
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_asn1_check_tlen
	addq	$48, %rsp
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.3:
	movq	_ERR_R_NESTED_ASN1_ERROR@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	cmpb	$0, -41(%rbp)
	je	LBB0_11
## %bb.5:
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdx
	subq	$8, %rsp
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_asn1_template_noexp_d2i
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	-56(%rbp), %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	subq	%rax, %rsi
	addq	-64(%rbp), %rsi
	movq	%rsi, -64(%rbp)
	cmpb	$0, -42(%rbp)
	je	LBB0_13
## %bb.7:
	leaq	-56(%rbp), %rdi
	callq	_asn1_check_eoc
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movq	-56(%rbp), %rax
	jmp	LBB0_9
LBB0_10:
	movsbl	%r8b, %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r10, %rdx
	movq	%r12, %rcx
	movq	%r15, %r9
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_asn1_template_noexp_d2i        ## TAILCALL
LBB0_11:
	movq	_ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED@GOTPCREL(%rip), %r13
LBB0_12:
	movq	_ASN1_F_ASN1_TEMPLATE_EX_D2I@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
LBB0_17:
	callq	_ASN1err
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.14:
	movq	_ASN1_R_EXPLICIT_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_19
LBB0_15:
	movq	_ASN1_R_MISSING_EOC@GOTPCREL(%rip), %rax
LBB0_16:
	movq	_ASN1_F_ASN1_TEMPLATE_EX_D2I@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_TFLG_TAG_CLASS,4,2        ## @ASN1_TFLG_TAG_CLASS
	.comm	_ASN1_TFLG_EXPTAG,4,2           ## @ASN1_TFLG_EXPTAG
	.comm	_ASN1_F_ASN1_TEMPLATE_EX_D2I,4,2 ## @ASN1_F_ASN1_TEMPLATE_EX_D2I
	.comm	_ERR_R_NESTED_ASN1_ERROR,4,2    ## @ERR_R_NESTED_ASN1_ERROR
	.comm	_ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED,4,2 ## @ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED
	.comm	_ASN1_R_MISSING_EOC,4,2         ## @ASN1_R_MISSING_EOC
	.comm	_ASN1_R_EXPLICIT_LENGTH_MISMATCH,4,2 ## @ASN1_R_EXPLICIT_LENGTH_MISMATCH
	.no_dead_strip	_asn1_template_ex_d2i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_template_ex_d2i
_asn1_template_ex_d2i:                  ; @asn1_template_ex_d2i
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x6
	mov	x21, x5
	mov	x22, x3
	mov	x6, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _ASN1_TFLG_TAG_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_TFLG_TAG_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x10, [x1]
	str	x10, [sp, #32]
Lloh3:
	adrp	x10, _ASN1_TFLG_EXPTAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ASN1_TFLG_EXPTAG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.2:
	and	w8, w9, w8
	ldr	w7, [x22, #4]
	str	x21, [sp, #8]
	strb	w4, [sp, #4]
	add	x0, sp, #40
	add	x3, sp, #31
	add	x4, sp, #30
	add	x5, sp, #32
	str	w8, [sp]
	mov	x1, #0
	mov	x2, #0
	bl	_asn1_check_tlen
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.3:
	cbnz	w0, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ERR_R_NESTED_ASN1_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_NESTED_ASN1_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x6
	mov	x3, x22
	mov	x5, x21
	mov	x6, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_asn1_template_noexp_d2i
LBB0_6:
	ldrb	w8, [sp, #30]
	cbz	w8, LBB0_11
; %bb.7:
	ldp	x24, x2, [sp, #32]
	add	x1, sp, #32
	mov	x0, x23
	mov	x3, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	bl	_asn1_template_noexp_d2i
	cbz	w0, LBB0_4
; %bb.8:
	ldp	x8, x9, [sp, #32]
	sub	x10, x24, x8
	add	x1, x10, x9
	str	x1, [sp, #40]
	ldrb	w9, [sp, #31]
	cbz	w9, LBB0_12
; %bb.9:
	add	x0, sp, #32
	bl	_asn1_check_eoc
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x8, [sp, #32]
	b	LBB0_14
LBB0_11:
Lloh8:
	adrp	x8, _ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	cbz	x1, LBB0_14
; %bb.13:
Lloh10:
	adrp	x8, _ASN1_R_EXPLICIT_LENGTH_MISMATCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ASN1_R_EXPLICIT_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x8, _ASN1_R_MISSING_EOC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASN1_R_MISSING_EOC@GOTPAGEOFF]
LBB0_16:
Lloh14:
	adrp	x9, _ASN1_F_ASN1_TEMPLATE_EX_D2I@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ASN1_F_ASN1_TEMPLATE_EX_D2I@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_TFLG_TAG_CLASS,4,2        ; @ASN1_TFLG_TAG_CLASS
	.comm	_ASN1_TFLG_EXPTAG,4,2           ; @ASN1_TFLG_EXPTAG
	.comm	_ASN1_F_ASN1_TEMPLATE_EX_D2I,4,2 ; @ASN1_F_ASN1_TEMPLATE_EX_D2I
	.comm	_ERR_R_NESTED_ASN1_ERROR,4,2    ; @ERR_R_NESTED_ASN1_ERROR
	.comm	_ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED,4,2 ; @ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED
	.comm	_ASN1_R_MISSING_EOC,4,2         ; @ASN1_R_MISSING_EOC
	.comm	_ASN1_R_EXPLICIT_LENGTH_MISMATCH,4,2 ; @ASN1_R_EXPLICIT_LENGTH_MISMATCH
	.no_dead_strip	_asn1_template_ex_d2i
.subsections_via_symbols
