	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_string        ## -- Begin function mbedtls_mpi_read_string
	.p2align	4, 0x90
_mbedtls_mpi_read_string:               ## @mbedtls_mpi_read_string
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	leal	-17(%rbx), %eax
	cmpl	$-16, %eax
	ja	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_init
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r13
	cmpl	$16, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.3:
	movq	_MPI_SIZE_T_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shrq	$2, %rax
	cmpq	%rax, %r13
	ja	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	shlq	$2, %rdi
	callq	_BITS_TO_LIMBS
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_lset
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	_ciL@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	decq	%r13
	shll	$2, %ecx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rsi
	movq	8(%rdx), %rcx
	orq	%rsi, (%rcx,%rax,8)
	incq	%rbx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$1, %r13
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$45, (%r14)
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsbl	-1(%r14,%r13), %edx
	leaq	-56(%rbp), %rdi
	movl	$16, %esi
	callq	_mpi_get_digit
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	-56(%rbp), %rsi
	movslq	(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	addq	%rcx, %rcx
	shrq	$32, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_lset
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	testq	%r13, %r13
	je	LBB0_26
## %bb.14:
	movb	(%r14), %al
	cmpb	$45, %al
	jne	LBB0_15
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
	cmpq	$1, %r13
	je	LBB0_26
	jmp	LBB0_21
LBB0_15:
	movsbl	%al, %edx
	leaq	-56(%rbp), %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_mpi_get_digit
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-80(%rbp), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mbedtls_mpi_mul_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpl	$1, (%rbx)
	movq	-56(%rbp), %rdx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	jne	LBB0_16
## %bb.18:
	callq	_mbedtls_mpi_add_int
	jmp	LBB0_17
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
	jmp	LBB0_26
LBB0_16:
	callq	_mbedtls_mpi_sub_int
LBB0_17:
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpq	$1, %r13
	jne	LBB0_21
LBB0_26:
	leaq	-80(%rbp), %rdi
	callq	_mbedtls_mpi_free
                                        ## implicit-def: $eax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	$1, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	callq	_mbedtls_mpi_sub_int
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %edi
	movq	%r12, %r14
	callq	_MBEDTLS_MPI_CHK
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_26
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r12
	movsbl	(%r14,%rbx), %edx
	leaq	-56(%rbp), %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_mpi_get_digit
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%rsi, %r15
	callq	_mbedtls_mpi_mul_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	cmpl	$1, (%r15)
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	callq	_mbedtls_mpi_add_int
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_MPI_SIZE_T_MAX,8,3             ## @MPI_SIZE_T_MAX
	.comm	_ciL,4,2                        ## @ciL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_string        ; -- Begin function mbedtls_mpi_read_string
	.p2align	2
_mbedtls_mpi_read_string:               ; @mbedtls_mpi_read_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	w8, w1, #17
	cmn	w8, #16
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_mbedtls_mpi_init
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	cmp	w21, #16
	b.ne	LBB0_10
; %bb.3:
Lloh3:
	adrp	x8, _MPI_SIZE_T_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPI_SIZE_T_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8, lsr #2
	b.hi	LBB0_1
; %bb.4:
	lsl	x0, x22, #2
	bl	_BITS_TO_LIMBS
	mov	x1, x0
	mov	x0, x19
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x19
	mov	w1, #0
	bl	_mbedtls_mpi_lset
	bl	_MBEDTLS_MPI_CHK
	mov	x21, #0
Lloh6:
	adrp	x23, _ciL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ciL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x22, LBB0_17
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x20, x22
	ldursb	w2, [x8, #-1]
	add	x0, sp, #24
	mov	w1, #16
	bl	_mpi_get_digit
	bl	_MBEDTLS_MPI_CHK
	ldr	x8, [sp, #24]
	ldrsw	x9, [x23]
	lsl	x9, x9, #1
	udiv	x10, x21, x9
	msub	x9, x10, x9, x21
	lsl	x9, x9, #2
	ldr	x11, [x19, #8]
	lsl	x10, x10, #3
	ldr	x12, [x11, x10]
	lsl	x8, x8, x9
	orr	x8, x12, x8
	str	x8, [x11, x10]
	add	x21, x21, #1
	mov	x22, x24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	x24, x22, #1
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x20]
	cmp	w8, #45
	b.ne	LBB0_6
; %bb.9:
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_mbedtls_mpi_lset
	bl	_MBEDTLS_MPI_CHK
	cbz	x22, LBB0_17
; %bb.11:
	ldrb	w8, [x20]
	cmp	w8, #45
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #-1
	str	w8, [x19]
	subs	x22, x22, #1
	b.ne	LBB0_19
	b	LBB0_17
LBB0_13:
	sxtb	w2, w8
	add	x0, sp, #24
	mov	x1, x21
	bl	_mpi_get_digit
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x21
	bl	_mbedtls_mpi_mul_int
	bl	_MBEDTLS_MPI_CHK
	ldr	w8, [x19]
	ldr	x2, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.14:
	bl	_mbedtls_mpi_add_int
	b	LBB0_16
LBB0_15:
	bl	_mbedtls_mpi_sub_int
LBB0_16:
	bl	_MBEDTLS_MPI_CHK
	subs	x22, x22, #1
	b.ne	LBB0_19
LBB0_17:
	add	x0, sp, #8
	bl	_mbedtls_mpi_free
                                        ; implicit-def: $w0
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	add	x20, x20, #1
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	bl	_mbedtls_mpi_sub_int
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	bl	_MBEDTLS_MPI_CHK
	add	x20, x20, #1
	subs	x22, x22, #1
	b.eq	LBB0_17
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w2, [x20]
	add	x0, sp, #24
	mov	x1, x21
	bl	_mpi_get_digit
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x21
	bl	_mbedtls_mpi_mul_int
	bl	_MBEDTLS_MPI_CHK
	ldr	w8, [x19]
	ldr	x2, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_mbedtls_mpi_add_int
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_MPI_SIZE_T_MAX,8,3             ; @MPI_SIZE_T_MAX
	.comm	_ciL,4,2                        ; @ciL
.subsections_via_symbols
