	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpihelp_divmod_1               ## -- Begin function mpihelp_divmod_1
	.p2align	4, 0x90
_mpihelp_divmod_1:                      ## @mpihelp_divmod_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	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	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_12
## %bb.3:
	imull	%ebx, %ecx
	cmpl	%eax, %ecx
	jle	LBB0_12
## %bb.4:
	movl	%r13d, %esi
	callq	_count_leading_zeros
	testl	$2147483647, %r13d              ## imm = 0x7FFFFFFF
	je	LBB0_6
## %bb.5:
	movl	%r13d, %edx
	negl	%edx
	movl	$-1, %edi
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_udiv_qrnnd
LBB0_6:
	movslq	%ebx, %rax
	movl	-4(%r14,%rax,4), %r12d
	cmpl	%r13d, %r12d
	jge	LBB0_7
## %bb.8:
	decq	%rax
	addl	$-2, %ebx
	movl	$0, (%r15,%rax,4)
	testl	%ebx, %ebx
	jns	LBB0_10
	jmp	LBB0_20
LBB0_12:
	movq	_UDIV_NEEDS_NORMALIZATION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movl	%r13d, %esi
	callq	_count_leading_zeros
LBB0_14:
	movslq	%ebx, %rax
	movl	-4(%r14,%rax,4), %r12d
	cmpl	%r13d, %r12d
	jge	LBB0_15
## %bb.16:
	decq	%rax
	addl	$-2, %ebx
	movl	$0, (%r15,%rax,4)
	testl	%ebx, %ebx
	jns	LBB0_18
	jmp	LBB0_20
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_15:
	decl	%ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	js	LBB0_20
LBB0_18:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %ecx
	movl	(%r15,%rbx,4), %edi
	movl	%r12d, %esi
	movl	%r12d, %edx
	movl	%r13d, %r8d
	callq	_udiv_qrnnd
	addq	$-1, %rbx
	jb	LBB0_19
	jmp	LBB0_20
LBB0_7:
	decl	%ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	js	LBB0_20
LBB0_10:
	movl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %ecx
	movl	(%r15,%rbx,4), %edi
	movl	%r12d, %esi
	movl	%r12d, %edx
	movl	%r13d, %r8d
	movl	$-1, %r9d
	callq	_UDIV_QRNND_PREINV
	addq	$-1, %rbx
	jb	LBB0_11
LBB0_20:
	movl	%r12d, %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_divmod_1               ; -- Begin function mpihelp_divmod_1
	.p2align	2
_mpihelp_divmod_1:                      ; @mpihelp_divmod_1
	.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
	cbz	w2, LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, 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_7
; %bb.2:
	mul	w9, w9, w23
	cmp	w9, w8
	b.le	LBB0_7
; %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, w23
	sub	x8, x8, #1
	ldr	w22, [x20, x8, lsl #2]
	cmp	w22, w19
	b.ge	LBB0_15
; %bb.6:
	str	wzr, [x21, x8, lsl #2]
	sub	w8, w23, #2
                                        ; kill: def $w8 killed $w8 def $x8
	tbz	w8, #31, LBB0_16
	b	LBB0_18
LBB0_7:
Lloh6:
	adrp	x8, _UDIV_NEEDS_NORMALIZATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UDIV_NEEDS_NORMALIZATION@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x1, x19
	bl	_count_leading_zeros
LBB0_9:
	mov	x8, x23
	sxtw	x8, w8
	sub	x8, x8, #1
	ldr	w22, [x20, x8, lsl #2]
	cmp	w22, w19
	b.ge	LBB0_12
; %bb.10:
	str	wzr, [x21, x8, lsl #2]
	sub	w8, w23, #2
                                        ; kill: def $w8 killed $w8 def $x8
	tbz	w8, #31, LBB0_13
	b	LBB0_18
LBB0_11:
	mov	w22, #0
	b	LBB0_18
LBB0_12:
	mov	w22, #0
	tbnz	w8, #31, LBB0_18
LBB0_13:
	mov	w8, w8
	lsl	x23, x8, #2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20, x23]
	ldr	w0, [x21, x23]
	mov	x1, x22
	mov	x2, x22
	mov	x4, x19
	bl	_udiv_qrnnd
	sub	x23, x23, #4
	cmn	x23, #4
	b.ne	LBB0_14
	b	LBB0_18
LBB0_15:
	mov	w22, #0
	tbnz	w8, #31, LBB0_18
LBB0_16:
	mov	w8, w8
	lsl	x23, x8, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x20, x23]
	ldr	w0, [x21, x23]
	mov	x1, x22
	mov	x2, x22
	mov	x4, x19
	mov	w5, #-1
	bl	_UDIV_QRNND_PREINV
	sub	x23, x23, #4
	cmn	x23, #4
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x22
	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
	.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
