	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdsa_read_signature   ## -- Begin function mbedtls_ecdsa_read_signature
	.p2align	4, 0x90
_mbedtls_ecdsa_read_signature:          ## @mbedtls_ecdsa_read_signature
	.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	%r8, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rcx, -56(%rbp)
	addq	%rcx, %r13
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-44(%rbp), %rdi
	callq	_mbedtls_mpi_init
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-56(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rsi
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
LBB0_2:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	-56(%rbp), %rax
	addq	-64(%rbp), %rax
	cmpq	%r13, %rax
	je	LBB0_7
## %bb.4:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_5:
	addl	(%rax), %ebx
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-44(%rbp), %rdi
	callq	_mbedtls_mpi_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:
	leaq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rsi
	callq	_mbedtls_asn1_get_mpi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	leaq	4(%r15), %rdi
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_mbedtls_ecdsa_verify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	xorl	%ebx, %ebx
	cmpq	%r13, -56(%rbp)
	je	LBB0_6
## %bb.11:
	movq	_MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
	.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_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH,4,2 ## @MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdsa_read_signature   ; -- Begin function mbedtls_ecdsa_read_signature
	.p2align	2
_mbedtls_ecdsa_read_signature:          ; @mbedtls_ecdsa_read_signature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	str	x3, [sp, #24]
	add	x19, x3, x4
	add	x0, sp, #12
	bl	_mbedtls_mpi_init
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
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
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x19
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w20, w8, w0
	b	LBB0_4
LBB0_2:
	ldp	x9, x8, [sp, #16]
	add	x8, x8, x9
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w20, w9, w8
LBB0_4:
	add	x0, sp, #12
	bl	_mbedtls_mpi_free
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	add	x0, sp, #24
	add	x2, sp, #12
	mov	x1, x19
	bl	_mbedtls_asn1_get_mpi
	cbnz	w0, LBB0_1
; %bb.6:
	add	x0, sp, #24
	add	x2, sp, #8
	mov	x1, x19
	bl	_mbedtls_asn1_get_mpi
	cbnz	w0, LBB0_1
; %bb.7:
	add	x0, x21, #4
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_mbedtls_ecdsa_verify
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.8:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, _MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	x8, x19
	csel	w20, wzr, w9, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH,4,2 ; @MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH
.subsections_via_symbols
