	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdsa_verify           ## -- Begin function mbedtls_ecdsa_verify
	.p2align	4, 0x90
_mbedtls_ecdsa_verify:                  ## @mbedtls_ecdsa_verify
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_ecp_point_init
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_init
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_init
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_4
LBB0_8:
	movq	_MBEDTLS_ERR_ECP_VERIFY_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rdi
	callq	_mbedtls_ecp_point_free
	leaq	-56(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-72(%rbp), %rdi
	callq	_mbedtls_mpi_free
	leaq	-64(%rbp), %rdi
	callq	_mbedtls_mpi_free
	jmp	LBB0_9
LBB0_1:
	movq	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	jns	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_mbedtls_ecp_check_pubkey
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_derive_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_inv_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_mbedtls_mpi_mul_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	8(%rbx), %rcx
	leaq	-48(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_mbedtls_ecp_muladd
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r13, %rdi
	callq	_mbedtls_ecp_is_zero
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_mod_mpi
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ECP_VERIFY_FAILED,4,2 ## @MBEDTLS_ERR_ECP_VERIFY_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ecdsa_verify           ; -- Begin function mbedtls_ecdsa_verify
	.p2align	2
_mbedtls_ecdsa_verify:                  ; @mbedtls_ecdsa_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x5
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_mbedtls_ecp_point_init
	add	x0, sp, #40
	bl	_mbedtls_mpi_init
	add	x0, sp, #32
	bl	_mbedtls_mpi_init
	add	x0, sp, #24
	bl	_mbedtls_mpi_init
	add	x0, sp, #16
	bl	_mbedtls_mpi_init
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_ECP_VERIFY_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_VERIFY_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, sp, #8
	bl	_mbedtls_ecp_point_free
	add	x0, sp, #40
	bl	_mbedtls_mpi_free
	add	x0, sp, #32
	bl	_mbedtls_mpi_free
	add	x0, sp, #24
	bl	_mbedtls_mpi_free
	add	x0, sp, #16
	bl	_mbedtls_mpi_free
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ECP_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x22
	mov	w1, #1
	bl	_mbedtls_mpi_cmp_int
	tbnz	x0, #63, LBB0_3
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_mbedtls_mpi_cmp_mpi
	tbz	x0, #63, LBB0_3
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_mbedtls_ecp_check_pubkey
	bl	_MBEDTLS_MPI_CHK
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x24
	mov	x3, x23
	bl	_derive_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #32
	mov	x1, x22
	mov	x2, x20
	bl	_mbedtls_mpi_inv_mod
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #24
	add	x1, sp, #40
	add	x2, sp, #32
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #24
	add	x1, sp, #24
	mov	x2, x20
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #16
	add	x2, sp, #32
	mov	x1, x19
	bl	_mbedtls_mpi_mul_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #16
	add	x1, sp, #16
	mov	x2, x20
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x3, x20, #8
	add	x1, sp, #8
	add	x2, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	mov	x5, x21
	bl	_mbedtls_ecp_muladd
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	bl	_mbedtls_ecp_is_zero
	cbnz	x0, LBB0_3
; %bb.9:
	add	x0, sp, #8
	add	x1, sp, #8
	mov	x2, x20
	bl	_mbedtls_mpi_mod_mpi
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	mov	x1, x19
	bl	_mbedtls_mpi_cmp_mpi
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ECP_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_ECP_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_ECP_VERIFY_FAILED,4,2 ; @MBEDTLS_ERR_ECP_VERIFY_FAILED
.subsections_via_symbols
