	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_parse_key_pkcs1_der
_pk_parse_key_pkcs1_der:                ## @pk_parse_key_pkcs1_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -40(%rbp)
	addq	%rdx, %rsi
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %r15
	addq	-48(%rbp), %r15
	leaq	36(%r14), %r12
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_asn1_get_int
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movl	%eax, %ebx
LBB0_3:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_4:
	addl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.7:
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_8:
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	leaq	32(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	leaq	28(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	leaq	24(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	leaq	20(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	leaq	16(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	leaq	12(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	leaq	8(%r14), %rdx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_mbedtls_rsa_free
	jmp	LBB0_3
LBB0_17:
	movq	%r14, %rdi
	callq	_mbedtls_mpi_size
	movl	%eax, 4(%r14)
	cmpq	%r15, -40(%rbp)
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_mbedtls_rsa_free
	movq	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	jmp	LBB0_4
LBB0_19:
	movq	%r14, %rdi
	callq	_mbedtls_rsa_check_privkey
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mbedtls_rsa_free
	jmp	LBB0_5
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION,4,2 ## @MBEDTLS_ERR_PK_KEY_INVALID_VERSION
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.no_dead_strip	_pk_parse_key_pkcs1_der
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_parse_key_pkcs1_der
_pk_parse_key_pkcs1_der:                ; @pk_parse_key_pkcs1_der
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	x1, [sp]
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	add	x1, x1, x2
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, sp
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	x8, x9, [sp]
	add	x20, x8, x9
	add	x21, x19, #36
	mov	x0, sp
	mov	x1, x20
	mov	x2, x21
	bl	_mbedtls_asn1_get_int
	cbz	w0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w20, w8, w0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_3
LBB0_6:
	mov	x0, sp
	mov	x1, x20
	mov	x2, x19
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.7:
	add	x2, x19, #32
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.8:
	add	x2, x19, #28
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.9:
	add	x2, x19, #24
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.10:
	add	x2, x19, #20
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.11:
	add	x2, x19, #16
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.12:
	add	x2, x19, #12
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.13:
	add	x2, x19, #8
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	mov	x21, x0
	cbz	w0, LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_mbedtls_rsa_free
Lloh12:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w20, w8, w21
	b	LBB0_3
LBB0_15:
	mov	x0, x19
	bl	_mbedtls_mpi_size
	str	w0, [x19, #4]
	ldr	x8, [sp]
	cmp	x8, x20
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mbedtls_rsa_free
Lloh15:
	adrp	x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_KEY_INVALID_FORMAT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	w20, w9, w8
	b	LBB0_3
LBB0_17:
	mov	x0, x19
	bl	_mbedtls_rsa_check_privkey
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.18:
	mov	x0, x19
	bl	_mbedtls_rsa_free
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_FORMAT,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_FORMAT
	.comm	_MBEDTLS_ERR_PK_KEY_INVALID_VERSION,4,2 ; @MBEDTLS_ERR_PK_KEY_INVALID_VERSION
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.no_dead_strip	_pk_parse_key_pkcs1_der
.subsections_via_symbols
