	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_crt_parse_der_core
_x509_crt_parse_der_core:               ## @x509_crt_parse_der_core
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%r14, -48(%rbp)
	movq	%rbx, -56(%rbp)
	addq	%r14, %rbx
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r12
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_45
LBB0_2:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_45
LBB0_5:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rsi
	subq	%rsi, %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_6
LBB0_43:
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_44
LBB0_6:
	addl	%eax, %esi
	subl	%r14d, %esi
	movl	%esi, 128(%r13)
	movl	$1, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mbedtls_calloc
	movq	%rax, -48(%rbp)
	movq	%rax, 136(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	128(%r13), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movslq	128(%r13), %rax
	movq	%rax, %rcx
	subq	-56(%rbp), %rcx
	movq	-48(%rbp), %r14
	addq	%r14, %rcx
	movq	%rcx, -48(%rbp)
	addq	%rax, %r14
	movq	%rcx, 112(%r13)
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_44:
	addl	(%rax), %ebx
	jmp	LBB0_45
LBB0_7:
	movq	_MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_45
LBB0_10:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14
	addq	-56(%rbp), %r14
	movl	112(%r13), %eax
	movl	%r14d, %ecx
	subl	%eax, %ecx
	movl	%ecx, 120(%r13)
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_x509_get_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	leaq	104(%r13), %rdx
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_x509_get_serial
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	8(%r13), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-96(%rbp), %rcx
	movq	%r14, %rsi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_mbedtls_x509_get_alg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
LBB0_45:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	cmpl	$3, %eax
	jl	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
	movq	_MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_45
LBB0_16:
	leaq	100(%r13), %rdx
	leaq	96(%r13), %rcx
	leaq	92(%r13), %r8
	leaq	-96(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mbedtls_x509_get_sig_alg
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_18:
	movq	-48(%rbp), %rax
	movq	%rax, 72(%r13)
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_9
## %bb.19:
	movq	-48(%rbp), %rsi
	addq	-56(%rbp), %rsi
	leaq	88(%r13), %rdx
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_x509_get_name
	testl	%eax, %eax
	jne	LBB0_17
## %bb.20:
	movl	-48(%rbp), %eax
	subl	72(%r13), %eax
	movl	%eax, 80(%r13)
	leaq	64(%r13), %rdx
	leaq	60(%r13), %rcx
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_x509_get_dates
	testl	%eax, %eax
	jne	LBB0_17
## %bb.21:
	movq	-48(%rbp), %rax
	movq	%rax, 40(%r13)
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_9
## %bb.22:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:
	addq	-48(%rbp), %rsi
	leaq	56(%r13), %rdx
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_x509_get_name
	testl	%eax, %eax
	jne	LBB0_17
LBB0_24:
	movl	-48(%rbp), %eax
	subl	40(%r13), %eax
	movl	%eax, 48(%r13)
	leaq	32(%r13), %rdx
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mbedtls_pk_parse_subpubkey
	testl	%eax, %eax
	jne	LBB0_17
## %bb.25:
	movl	(%r13), %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$2, %ecx
	jne	LBB0_28
## %bb.26:
	leaq	28(%r13), %rdx
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_x509_get_uid
	testl	%eax, %eax
	jne	LBB0_17
## %bb.27:
	movl	(%r13), %eax
LBB0_28:
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_32
## %bb.29:
	leaq	24(%r13), %rdx
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_x509_get_uid
	testl	%eax, %eax
	jne	LBB0_17
## %bb.30:
	cmpl	$3, (%r13)
	jne	LBB0_32
## %bb.31:
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_x509_get_crt_ext
	testl	%eax, %eax
	jne	LBB0_17
LBB0_32:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_43
## %bb.33:
	leaq	-48(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	leaq	-128(%rbp), %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mbedtls_x509_get_alg
	testl	%eax, %eax
	jne	LBB0_17
## %bb.34:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	cmpq	-112(%rbp), %rdx
	jne	LBB0_39
## %bb.35:
	movl	16(%r13), %edi
	movl	-104(%rbp), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_39
## %bb.36:
	movq	-96(%rbp), %rdx
	cmpq	-128(%rbp), %rdx
	jne	LBB0_39
## %bb.37:
	testq	%rdx, %rdx
	je	LBB0_40
## %bb.38:
	movl	-88(%rbp), %edi
	movl	-120(%rbp), %esi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_40
LBB0_39:
	movq	%r13, %rdi
	callq	_mbedtls_x509_crt_free
	movq	_MBEDTLS_ERR_X509_SIG_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_45
LBB0_40:
	leaq	4(%r13), %rdx
	leaq	-48(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mbedtls_x509_get_sig
	testl	%eax, %eax
	jne	LBB0_17
## %bb.41:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_43
## %bb.42:
	xorl	%ebx, %ebx
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_X509_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_VERSION,4,2 ## @MBEDTLS_ERR_X509_UNKNOWN_VERSION
	.comm	_MBEDTLS_ERR_X509_SIG_MISMATCH,4,2 ## @MBEDTLS_ERR_X509_SIG_MISMATCH
	.no_dead_strip	_x509_crt_parse_der_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_crt_parse_der_core
_x509_crt_parse_der_core:               ; @x509_crt_parse_der_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cbz	x19, LBB0_4
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	stp	x20, x21, [sp, #48]
Lloh0:
	adrp	x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x21, x20, x21
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x0, sp, #48
	add	x2, sp, #56
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh4:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
LBB0_5:
	ldr	w23, [x8]
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	ldp	x9, x8, [sp, #48]
	sub	x10, x21, x9
	cmp	x8, x10
	b.ls	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh8:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	add	w23, w9, w8
	b	LBB0_6
LBB0_9:
	add	w8, w9, w8
	sub	w1, w8, w20
	str	w1, [x19, #128]
	mov	w0, #1
	bl	_mbedtls_calloc
	str	x0, [sp, #48]
	str	x0, [x19, #136]
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w2, [x19, #128]
	mov	x1, x20
	bl	_memcpy
	ldrsw	x8, [x19, #128]
	ldp	x10, x9, [sp, #48]
	sub	x9, x8, x9
	add	x9, x10, x9
	str	x9, [sp, #48]
	add	x20, x10, x8
	str	x9, [x19, #112]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x0, sp, #48
	add	x2, sp, #56
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_13
; %bb.11:
	mov	x21, x0
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh14:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w23, w8, w21
	b	LBB0_6
LBB0_12:
Lloh17:
	adrp	x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	ldp	x8, x9, [sp, #48]
	ldr	w10, [x19, #112]
	add	x21, x8, x9
	sub	w8, w21, w10
	str	w8, [x19, #120]
	add	x0, sp, #48
	mov	x1, x21
	mov	x2, x19
	bl	_x509_get_version
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.14:
	add	x2, x19, #104
	add	x0, sp, #48
	mov	x1, x21
	bl	_mbedtls_x509_get_serial
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.15:
	add	x22, x19, #8
	add	x0, sp, #48
	add	x3, sp, #32
	mov	x1, x21
	mov	x2, x22
	bl	_mbedtls_x509_get_alg
	mov	x23, x0
	cbz	w0, LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
	b	LBB0_6
LBB0_17:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cmp	w8, #3
	b.lt	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh19:
	adrp	x8, _MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPAGEOFF]
	b	LBB0_5
LBB0_19:
	add	x2, x19, #100
	add	x3, x19, #96
	add	x4, x19, #92
	add	x1, sp, #32
	mov	x0, x22
	bl	_mbedtls_x509_get_sig_alg
	cbz	w0, LBB0_21
LBB0_20:
	mov	x23, x0
	b	LBB0_16
LBB0_21:
	ldr	x8, [sp, #48]
	str	x8, [x19, #72]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x0, sp, #48
	add	x2, sp, #56
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_23
LBB0_22:
	mov	x23, x0
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh21:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	w23, w8, w23
	b	LBB0_6
LBB0_23:
	ldp	x8, x9, [sp, #48]
	add	x1, x8, x9
	add	x2, x19, #88
	add	x0, sp, #48
	bl	_mbedtls_x509_get_name
	cbnz	w0, LBB0_20
; %bb.24:
	ldr	w8, [sp, #48]
	ldr	w9, [x19, #72]
	sub	w8, w8, w9
	str	w8, [x19, #80]
	add	x2, x19, #64
	add	x3, x19, #60
	add	x0, sp, #48
	mov	x1, x21
	bl	_x509_get_dates
	cbnz	w0, LBB0_20
; %bb.25:
	ldr	x8, [sp, #48]
	str	x8, [x19, #40]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x0, sp, #48
	add	x2, sp, #56
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_22
; %bb.26:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	x9, [sp, #48]
	add	x1, x9, x8
	add	x2, x19, #56
	add	x0, sp, #48
	bl	_mbedtls_x509_get_name
	cbnz	w0, LBB0_20
LBB0_28:
	ldr	w8, [sp, #48]
	ldr	w9, [x19, #40]
	sub	w8, w8, w9
	str	w8, [x19, #48]
	add	x2, x19, #32
	add	x0, sp, #48
	mov	x1, x21
	bl	_mbedtls_pk_parse_subpubkey
	cbnz	w0, LBB0_20
; %bb.29:
	ldr	w8, [x19]
	and	w9, w8, #0xfffffffe
	cmp	w9, #2
	b.ne	LBB0_32
; %bb.30:
	add	x2, x19, #28
	add	x0, sp, #48
	mov	x1, x21
	mov	w3, #1
	bl	_x509_get_uid
	cbnz	w0, LBB0_20
; %bb.31:
	ldr	w8, [x19]
LBB0_32:
	and	w8, w8, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_36
; %bb.33:
	add	x2, x19, #24
	add	x0, sp, #48
	mov	x1, x21
	mov	w3, #2
	bl	_x509_get_uid
	cbnz	w0, LBB0_20
; %bb.34:
	ldr	w8, [x19]
	cmp	w8, #3
	b.ne	LBB0_36
; %bb.35:
	add	x0, sp, #48
	mov	x1, x21
	mov	x2, x19
	bl	_x509_get_crt_ext
	cbnz	w0, LBB0_20
LBB0_36:
	ldr	x8, [sp, #48]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.37:
	add	x0, sp, #48
	mov	x2, sp
	add	x3, sp, #16
	mov	x1, x20
	bl	_mbedtls_x509_get_alg
	cbnz	w0, LBB0_20
; %bb.38:
	ldr	x2, [x22]
	ldr	x8, [sp]
	cmp	x2, x8
	b.ne	LBB0_43
; %bb.39:
	ldr	w0, [x19, #16]
	ldr	w1, [sp, #8]
	bl	_memcmp
	cbnz	x0, LBB0_43
; %bb.40:
	ldr	x2, [sp, #32]
	ldr	x8, [sp, #16]
	cmp	x2, x8
	b.ne	LBB0_43
; %bb.41:
	cbz	x2, LBB0_44
; %bb.42:
	ldr	w0, [sp, #40]
	ldr	w1, [sp, #24]
	bl	_memcmp
	cbz	x0, LBB0_44
LBB0_43:
	mov	x0, x19
	bl	_mbedtls_x509_crt_free
Lloh24:
	adrp	x8, _MBEDTLS_ERR_X509_SIG_MISMATCH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_SIG_MISMATCH@GOTPAGEOFF]
	b	LBB0_5
LBB0_44:
	add	x2, x19, #4
	add	x0, sp, #48
	mov	x1, x20
	bl	_mbedtls_x509_get_sig
	cbnz	w0, LBB0_20
; %bb.45:
	ldr	x8, [sp, #48]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.46:
	mov	w23, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_X509_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_VERSION,4,2 ; @MBEDTLS_ERR_X509_UNKNOWN_VERSION
	.comm	_MBEDTLS_ERR_X509_SIG_MISMATCH,4,2 ; @MBEDTLS_ERR_X509_SIG_MISMATCH
	.no_dead_strip	_x509_crt_parse_der_core
.subsections_via_symbols
