	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asn1_check_tlen
_asn1_check_tlen:                       ## @asn1_check_tlen
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	48(%rbp), %r14
	movq	16(%rbp), %r8
	movq	(%r9), %r13
	movq	%r13, -56(%rbp)
	testq	%r14, %r14
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	movq	%r15, %rbx
	movq	%r8, %r15
	movl	4(%r14), %r12d
	movq	8(%r14), %rax
	movq	%rax, -64(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	20(%r14), %eax
	movl	%eax, -48(%rbp)
	movslq	24(%r14), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rbx
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r8, %r15
	callq	_ASN1_get_object
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_4:
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ASN1_get_object
	movl	%eax, %r12d
	movl	%eax, 4(%r14)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r14)
	movl	-44(%rbp), %ecx
	movl	%ecx, 16(%r14)
	movl	-48(%rbp), %ecx
	movl	%ecx, 20(%r14)
	movq	-56(%rbp), %rcx
	subq	%r13, %rcx
	movl	%ecx, 24(%r14)
	movl	$1, (%r14)
	movq	%r15, %rbx
	testb	$-127, %r12b
	je	LBB0_6
## %bb.5:
	movq	16(%rbp), %r15
	jmp	LBB0_8
LBB0_6:
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	16(%rbp), %rax
	movq	%rax, %r15
	cmpq	%rax, %rcx
	jle	LBB0_8
## %bb.7:
	movq	_ASN1_F_ASN1_CHECK_TLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_8:
	testb	$-128, %r12b
	jne	LBB0_26
