	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_udiv_knuth
_s_udiv_knuth:                          ## @s_udiv_knuth
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_MP_ZPOS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 16(%rdi)
	movq	%rax, 16(%rsi)
	movq	%rsi, %rdi
	callq	_MP_USED
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s_ddiv
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mp_int_set_value
	jmp	LBB0_20
LBB0_2:
	movq	%r13, %rdi
	callq	_MP_USED
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_MP_USED
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$2, %r12d
	setge	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_s_norm
	testl	%eax, %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%r15, %r14
	movq	%r12, %r15
	movq	%rbx, %rdi
	callq	_MP_USED
	leal	1(%r14), %r12d
	movq	_MP_ZPOS@GOTPCREL(%rip), %r14
	cmpl	%r12d, %eax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rcx
	movq	%r12, %r15
	leal	1(%rcx), %r12d
LBB0_5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_s_pad
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rax
	movslq	-64(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	$0, (%rax,%rcx,4)
	movl	%r12d, 8(%rbx)
LBB0_8:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	incl	%r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_s_pad
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%ecx, %r12d
	movq	(%r13), %rax
	movslq	%ecx, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	$0, (%rax,%rcx,4)
	movl	$2, %edi
	callq	_DECLARE_TEMP
	xorl	%edi, %edi
	callq	_TEMP
	leal	1(%r12), %esi
	movq	%rax, %rdi
	movl	%esi, -92(%rbp)                 ## 4-byte Spill
	callq	_GROW
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_GROW
	movl	%eax, %edi
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_MP_DIGITS
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	movq	%r12, %r15
	movslq	%r12d, %r12
	leaq	(%rax,%r12,4), %rbx
	movq	%rbx, -88(%rbp)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -80(%rbp)
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_MP_ALLOC
	movl	%eax, -76(%rbp)
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %r14
	movl	$1, %edi
	callq	_TEMP
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_ZERO
	testl	%r12d, %r12d
	js	LBB0_17
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cltq
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r15d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	movq	_MP_DIGIT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	shrl	%ecx
	shll	%cl, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	orl	(%rbx,%rsi,4), %eax
	movq	(%r13), %rcx
	cltd
	idivl	(%rcx,%rsi,4)
	movq	_MP_DIGIT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	%r13, %rdi
	callq	_MP_DIGITS
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_s_dbmul
	movl	$1, %edi
	callq	_TEMP
	movl	%r12d, 8(%rax)
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CLAMP
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_CLAMP
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_s_ucmp
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	-1(%r15), %r14d
	movq	%r13, %rdi
	callq	_MP_DIGITS
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rbx
	movl	%r14d, %esi
	movl	%r12d, %ecx
	callq	_s_dbmul
	movl	$1, %edi
	callq	_TEMP
	movl	%r12d, 8(%rax)
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CLAMP
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_s_ucmp
	testq	%rax, %rax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setge	%dil
	callq	_assert
	addl	$-2, %r15d
	movq	%r13, %rdi
	callq	_MP_DIGITS
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rbx
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_s_dbmul
	movl	$1, %edi
	callq	_TEMP
	movl	%r12d, 8(%rax)
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CLAMP
	movl	%r15d, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_s_ucmp
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_assert
	movl	%r14d, %r15d
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, -80(%rbp)
	movq	-88(%rbp), %r14
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %rbx
	movq	-88(%rbp), %r12
	movl	-80(%rbp), %r13d
	movl	$1, %edi
	callq	_TEMP
	movl	8(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_s_usub
	xorl	%edi, %edi
	callq	_TEMP
	movq	(%rax), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, (%rax,%r14,4)
	addq	$-4, -88(%rbp)
	movl	$1, %edi
	callq	_TEMP
	movq	(%rax), %rbx
	movl	$1, %edi
	callq	_TEMP
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	_ZERO
	testl	%r14d, %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	decq	%r14
	movq	-88(%rbp), %rbx
	jmp	LBB0_11
LBB0_6:
	movq	_MP_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	xorl	%edi, %edi
	callq	_TEMP
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CLAMP
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_CLAMP
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_s_qdiv
LBB0_19:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mp_int_copy
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_mp_int_copy
	xorl	%eax, %eax
	callq	_CLEANUP_TEMP
LBB0_20:
	movq	_MP_OK@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_ZPOS,8,3                    ## @MP_ZPOS
	.comm	_MP_OK,4,2                      ## @MP_OK
	.comm	_MP_MEMORY,4,2                  ## @MP_MEMORY
	.comm	_MP_DIGIT_BIT,4,2               ## @MP_DIGIT_BIT
	.comm	_MP_DIGIT_MAX,4,2               ## @MP_DIGIT_MAX
	.no_dead_strip	_s_udiv_knuth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_udiv_knuth
_s_udiv_knuth:                          ; @s_udiv_knuth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x19, _MP_ZPOS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MP_ZPOS@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x8, [x0, #16]
	str	x8, [x1, #16]
	mov	x0, x1
	bl	_MP_USED
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_s_ddiv
	mov	x1, x0
	mov	x0, x20
	bl	_mp_int_set_value
	b	LBB0_21
LBB0_2:
	mov	x0, x20
	bl	_MP_USED
	mov	x24, x0
	mov	x0, x21
	bl	_MP_USED
	mov	x23, x0
	cmp	w24, #1
	cset	w0, gt
	bl	_assert
	mov	x0, x21
	mov	x1, x20
	bl	_s_norm
	mov	x25, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_MP_USED
	add	w22, w23, #1
	cmp	w0, w22
	b.ne	LBB0_5
	b	LBB0_7
LBB0_4:
	add	w22, w23, #1
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	bl	_s_pad
	cbz	w0, LBB0_17
; %bb.6:
	ldr	x8, [x21]
	str	wzr, [x8, w23, sxtw #2]
	str	w22, [x21, #8]
LBB0_7:
	add	w22, w24, #1
	mov	x0, x20
	mov	x1, x22
	bl	_s_pad
	cbz	w0, LBB0_17
; %bb.8:
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	sub	w23, w23, w24
	ldr	x8, [x20]
	str	wzr, [x8, w24, sxtw #2]
	mov	w0, #2
	bl	_DECLARE_TEMP
	mov	w0, #0
	bl	_TEMP
	add	w1, w23, #1
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	bl	_GROW
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x1, x22
	bl	_GROW
	bl	_REQUIRE
	mov	x0, x21
	bl	_MP_DIGITS
	add	x26, x0, w23, sxtw #2
	stp	x21, x26, [sp, #16]             ; 8-byte Folded Spill
	str	w22, [sp, #32]
	ldr	x8, [x19]
	str	x8, [sp, #40]
	mov	x0, x21
	bl	_MP_ALLOC
	str	w0, [sp, #36]
	mov	w0, #1
	bl	_TEMP
	ldr	x25, [x0]
	mov	w0, #1
	bl	_TEMP
	ldr	w1, [x0, #12]
	mov	x0, x25
	bl	_ZERO
	tbnz	w23, #31, LBB0_18
; %bb.9:
	sxtw	x21, w24
	sub	x8, x21, #1
	lsl	x19, x8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26, x21, lsl #2]
Lloh2:
	adrp	x9, _MP_DIGIT_BIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MP_DIGIT_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	lsl	w8, w8, w9
	lsl	w8, w8, w9
	ldr	w9, [x26, x19]
	orr	w8, w8, w9
	ldr	x9, [x20]
	ldr	w9, [x9, x19]
	sdiv	w8, w8, w9
Lloh5:
	adrp	x9, _MP_DIGIT_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MP_DIGIT_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w24, w8, w9, lt
	mov	x0, x20
	bl	_MP_DIGITS
	mov	x25, x0
	mov	w0, #1
	bl	_TEMP
	ldr	x2, [x0]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	bl	_s_dbmul
	mov	w0, #1
	bl	_TEMP
	str	w22, [x0, #8]
	mov	w0, #1
	bl	_TEMP
	bl	_CLAMP
	add	x0, sp, #24
	bl	_CLAMP
	mov	w0, #1
	bl	_TEMP
	add	x1, sp, #24
	bl	_s_ucmp
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w25, w24, #1
	mov	x0, x20
	bl	_MP_DIGITS
	mov	x26, x0
	mov	w0, #1
	bl	_TEMP
	ldr	x2, [x0]
	mov	x0, x26
	mov	x1, x25
	mov	x3, x22
	bl	_s_dbmul
	mov	w0, #1
	bl	_TEMP
	str	w22, [x0, #8]
	mov	w0, #1
	bl	_TEMP
	bl	_CLAMP
	mov	w0, #1
	bl	_TEMP
	add	x1, sp, #24
	bl	_s_ucmp
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, #1
	cset	w0, gt
	bl	_assert
	sub	w24, w24, #2
	mov	x0, x20
	bl	_MP_DIGITS
	mov	x25, x0
	mov	w0, #1
	bl	_TEMP
	ldr	x2, [x0]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	bl	_s_dbmul
	mov	w0, #1
	bl	_TEMP
	str	w22, [x0, #8]
	mov	w0, #1
	bl	_TEMP
	bl	_CLAMP
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, x25
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	bl	_TEMP
	add	x1, sp, #24
	bl	_s_ucmp
	cmp	x0, #1
	cset	w0, lt
	bl	_assert
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	str	w22, [sp, #32]
	ldr	x25, [sp, #24]
	mov	w0, #1
	bl	_TEMP
	ldr	x26, [x0]
	ldr	x27, [sp, #24]
	ldr	w28, [sp, #32]
	mov	w0, #1
	bl	_TEMP
	ldr	w4, [x0, #8]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	bl	_s_usub
	mov	w0, #0
	bl	_TEMP
	ldr	x8, [x0]
	str	w24, [x8, x23, lsl #2]
	ldr	x8, [sp, #24]
	sub	x8, x8, #4
	str	x8, [sp, #24]
	mov	w0, #1
	bl	_TEMP
	ldr	x24, [x0]
	mov	w0, #1
	bl	_TEMP
	ldr	w1, [x0, #12]
	mov	x0, x24
	bl	_ZERO
	cmp	w23, #1
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x23, x23, #1
	ldr	x26, [sp, #24]
	b	LBB0_10
LBB0_17:
Lloh8:
	adrp	x8, _MP_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MP_MEMORY@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	mov	w0, #0
	bl	_TEMP
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [x0, #8]
	mov	w0, #0
	bl	_TEMP
	bl	_CLAMP
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_CLAMP
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w1, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_s_qdiv
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_mp_int_copy
	mov	w0, #0
	bl	_TEMP
	mov	x1, x19
	bl	_mp_int_copy
	bl	_CLEANUP_TEMP
LBB0_21:
Lloh10:
	adrp	x8, _MP_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_ZPOS,8,3                    ; @MP_ZPOS
	.comm	_MP_OK,4,2                      ; @MP_OK
	.comm	_MP_MEMORY,4,2                  ; @MP_MEMORY
	.comm	_MP_DIGIT_BIT,4,2               ; @MP_DIGIT_BIT
	.comm	_MP_DIGIT_MAX,4,2               ; @MP_DIGIT_MAX
	.no_dead_strip	_s_udiv_knuth
.subsections_via_symbols
