	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_safe_cond_swap     ## -- Begin function mbedtls_mpi_safe_cond_swap
	.p2align	4, 0x90
_mbedtls_mpi_safe_cond_swap:            ## @mbedtls_mpi_safe_cond_swap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rsi, %rdi
	je	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rsi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	testb	%r14b, %r14b
	movl	8(%rbx), %eax
	movl	8(%r15), %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 8(%rbx)
	cmovel	8(%r15), %eax
	movl	%eax, 8(%r15)
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	%r14b, %r14b
	movq	16(%rbx), %rcx
	movq	16(%r15), %rdx
	movzbl	(%rdx,%rax), %edx
	movzbl	(%rcx,%rax), %esi
	cmovel	%esi, %edx
	movb	%dl, (%rcx,%rax)
	movq	16(%r15), %rcx
	movzbl	(%rcx,%rax), %edx
	cmovnel	%esi, %edx
	movb	%dl, (%rcx,%rax)
	incq	%rax
	cmpq	(%rbx), %rax
	jb	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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_safe_cond_swap     ; -- Begin function mbedtls_mpi_safe_cond_swap
	.p2align	2
_mbedtls_mpi_safe_cond_swap:            ; @mbedtls_mpi_safe_cond_swap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	x0, x1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x1, [x1]
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
	ldr	w8, [x21, #8]
	ldr	w9, [x20, #8]
	cmp	w19, #0
	csel	w9, w8, w9, eq
	str	w9, [x21, #8]
	ldr	w9, [x20, #8]
	csel	w8, w9, w8, eq
	str	w8, [x20, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldrb	w10, [x9, x8]
	ldr	x11, [x20, #16]
	ldrb	w11, [x11, x8]
	cmp	w19, #0
	csel	w11, w10, w11, eq
	strb	w11, [x9, x8]
	ldr	x9, [x20, #16]
	ldrb	w11, [x9, x8]
	csel	w10, w11, w10, eq
	strb	w10, [x9, x8]
	add	x8, x8, #1
	ldr	x9, [x21]
	cmp	x8, x9
	b.lo	LBB0_3
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