## %bb.9:
	movl	24(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	cmpl	%eax, -48(%rbp)
	jne	LBB0_30
## %bb.11:
	movl	32(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jne	LBB0_30
## %bb.12:
	movq	%r14, %rdi
	callq	_asn1_tlc_clear
LBB0_13:
	movl	%r12d, %eax
	andl	$1, %eax
	je	LBB0_15
## %bb.14:
	addq	%r15, %r13
	subq	-56(%rbp), %r13
	movq	%r13, -64(%rbp)
LBB0_15:
	testq	%rbx, %rbx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	movb	%al, (%rbx)
LBB0_17:
	testq	%rcx, %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movq	_V_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movb	%r12b, (%rcx)
LBB0_19:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rax
	movq	%rax, (%rcx)
LBB0_21:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	movb	-44(%rbp), %al
	movb	%al, (%rdx)
LBB0_23:
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.24:
	movl	-48(%rbp), %eax
	movl	%eax, (%rcx)
LBB0_25:
	movq	-56(%rbp), %rax
	movq	%rax, (%rsi)
	movl	$1, %eax
	jmp	LBB0_29
LBB0_26:
	movq	_ASN1_F_ASN1_CHECK_TLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_BAD_OBJECT_HEADER@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %esi
	callq	_ASN1err
	movq	%r14, %rdi
	callq	_asn1_tlc_clear
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	$-1, %eax
	cmpb	$0, 40(%rbp)
	jne	LBB0_29
## %bb.31:
	movq	%r14, %rdi
	callq	_asn1_tlc_clear
	movq	_ASN1_F_ASN1_CHECK_TLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_WRONG_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_ASN1_CHECK_TLEN,4,2     ## @ASN1_F_ASN1_CHECK_TLEN
	.comm	_ASN1_R_TOO_LONG,4,2            ## @ASN1_R_TOO_LONG
	.comm	_ASN1_R_BAD_OBJECT_HEADER,4,2   ## @ASN1_R_BAD_OBJECT_HEADER
	.comm	_ASN1_R_WRONG_TAG,4,2           ## @ASN1_R_WRONG_TAG
	.comm	_V_ASN1_CONSTRUCTED,4,2         ## @V_ASN1_CONSTRUCTED
	.no_dead_strip	_asn1_check_tlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asn1_check_tlen
_asn1_check_tlen:                       ; @asn1_check_tlen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x7
	mov	x26, x6
	mov	x19, x5
	mov	x23, x4
	mov	x25, x3
	mov	x22, x0
	ldr	x24, [x29, #24]
	ldr	x20, [x5]
	stp	x2, x20, [sp]                   ; 8-byte Folded Spill
	mov	x21, x1
	cbz	x24, LBB0_3
; %bb.1:
	ldr	w8, [x24]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w28, [x24, #4]
	ldr	x10, [x24, #8]
	ldp	w8, w9, [x24, #16]
	stp	w8, w9, [sp, #24]
	ldrsw	x8, [x24, #24]
	add	x8, x20, x8
	stp	x8, x10, [sp, #8]
	b	LBB0_7
LBB0_3:
	add	x0, sp, #8
	add	x1, sp, #16
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x4, x26
	bl	_ASN1_get_object
	mov	x28, x0
	b	LBB0_7
LBB0_4:
	add	x0, sp, #8
	add	x1, sp, #16
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x4, x26
	bl	_ASN1_get_object
	mov	x28, x0
	ldr	x8, [sp, #16]
	str	x8, [x24, #8]
	ldp	w9, w10, [sp, #24]
	stp	w9, w10, [x24, #16]
	ldr	x9, [sp, #8]
	sub	x9, x9, x20
	str	w9, [x24, #24]
	mov	w10, #1
	stp	w10, w0, [x24]
	mov	w10, #129
	tst	w0, w10
	b.ne	LBB0_7
; %bb.5:
	add	x8, x8, w9, sxtw
	cmp	x8, x26
	b.le	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASN1_R_TOO_LONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_R_TOO_LONG@GOTPAGEOFF]
	b	LBB0_26
LBB0_7:
	tbnz	w28, #7, LBB0_25
; %bb.8:
	tbnz	w27, #31, LBB0_12
; %bb.9:
	ldr	w8, [sp, #28]
	cmp	w8, w27
	b.ne	LBB0_29
; %bb.10:
	ldr	w8, [x29, #16]
	ldr	w9, [sp, #24]
	cmp	w9, w8
	b.ne	LBB0_29
; %bb.11:
	mov	x0, x24
	bl	_asn1_tlc_clear
LBB0_12:
	tbz	w28, #0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	add	x9, x20, x26
	sub	x8, x9, x8
	str	x8, [sp, #16]
LBB0_14:
	cbz	x25, LBB0_16
; %bb.15:
	and	w8, w28, #0x1
	strb	w8, [x25]
LBB0_16:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cbz	x23, LBB0_18
; %bb.17:
Lloh5:
	adrp	x8, _V_ASN1_CONSTRUCTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V_ASN1_CONSTRUCTED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w28
	strb	w8, [x23]
LBB0_18:
	cbz	x22, LBB0_20
; %bb.19:
	ldr	x8, [sp, #16]
	str	x8, [x22]
LBB0_20:
	cbz	x9, LBB0_22
; %bb.21:
	ldr	w8, [sp, #24]
	strb	w8, [x9]
LBB0_22:
	cbz	x21, LBB0_24
; %bb.23:
	ldr	w8, [sp, #28]
	str	w8, [x21]
LBB0_24:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_28
LBB0_25:
Lloh8:
	adrp	x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ASN1_R_BAD_OBJECT_HEADER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASN1_R_BAD_OBJECT_HEADER@GOTPAGEOFF]
LBB0_26:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	x0, x24
	bl	_asn1_tlc_clear
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
	ldrsb	w8, [x29, #20]
	cbz	w8, LBB0_31
; %bb.30:
	mov	w0, #-1
	b	LBB0_28
LBB0_31:
	mov	x0, x24
	bl	_asn1_tlc_clear
Lloh13:
	adrp	x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASN1_F_ASN1_CHECK_TLEN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ASN1_R_WRONG_TAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ASN1_R_WRONG_TAG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ASN1err
	b	LBB0_27
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_ASN1_CHECK_TLEN,4,2     ; @ASN1_F_ASN1_CHECK_TLEN
	.comm	_ASN1_R_TOO_LONG,4,2            ; @ASN1_R_TOO_LONG
	.comm	_ASN1_R_BAD_OBJECT_HEADER,4,2   ; @ASN1_R_BAD_OBJECT_HEADER
	.comm	_ASN1_R_WRONG_TAG,4,2           ; @ASN1_R_WRONG_TAG
	.comm	_V_ASN1_CONSTRUCTED,4,2         ; @V_ASN1_CONSTRUCTED
	.no_dead_strip	_asn1_check_tlen
.subsections_via_symbols
