	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_file          ## -- Begin function mbedtls_mpi_read_file
	.p2align	4, 0x90
_mbedtls_mpi_read_file:                 ## @mbedtls_mpi_read_file
	.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
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_MPI_RW_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%ebx, %esi
	decl	%esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
	leaq	-2(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.2:
	movq	_MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_3:
	movq	_MBEDTLS_ERR_MPI_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-1(%rax), %r14
	movb	-1(%r12,%rax), %dl
	cmpb	$10, %dl
	jne	LBB0_9
## %bb.6:
	movb	$0, (%r12,%r14)
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	movq	%rax, %rcx
	addq	$-2, %rcx
	movb	-2(%r12,%rax), %dl
	cmpb	$13, %dl
	je	LBB0_10
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	movq	%r14, %rcx
	movq	%rax, %r14
	cmpb	$13, %dl
	jne	LBB0_12
LBB0_10:
	movb	$0, (%r12,%rcx)
	movq	%rcx, %r14
LBB0_12:
	addq	%r12, %r14
	leaq	-68(%rbp), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	cmpq	%r12, %r14
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	-1(%rbx), %r14
	movsbl	-1(%rbx), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_mpi_get_digit
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_mbedtls_mpi_read_string
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_MPI_RW_BUFFER_SIZE,4,2 ## @MBEDTLS_MPI_RW_BUFFER_SIZE
	.comm	_MBEDTLS_ERR_MPI_FILE_IO_ERROR,4,2 ## @MBEDTLS_ERR_MPI_FILE_IO_ERROR
	.comm	_MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL,4,2 ## @MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_read_file          ; -- Begin function mbedtls_mpi_read_file
	.p2align	2
_mbedtls_mpi_read_file:                 ; @mbedtls_mpi_read_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	sp, sp, #16
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MBEDTLS_MPI_RW_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_MPI_RW_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	sub	w1, w22, #1
	mov	x0, x21
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_strlen
	sub	x8, x22, #2
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_3:
Lloh11:
	adrp	x8, _MBEDTLS_ERR_MPI_FILE_IO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_FILE_IO_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_4:
	cbz	x0, LBB0_8
; %bb.5:
	sub	x8, x0, #1
	ldrb	w10, [x21, x8]
	cmp	w10, #10
	b.ne	LBB0_9
; %bb.6:
	strb	wzr, [x21, x8]
	cbz	x8, LBB0_11
; %bb.7:
	sub	x9, x0, #2
	ldrb	w10, [x21, x9]
	cmp	w10, #13
	b.eq	LBB0_10
	b	LBB0_11
LBB0_8:
	mov	x8, #0
	b	LBB0_11
LBB0_9:
	mov	x9, x8
	mov	x8, x0
	cmp	w10, #13
	b.ne	LBB0_11
LBB0_10:
	strb	wzr, [x21, x9]
	mov	x8, x9
LBB0_11:
	add	x23, x21, x8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x23
	cmp	x23, x21
	b.ls	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, x22
	ldrsb	w2, [x23, #-1]!
	sub	x0, x29, #60
	mov	x1, x19
	bl	_mpi_get_digit
	cbz	x0, LBB0_12
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mbedtls_mpi_read_string
LBB0_15:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_MPI_RW_BUFFER_SIZE,4,2 ; @MBEDTLS_MPI_RW_BUFFER_SIZE
	.comm	_MBEDTLS_ERR_MPI_FILE_IO_ERROR,4,2 ; @MBEDTLS_ERR_MPI_FILE_IO_ERROR
	.comm	_MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL,4,2 ; @MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL
.subsections_via_symbols
