	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpihelp_mod_1                  ## -- Begin function mpihelp_mod_1
	.p2align	4, 0x90
_mpihelp_mod_1:                         ## @mpihelp_mod_1
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_UDIV_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UMUL_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx), %edx
	addl	$6, %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	jle	LBB0_9
## %bb.3:
	imull	%r15d, %ecx
	cmpl	%eax, %ecx
	jle	LBB0_9
## %bb.4:
	movl	%r12d, %esi
	callq	_count_leading_zeros
	testl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	je	LBB0_6
## %bb.5:
	movl	%r12d, %edx
	negl	%edx
	movl	$-1, %edi
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_udiv_qrnnd
LBB0_6:
	leal	-1(%r15), %eax
	movslq	%r15d, %rcx
	movl	-4(%r14,%rcx,4), %ecx
	addl	$-2, %r15d
	xorl	%r13d, %r13d
	cmpl	%r12d, %ecx
	cmovgel	%eax, %r15d
	cmovll	%ecx, %r13d
	testl	%r15d, %r15d
	js	LBB0_14
## %bb.7:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %ecx
	movl	%r13d, %esi
	movl	%r13d, %edx
	movl	%r12d, %r8d
	movl	$-1, %r9d
	callq	_UDIV_QRNND_PREINV
	addq	$-1, %rbx
	jb	LBB0_8
	jmp	LBB0_14
LBB0_9:
	movq	_UDIV_NEEDS_NORMALIZATION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movl	%r12d, %esi
	callq	_count_leading_zeros
LBB0_11:
	leal	-1(%r15), %eax
	movslq	%r15d, %rcx
	movl	-4(%r14,%rcx,4), %ecx
	addl	$-2, %r15d
	xorl	%r13d, %r13d
	cmpl	%r12d, %ecx
	cmovgel	%eax, %r15d
	cmovll	%ecx, %r13d
	testl	%r15d, %r15d
	js	LBB0_14
## %bb.12:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %ecx
	movl	%r13d, %esi
	movl	%r13d, %edx
	movl	%r12d, %r8d
	callq	_udiv_qrnnd
	addq	$-1, %rbx
	jb	LBB0_13
	jmp	LBB0_14
LBB0_1:
	xorl	%r13d, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDIV_TIME,4,2                  ## @UDIV_TIME
	.comm	_UMUL_TIME,4,2                  ## @UMUL_TIME
	.comm	_BITS_PER_MPI_LIMB,4,2          ## @BITS_PER_MPI_LIMB
	.comm	_UDIV_NEEDS_NORMALIZATION,8,3   ## @UDIV_NEEDS_NORMALIZATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpihelp_mod_1                  ; -- Begin function mpihelp_mod_1
	.p2align	2
_mpihelp_mod_1:                         ; @mpihelp_mod_1
	.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	x21, x1
	cbz	w1, LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _UDIV_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UDIV_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _UMUL_TIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UMUL_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #1
	add	w9, w9, #6
	subs	w9, w8, w9
	b.le	LBB0_8
; %bb.2:
	mul	w9, w9, w21
	cmp	w9, w8
	b.le	LBB0_8
; %bb.3:
	mov	x1, x19
	bl	_count_leading_zeros
	tst	w19, #0x7fffffff
	b.eq	LBB0_5
; %bb.4:
	neg	w2, w19
	mov	w0, #-1
	mov	w3, #0
	mov	x4, x19
	bl	_udiv_qrnnd
LBB0_5:
	sxtw	x8, w21
	sub	x8, x8, #1
	ldr	w9, [x20, x8, lsl #2]
	sub	w10, w21, #2
	cmp	w9, w19
	csel	w8, w10, w8, lt
	csel	w21, w9, wzr, lt
	tbnz	w8, #31, LBB0_13
; %bb.6:
	lsl	x22, x8, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20, x22]
	mov	x1, x21
	mov	x2, x21
	mov	x4, x19
	mov	w5, #-1
	bl	_UDIV_QRNND_PREINV
	sub	x22, x22, #4
	cmn	x22, #4
	b.ne	LBB0_7
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _UDIV_NEEDS_NORMALIZATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UDIV_NEEDS_NORMALIZATION@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x1, x19
	bl	_count_leading_zeros
LBB0_10:
	mov	x8, x21
	sxtw	x8, w8
	sub	x8, x8, #1
	ldr	w9, [x20, x8, lsl #2]
	sub	w10, w21, #2
	cmp	w9, w19
	csel	w8, w10, w8, lt
	csel	w21, w9, wzr, lt
	tbnz	w8, #31, LBB0_13
; %bb.11:
	lsl	x22, x8, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20, x22]
	mov	x1, x21
	mov	x2, x21
	mov	x4, x19
	bl	_udiv_qrnnd
	sub	x22, x22, #4
	cmn	x22, #4
	b.ne	LBB0_12
LBB0_13:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UDIV_TIME,4,2                  ; @UDIV_TIME
	.comm	_UMUL_TIME,4,2                  ; @UMUL_TIME
	.comm	_BITS_PER_MPI_LIMB,4,2          ; @BITS_PER_MPI_LIMB
	.comm	_UDIV_NEEDS_NORMALIZATION,8,3   ; @UDIV_NEEDS_NORMALIZATION
.subsections_via_symbols
