	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_mod_int            ## -- Begin function mbedtls_mpi_mod_int
	.p2align	4, 0x90
_mbedtls_mpi_mod_int:                   ## @mbedtls_mpi_mod_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	js	LBB0_3
## %bb.4:
	movl	%edx, %r8d
	cmpl	$2, %edx
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r8d
	jne	LBB0_8
## %bb.6:
	movl	$0, (%rdi)
	xorl	%r9d, %r9d
	jmp	LBB0_12
LBB0_1:
	movq	_MBEDTLS_ERR_MPI_DIVISION_BY_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	jmp	LBB0_12
LBB0_3:
	movq	_MBEDTLS_ERR_MPI_NEGATIVE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	jmp	LBB0_12
LBB0_7:
	movq	(%rsi), %rax
	movl	(%rax), %eax
	andl	$1, %eax
	movl	%eax, (%rdi)
	xorl	%r9d, %r9d
	jmp	LBB0_12
LBB0_8:
	movq	8(%rsi), %r11
	xorl	%r9d, %r9d
	movl	$0, %edx
	testq	%r11, %r11
	je	LBB0_11
## %bb.9:
	movq	(%rsi), %rbx
	movq	_biH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx,%r11,4), %r10d
	shll	%cl, %edx
	movl	%r10d, %eax
	sarl	%cl, %eax
	orl	%edx, %eax
	shll	%cl, %r10d
	cltd
	idivl	%r8d
	shll	%cl, %edx
	decq	%r11
	sarl	%cl, %r10d
	orl	%edx, %r10d
	movl	%r10d, %eax
	cltd
	idivl	%r8d
	testq	%r11, %r11
	jne	LBB0_10
LBB0_11:
	subl	%edx, %r8d
	testl	%edx, %edx
	cmovel	%edx, %r8d
	cmpq	$0, 16(%rsi)
	cmovnsl	%edx, %r8d
	movl	%r8d, (%rdi)
LBB0_12:
	movl	%r9d, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_DIVISION_BY_ZERO,4,2 ## @MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
	.comm	_MBEDTLS_ERR_MPI_NEGATIVE_VALUE,4,2 ## @MBEDTLS_ERR_MPI_NEGATIVE_VALUE
	.comm	_biH,4,2                        ## @biH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_mpi_mod_int            ; -- Begin function mbedtls_mpi_mod_int
	.p2align	2
_mbedtls_mpi_mod_int:                   ; @mbedtls_mpi_mod_int
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_5
; %bb.1:
	tbnz	w2, #31, LBB0_6
; %bb.2:
	cmp	w2, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w2, #1
	b.ne	LBB0_8
; %bb.4:
	str	wzr, [x0]
	mov	w0, #0
	ret
LBB0_5:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_DIVISION_BY_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_DIVISION_BY_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_MPI_NEGATIVE_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_NEGATIVE_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_7:
	mov	w8, #0
	ldr	x9, [x1]
	ldr	w9, [x9]
	and	w9, w9, #0x1
	b	LBB0_13
LBB0_8:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	w9, #0
	ldr	x11, [x1]
Lloh6:
	adrp	x10, _biH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _biH@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sub	x11, x11, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x8, lsl #2]
	lsl	w9, w9, w10
	asr	w13, w12, w10
	orr	w9, w9, w13
	sdiv	w13, w9, w2
	msub	w9, w13, w2, w9
	lsl	w12, w12, w10
	lsl	w9, w9, w10
	asr	w12, w12, w10
	orr	w9, w9, w12
	sdiv	w12, w9, w2
	msub	w9, w12, w2, w9
	subs	x8, x8, #1
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w9, #0
LBB0_12:
	mov	w8, #0
	ldr	x10, [x1, #16]
	sub	w11, w2, w9
	cmp	w9, #0
	ccmp	x10, #0, #0, ne
	csel	w9, w11, w9, lt
LBB0_13:
	str	w9, [x0]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_DIVISION_BY_ZERO,4,2 ; @MBEDTLS_ERR_MPI_DIVISION_BY_ZERO
	.comm	_MBEDTLS_ERR_MPI_NEGATIVE_VALUE,4,2 ; @MBEDTLS_ERR_MPI_NEGATIVE_VALUE
	.comm	_biH,4,2                        ; @biH
.subsections_via_symbols
