	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_binary        ## -- Begin function mbedtls_mpi_read_binary
	.p2align	4, 0x90
_mbedtls_mpi_read_binary:               ## @mbedtls_mpi_read_binary
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r14,%rbx)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_1
## %bb.3:
	movq	%r12, %rbx
LBB0_4:
	movq	%r12, %rdi
	subq	%rbx, %rdi
	callq	_CHARS_TO_LIMBS
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mbedtls_mpi_grow
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_lset
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r12, %r10
	subq	%rbx, %r10
	jbe	LBB0_10
## %bb.5:
	movq	(%r15), %r8
	leaq	(%r12,%r14), %rbx
	decq	%rbx
	xorl	%esi, %esi
	movq	_ciL@GOTPCREL(%rip), %r9
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	shll	$3, %ecx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdi
	orq	%rdi, (%r8,%rax,8)
	incq	%rsi
	decq	%rbx
	cmpq	%rsi, %r10
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	movq	(%r9), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ciL,8,3                        ## @ciL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_binary        ; -- Begin function mbedtls_mpi_read_binary
	.p2align	2
_mbedtls_mpi_read_binary:               ; @mbedtls_mpi_read_binary
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	cbz	x2, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x22]
	cbnz	w8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x22, #1
	cmp	x19, x22
	b.ne	LBB0_1
; %bb.3:
	mov	x22, x19
LBB0_4:
	subs	x0, x19, x22
	bl	_CHARS_TO_LIMBS
	mov	x1, x0
	mov	x0, x21
	bl	_mbedtls_mpi_grow
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_lset
	bl	_MBEDTLS_MPI_CHK
	subs	x8, x19, x22
	b.ls	LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x10, [x21]
	add	x11, x19, x20
	sub	x11, x11, #1
Lloh0:
	adrp	x12, _ciL@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ciL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x11], #-1
	ldr	x14, [x12]
	udiv	x15, x9, x14
	msub	x14, x15, x14, x9
	lsl	x14, x14, #3
	lsl	x15, x15, #3
	ldr	x16, [x10, x15]
	lsl	x13, x13, x14
	orr	x13, x16, x13
	str	x13, [x10, x15]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ciL,8,3                        ; @ciL
.subsections_via_symbols
