	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_len           ## -- Begin function mbedtls_asn1_get_len
	.p2align	4, 0x90
_mbedtls_asn1_get_len:                  ## @mbedtls_asn1_get_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	movq	%rsi, %rcx
	subq	%r9, %rcx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.2:
	movzbl	(%r9), %eax
	testb	$-128, %al
	jne	LBB0_5
## %bb.3:
	leaq	1(%r9), %rcx
	movq	%rcx, (%rdi)
	movzbl	(%r9), %r8d
	movq	%r8, (%rdx)
	jmp	LBB0_4
LBB0_5:
	andl	$127, %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_16
## %bb.6:
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rax,4), %rax
	addq	%r8, %rax
	jmpq	*%rax
LBB0_7:
	cmpq	$1, %rcx
	jbe	LBB0_1
## %bb.8:
	movzbl	1(%r9), %r8d
	movq	%r8, (%rdx)
	addq	$2, %r9
	jmp	LBB0_9
LBB0_12:
	cmpq	$3, %rcx
	jbe	LBB0_1
## %bb.13:
	movzbl	1(%r9), %eax
	shlq	$16, %rax
	movzbl	2(%r9), %ecx
	shlq	$8, %rcx
	orq	%rax, %rcx
	movzbl	3(%r9), %r8d
	orq	%rcx, %r8
	movq	%r8, (%rdx)
	addq	$4, %r9
	jmp	LBB0_9
LBB0_14:
	cmpq	$4, %rcx
	jbe	LBB0_1
## %bb.15:
	movl	1(%r9), %r8d
	bswapl	%r8d
	movq	%r8, (%rdx)
	addq	$5, %r9
	jmp	LBB0_9
LBB0_16:
	movq	_MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	cmpq	$2, %rcx
	jbe	LBB0_1
## %bb.11:
	movzwl	1(%r9), %eax
	rolw	$8, %ax
	movzwl	%ax, %r8d
	movq	%r8, (%rdx)
	addq	$3, %r9
LBB0_9:
	movq	%r9, (%rdi)
	movq	%r9, %rcx
LBB0_4:
	subq	%rcx, %rsi
	xorl	%eax, %eax
	cmpq	%rsi, %r8
	jbe	LBB0_18
LBB0_1:
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_ASN1_INVALID_LENGTH,4,2 ## @MBEDTLS_ERR_ASN1_INVALID_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_len           ; -- Begin function mbedtls_asn1_get_len
	.p2align	2
_mbedtls_asn1_get_len:                  ; @mbedtls_asn1_get_len
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	sub	x9, x1, x8
	cmp	x9, #0
	b.le	LBB0_13
; %bb.1:
	ldrb	w10, [x8]
	tbnz	w10, #7, LBB0_3
; %bb.2:
	add	x10, x8, #1
	str	x10, [x0]
	ldrb	w9, [x8]
	str	x9, [x2]
	b	LBB0_16
LBB0_3:
	and	w10, w10, #0x7f
	sub	w10, w10, #1
	cmp	w10, #3
	b.hi	LBB0_11
; %bb.4:
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
	cmp	x9, #1
	b.ls	LBB0_13
; %bb.6:
	ldrb	w9, [x8, #1]
	str	x9, [x2]
	add	x10, x8, #2
	b	LBB0_15
LBB0_7:
	cmp	x9, #3
	b.ls	LBB0_13
; %bb.8:
	ldrb	w9, [x8, #1]
	lsl	x9, x9, #16
	ldrb	w10, [x8, #2]
	bfi	x9, x10, #8, #8
	ldrb	w10, [x8, #3]
	orr	x9, x9, x10
	str	x9, [x2]
	add	x10, x8, #4
	b	LBB0_15
LBB0_9:
	cmp	x9, #4
	b.ls	LBB0_13
; %bb.10:
	ldur	w9, [x8, #1]
	rev	w9, w9
	str	x9, [x2]
	add	x10, x8, #5
	b	LBB0_15
LBB0_11:
Lloh2:
	adrp	x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_12:
	cmp	x9, #2
	b.hi	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_14:
	ldurh	w9, [x8, #1]
	rev16	w9, w9
	str	x9, [x2]
	add	x10, x8, #3
LBB0_15:
	str	x10, [x0]
LBB0_16:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	x10, x1, x10
	cmp	x9, x10
	csel	w0, w8, wzr, hi
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ERR_ASN1_INVALID_LENGTH,4,2 ; @MBEDTLS_ERR_ASN1_INVALID_LENGTH
.subsections_via_symbols
