	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_cmp_mpi            ## -- Begin function mbedtls_mpi_cmp_mpi
	.p2align	4, 0x90
_mbedtls_mpi_cmp_mpi:                   ## @mbedtls_mpi_cmp_mpi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r8
	subq	$1, %rax
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rdx
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_1
LBB0_3:
	movq	(%rsi), %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	subq	$1, %rdx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rsi), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_4
	jmp	LBB0_7
LBB0_6:
	testq	%r8, %r8
	je	LBB0_14
LBB0_7:
	cmpq	%rax, %r8
	jbe	LBB0_9
## %bb.8:
	movl	16(%rdi), %eax
	popq	%rbp
	retq
LBB0_9:
	jae	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	subl	16(%rsi), %eax
	popq	%rbp
	retq
LBB0_11:
	movl	16(%rdi), %edx
	movl	16(%rsi), %eax
	testl	%edx, %edx
	jle	LBB0_15
## %bb.12:
	testl	%eax, %eax
	jns	LBB0_17
## %bb.13:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_15:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.16:
	movl	$-1, %eax
	testl	%edx, %edx
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	subq	$1, %r8
	jb	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rdi), %rax
	movq	8(%rsi), %rcx
	movq	(%rcx,%r8,8), %rcx
	cmpq	%rcx, (%rax,%r8,8)
	jg	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	jge	LBB0_17
## %bb.20:
	negl	%edx
LBB0_21:
	movl	%edx, %eax
LBB0_22:
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_cmp_mpi            ; -- Begin function mbedtls_mpi_cmp_mpi
	.p2align	2
_mbedtls_mpi_cmp_mpi:                   ; @mbedtls_mpi_cmp_mpi
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	sub	x8, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	cmn	x8, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x0, #8]
	ldr	x10, [x8, x9, lsl #3]
	sub	x8, x9, #1
	cbz	x10, LBB0_1
LBB0_3:
	ldr	x11, [x1]
	add	x8, x9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	cbz	x11, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x1, #8]
	sub	x11, x10, #1
	add	x12, x12, x10, lsl #3
	ldur	x12, [x12, #-8]
	cbz	x12, LBB0_4
	b	LBB0_7
LBB0_6:
	cmn	x9, #1
	b.eq	LBB0_22
LBB0_7:
	cmp	x8, x10
	b.ls	LBB0_9
; %bb.8:
	ldr	w0, [x0, #16]
	ret
LBB0_9:
	cmp	x10, x8
	b.ls	LBB0_13
; %bb.10:
	ldr	w8, [x1, #16]
LBB0_11:
	neg	w8, w8
LBB0_12:
	mov	x0, x8
	ret
LBB0_13:
	ldr	w8, [x0, #16]
	ldr	w10, [x1, #16]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	tbz	w10, #31, LBB0_19
; %bb.15:
	mov	w0, #1
	ret
LBB0_16:
	cmp	w10, #1
	b.lt	LBB0_19
; %bb.17:
	cbz	w8, LBB0_19
; %bb.18:
	mov	w0, #-1
	ret
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmn	x9, #1
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x10, [x0, #8]
	lsl	x11, x9, #3
	ldr	x10, [x10, x11]
	ldr	x12, [x1, #8]
	ldr	x11, [x12, x11]
	cmp	x10, x11
	b.gt	LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	sub	x9, x9, #1
	cmp	x10, x11
	b.ge	LBB0_19
	b	LBB0_11
LBB0_22:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
