	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_csr_parse_der     ## -- Begin function mbedtls_x509_csr_parse_der
	.p2align	4, 0x90
_mbedtls_x509_csr_parse_der:            ## @mbedtls_x509_csr_parse_der
	.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	$24, %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, %r12
	movq	%rdi, %r14
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_init
	movq	%rbx, -56(%rbp)
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_mbedtls_calloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r15, 24(%r14)
	movq	%rbx, 32(%r14)
	addq	%rbx, %r15
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r12
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_3:
	movq	_MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_5:
	movq	_MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_8:
	movq	-48(%rbp), %rax
	movq	%r15, %rcx
	subq	%rax, %rcx
	cmpq	%rcx, -56(%rbp)
	jne	LBB0_25
## %bb.9:
	movq	%rax, 72(%r14)
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_11:
	movq	-48(%rbp), %r15
	addq	-56(%rbp), %r15
	movl	72(%r14), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movl	%ecx, 80(%r14)
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_x509_csr_get_version
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	jmp	LBB0_27
LBB0_13:
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	movq	_MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_15:
	movq	-48(%rbp), %rax
	movq	%rax, 48(%r14)
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_10
## %bb.16:
	movq	-48(%rbp), %rsi
	addq	-56(%rbp), %rsi
	leaq	64(%r14), %rdx
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_x509_get_name
	testl	%eax, %eax
	jne	LBB0_12
## %bb.17:
	movl	-48(%rbp), %eax
	subl	48(%r14), %eax
	movl	%eax, 56(%r14)
	leaq	40(%r14), %rdx
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_pk_parse_subpubkey
	testl	%eax, %eax
	jne	LBB0_12
## %bb.18:
	movq	_MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_10
## %bb.19:
	movq	-56(%rbp), %rax
	addq	%rax, -48(%rbp)
	movq	24(%r14), %r15
	addq	32(%r14), %r15
	leaq	20(%r14), %r12
	leaq	-48(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_x509_get_alg
	testl	%eax, %eax
	jne	LBB0_12
## %bb.20:
	leaq	16(%r14), %rdx
	leaq	12(%r14), %rcx
	leaq	8(%r14), %r8
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mbedtls_x509_get_sig_alg
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	movq	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
LBB0_22:
	leaq	4(%r14), %rdx
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_x509_get_sig
	testl	%eax, %eax
	jne	LBB0_12
## %bb.23:
	cmpq	%r15, -48(%rbp)
	je	LBB0_24
LBB0_25:
	movq	%r14, %rdi
	callq	_mbedtls_x509_csr_free
	movq	_MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_26:
	addl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
	.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_UNKNOWN_VERSION,4,2 ## @MBEDTLS_ERR_X509_UNKNOWN_VERSION
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,4,2 ## @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG,4,2 ## @MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_csr_parse_der     ; -- Begin function mbedtls_x509_csr_parse_der
	.p2align	2
_mbedtls_x509_csr_parse_der:            ; @mbedtls_x509_csr_parse_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cbz	x19, LBB0_6
; %bb.1:
	cbz	x21, LBB0_6
; %bb.2:
	cbz	x20, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_mbedtls_x509_csr_init
	str	x20, [sp, #24]
	mov	w0, #1
	mov	x1, x20
	bl	_mbedtls_calloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	stp	x22, x20, [x19, #24]
Lloh0:
	adrp	x23, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x20, x22, x20
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
Lloh4:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	b	LBB0_25
LBB0_6:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_25
LBB0_7:
Lloh10:
	adrp	x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_25
LBB0_8:
	ldp	x8, x9, [sp, #16]
	sub	x10, x20, x8
	cmp	x9, x10
	b.ne	LBB0_24
; %bb.9:
	str	x8, [x19, #72]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	mov	x1, x20
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_11
LBB0_10:
	mov	x20, x0
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
Lloh13:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w20, w8, w20
	b	LBB0_25
LBB0_11:
	ldp	x8, x9, [sp, #16]
	ldr	w10, [x19, #72]
	add	x21, x8, x9
	sub	w8, w21, w10
	str	w8, [x19, #80]
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x19
	bl	_x509_csr_get_version
	cbz	w0, LBB0_13
LBB0_12:
	mov	x20, x0
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
	b	LBB0_25
LBB0_13:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbz	w8, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
Lloh16:
	adrp	x8, _MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_UNKNOWN_VERSION@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	b	LBB0_25
LBB0_15:
	ldr	x8, [sp, #16]
	str	x8, [x19, #48]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_10
; %bb.16:
	ldp	x8, x9, [sp, #16]
	add	x1, x8, x9
	add	x2, x19, #64
	add	x0, sp, #16
	bl	_mbedtls_x509_get_name
	cbnz	w0, LBB0_12
; %bb.17:
	ldr	w8, [sp, #16]
	ldr	w9, [x19, #48]
	sub	w8, w8, w9
	str	w8, [x19, #56]
	add	x2, x19, #40
	add	x0, sp, #16
	mov	x1, x21
	bl	_mbedtls_pk_parse_subpubkey
	cbnz	w0, LBB0_12
; %bb.18:
	ldr	w8, [x23]
Lloh19:
	adrp	x9, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x0, sp, #16
	add	x2, sp, #24
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_10
; %bb.19:
	ldp	x9, x8, [sp, #16]
	add	x8, x9, x8
	str	x8, [sp, #16]
	ldp	x8, x9, [x19, #24]
	add	x21, x8, x9
	add	x22, x19, #20
	add	x0, sp, #16
	add	x3, sp, #12
	mov	x1, x21
	mov	x2, x22
	bl	_mbedtls_x509_get_alg
	cbnz	w0, LBB0_12
; %bb.20:
	add	x2, x19, #16
	add	x3, x19, #12
	add	x4, x19, #8
	add	x1, sp, #12
	mov	x0, x22
	bl	_mbedtls_x509_get_sig_alg
	cbz	w0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
Lloh22:
	adrp	x8, _MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	b	LBB0_25
LBB0_22:
	add	x2, x19, #4
	add	x0, sp, #16
	mov	x1, x21
	bl	_mbedtls_x509_get_sig
	cbnz	w0, LBB0_12
; %bb.23:
	ldr	x8, [sp, #16]
	cmp	x8, x21
	b.eq	LBB0_26
LBB0_24:
	mov	x0, x19
	bl	_mbedtls_x509_csr_free
Lloh25:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_FORMAT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	add	w20, w9, w8
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	mov	w20, #0
	b	LBB0_25
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_X509_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_X509_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
	.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_UNKNOWN_VERSION,4,2 ; @MBEDTLS_ERR_X509_UNKNOWN_VERSION
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,4,2 ; @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG,4,2 ; @MBEDTLS_ERR_X509_UNKNOWN_SIG_ALG
.subsections_via_symbols
