	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpi_write_hlp
_mpi_write_hlp:                         ## @mpi_write_hlp
	.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
	movl	%esi, %r15d
	leal	-17(%r15), %eax
	cmpl	$-16, %eax
	ja	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mbedtls_mpi_mod_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_mbedtls_mpi_div_int
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mbedtls_mpi_cmp_int
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_mpi_write_hlp
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
LBB0_4:
	movl	-28(%rbp), %eax
	cmpl	$9, %eax
	jg	LBB0_6
## %bb.5:
	addb	$48, %al
	jmp	LBB0_7
LBB0_6:
	addb	$55, %al
LBB0_7:
	movq	(%r14), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r14)
	movb	%al, (%rcx)
                                        ## implicit-def: $eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.no_dead_strip	_mpi_write_hlp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpi_write_hlp
_mpi_write_hlp:                         ; @mpi_write_hlp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	sub	w8, w1, #17
	cmn	w8, #16
	b.hi	LBB0_2
; %bb.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_8
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_mpi_mod_int
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x21
	mov	x1, #0
	mov	x2, x21
	mov	x3, x20
	bl	_mbedtls_mpi_div_int
	bl	_MBEDTLS_MPI_CHK
	mov	x0, x21
	mov	w1, #0
	bl	_mbedtls_mpi_cmp_int
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mpi_write_hlp
	bl	_MBEDTLS_MPI_CHK
LBB0_4:
	ldr	w8, [sp, #12]
	cmp	w8, #9
	b.gt	LBB0_6
; %bb.5:
	add	w8, w8, #48
	b	LBB0_7
LBB0_6:
	add	w8, w8, #55
LBB0_7:
	ldr	x9, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	strb	w8, [x9]
                                        ; implicit-def: $w0
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.no_dead_strip	_mpi_write_hlp
.subsections_via_symbols
