	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_get_int           ## -- Begin function mbedtls_asn1_get_int
	.p2align	4, 0x90
_mbedtls_asn1_get_int:                  ## @mbedtls_asn1_get_int
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movq	_MBEDTLS_ASN1_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	-24(%rbp), %rsi
	leaq	-5(%rsi), %r10
	cmpq	$-4, %r10
	jb	LBB0_3
## %bb.2:
	movq	(%rbx), %rdx
	cmpb	$0, (%rdx)
	js	LBB0_3
## %bb.4:
	movl	$0, (%r14)
	leaq	1(%rdx), %rdi
	leaq	-2(%rsi), %r9
	xorl	%eax, %eax
	movq	%rsi, %rcx
	decq	%rcx
	movq	%rcx, -24(%rbp)
	movzbl	(%rdx), %ecx
	movl	%ecx, (%r14)
	movq	%rdi, (%rbx)
	movq	%r9, -24(%rbp)
	je	LBB0_8
## %bb.5:
	shll	$8, %ecx
	movzbl	1(%rdx), %edi
	orl	%ecx, %edi
	movl	%edi, (%r14)
	leaq	2(%rdx), %rcx
	movq	%rcx, (%rbx)
	leaq	-3(%rsi), %r8
	movq	%r8, -24(%rbp)
	testq	%r9, %r9
	je	LBB0_8
## %bb.6:
	shll	$8, %edi
	movzbl	2(%rdx), %r9d
	orl	%edi, %r9d
	movl	%r9d, (%r14)
	leaq	3(%rdx), %rcx
	movq	%rcx, (%rbx)
	addq	$-4, %rsi
	movq	%rsi, -24(%rbp)
	testq	%r8, %r8
	je	LBB0_8
## %bb.7:
	shll	$8, %r9d
	movzbl	3(%rdx), %ecx
	orl	%r9d, %ecx
	movl	%ecx, (%r14)
	addq	$4, %rdx
	movq	%rdx, (%rbx)
	movq	%r10, -24(%rbp)
	jmp	LBB0_8
LBB0_3:
	movq	_MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_INTEGER,4,2       ## @MBEDTLS_ASN1_INTEGER
	.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_int           ; -- Begin function mbedtls_asn1_get_int
	.p2align	2
_mbedtls_asn1_get_int:                  ; @mbedtls_asn1_get_int
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x10, [sp, #8]
	sub	x8, x10, #5
	cmn	x8, #4
	b.lo	LBB0_7
; %bb.2:
	ldr	x9, [x19]
	ldrsb	w11, [x9]
	tbnz	w11, #31, LBB0_7
; %bb.3:
	str	wzr, [x20]
	sub	x12, x10, #1
	str	x12, [sp, #8]
	mov	x11, x9
	ldrb	w13, [x11], #1
	str	w13, [x20]
	str	x11, [x19]
	sub	x11, x10, #2
	str	x11, [sp, #8]
	cbz	x12, LBB0_8
; %bb.4:
	ldrb	w12, [x9, #1]
	bfi	w12, w13, #8, #8
	str	w12, [x20]
	add	x13, x9, #2
	str	x13, [x19]
	sub	x13, x10, #3
	str	x13, [sp, #8]
	cbz	x11, LBB0_8
; %bb.5:
	ldrb	w11, [x9, #2]
	bfi	w11, w12, #8, #16
	str	w11, [x20]
	add	x12, x9, #3
	str	x12, [x19]
	sub	x10, x10, #4
	str	x10, [sp, #8]
	mov	w0, #0
	cbz	x13, LBB0_9
; %bb.6:
	ldrb	w10, [x9, #3]
	bfi	w10, w11, #8, #24
	str	w10, [x20]
	add	x9, x9, #4
	str	x9, [x19]
	str	x8, [sp, #8]
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_INVALID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_INTEGER,4,2       ; @MBEDTLS_ASN1_INTEGER
	.comm	_MBEDTLS_ERR_ASN1_INVALID_LENGTH,4,2 ; @MBEDTLS_ERR_ASN1_INVALID_LENGTH
.subsections_via_symbols
