	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_div                     ## -- Begin function mp_int_div
	.p2align	4, 0x90
_mp_int_div:                            ## @mp_int_div
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rdx
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_MP_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_MP_SIGN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_MP_SIGN
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_CMPZ
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_s_ucmp
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	je	LBB0_18
## %bb.3:
	movl	$2, %edi
	callq	_DECLARE_TEMP
	movq	%r13, %rdi
	callq	_s_isp2
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_24
## %bb.4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_6:
	testq	%r15, %r15
	movl	%ebx, %r13d
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_8:
	testq	%r14, %r14
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_s_qdiv
LBB0_10:
	testq	%r15, %r15
	je	LBB0_27
## %bb.11:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_s_qmod
	movq	%r14, %rbx
	movq	%r15, %r12
	jmp	LBB0_33
LBB0_12:
	movq	_MP_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_47
LBB0_13:
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mp_int_copy
	movl	%eax, %r13d
	cmpl	(%r14), %eax
	jne	LBB0_47
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_mp_int_zero
	jmp	LBB0_17
LBB0_18:
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_mp_int_zero
LBB0_20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_17
## %bb.21:
	movq	%rbx, %rdi
	callq	_mp_int_zero
	movq	(%rbx), %rax
	movl	$1, (%rax)
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_17
## %bb.22:
	movq	_MP_NEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_17:
	movl	(%r14), %r13d
	jmp	LBB0_47
LBB0_24:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_28
## %bb.25:
	cmpq	%r14, %r13
	je	LBB0_28
## %bb.26:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	testq	%r15, %r15
	jne	LBB0_29
	jmp	LBB0_31
LBB0_27:
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	testq	%rbx, %rbx
	jne	LBB0_36
	jmp	LBB0_42
LBB0_28:
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_31
LBB0_29:
	cmpq	%r15, %r12
	je	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movq	%r14, %rdi
	movq	%r15, %r12
	jmp	LBB0_32
LBB0_31:
	movl	$1, %edi
	callq	_TEMP
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%r14, %rdi
	movq	%rax, %r12
LBB0_32:
	movl	%ebx, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rdi, %rbx
	movq	%r12, %rsi
	callq	_s_udiv_knuth
	movl	%eax, %edi
	callq	_REQUIRE
	testq	%r12, %r12
	je	LBB0_41
LBB0_33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_CMPZ
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movq	_MP_ZPOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
LBB0_35:
	testq	%rbx, %rbx
	je	LBB0_42
LBB0_36:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_38
## %bb.37:
	movq	_MP_ZPOS@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_38:
	movq	_MP_NEG@GOTPCREL(%rip), %rax
LBB0_39:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_CMPZ
	testq	%rax, %rax
	jne	LBB0_42
## %bb.40:
	movq	_MP_ZPOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_42
LBB0_41:
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	jne	LBB0_36
LBB0_42:
	testq	%r14, %r14
	je	LBB0_44
## %bb.43:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_44:
	testq	%r15, %r15
	je	LBB0_46
## %bb.45:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
LBB0_46:
	xorl	%eax, %eax
	callq	_CLEANUP_TEMP
LBB0_47:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_OK,4,2                      ## @MP_OK
	.comm	_MP_UNDEF,4,2                   ## @MP_UNDEF
	.comm	_MP_NEG,8,3                     ## @MP_NEG
	.comm	_MP_ZPOS,8,3                    ## @MP_ZPOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_div                     ; -- Begin function mp_int_div
	.p2align	2
_mp_int_div:                            ; @mp_int_div
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x26, x1
	mov	x25, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	ccmp	x2, x3, #4, ne
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x24, _MP_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MP_OK@GOTPAGEOFF]
	ldr	w20, [x24]
	mov	x0, x25
	bl	_MP_SIGN
	mov	x22, x0
	mov	x0, x26
	bl	_MP_SIGN
	mov	x23, x0
	mov	x0, x26
	bl	_CMPZ
	cbz	x0, LBB0_12
; %bb.1:
	mov	x0, x25
	mov	x1, x26
	bl	_s_ucmp
	tbnz	w0, #31, LBB0_13
; %bb.2:
	cbz	w0, LBB0_17
; %bb.3:
	mov	w0, #2
	bl	_DECLARE_TEMP
	mov	x0, x26
	bl	_s_isp2
	tbnz	w0, #31, LBB0_23
; %bb.4:
	mov	x24, x0
	cbz	x19, LBB0_6
; %bb.5:
	mov	x0, x25
	mov	x1, x19
	bl	_mp_int_copy
	bl	_REQUIRE
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x25
	mov	x1, x21
	bl	_mp_int_copy
	bl	_REQUIRE
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x24
	bl	_s_qdiv
LBB0_10:
	cbz	x21, LBB0_26
; %bb.11:
	mov	x0, x21
	mov	x1, x24
	bl	_s_qmod
	mov	x24, x19
	mov	x25, x21
	b	LBB0_32
LBB0_12:
Lloh2:
	adrp	x8, _MP_UNDEF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MP_UNDEF@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_42
LBB0_13:
	cbz	x21, LBB0_15
; %bb.14:
	mov	x0, x25
	mov	x1, x21
	bl	_mp_int_copy
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_42
LBB0_15:
	cbz	x19, LBB0_22
; %bb.16:
	mov	x0, x19
	bl	_mp_int_zero
	b	LBB0_22
LBB0_17:
	cbz	x21, LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_mp_int_zero
LBB0_19:
	cbz	x19, LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_mp_int_zero
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	cmp	x22, x23
	b.eq	LBB0_22
; %bb.21:
Lloh5:
	adrp	x8, _MP_NEG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MP_NEG@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_22:
	ldr	w20, [x24]
	b	LBB0_42
LBB0_23:
	cbz	x19, LBB0_27
; %bb.24:
	cmp	x26, x19
	b.eq	LBB0_27
; %bb.25:
	mov	x0, x25
	mov	x1, x19
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	x24, x19
	cbnz	x21, LBB0_28
	b	LBB0_30
LBB0_26:
	mov	x25, #0
	mov	x24, x19
	b	LBB0_34
LBB0_27:
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x25
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	w0, #0
	bl	_TEMP
	mov	x24, x0
	cbz	x21, LBB0_30
LBB0_28:
	cmp	x25, x21
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x26
	mov	x1, x21
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	x25, x21
	b	LBB0_31
LBB0_30:
	mov	w0, #1
	bl	_TEMP
	mov	x1, x0
	mov	x0, x26
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x25, x0
LBB0_31:
	mov	x0, x24
	mov	x1, x25
	bl	_s_udiv_knuth
	bl	_REQUIRE
	cbz	x25, LBB0_34
LBB0_32:
	str	x22, [x25, #8]
	mov	x0, x25
	bl	_CMPZ
	cbnz	x0, LBB0_34
; %bb.33:
Lloh8:
	adrp	x8, _MP_ZPOS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MP_ZPOS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x25, #8]
LBB0_34:
	cbz	x24, LBB0_37
; %bb.35:
Lloh11:
	adrp	x26, _MP_ZPOS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MP_ZPOS@GOTPAGEOFF]
Lloh13:
	adrp	x8, _MP_NEG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MP_NEG@GOTPAGEOFF]
	cmp	x22, x23
	csel	x8, x26, x8, eq
	ldr	x8, [x8]
	str	x8, [x24, #8]
	mov	x0, x24
	bl	_CMPZ
	cbnz	x0, LBB0_37
; %bb.36:
	ldr	x8, [x26]
	str	x8, [x24, #8]
LBB0_37:
	cbz	x19, LBB0_39
; %bb.38:
	mov	x0, x24
	mov	x1, x19
	bl	_mp_int_copy
	bl	_REQUIRE
LBB0_39:
	cbz	x21, LBB0_41
; %bb.40:
	mov	x0, x25
	mov	x1, x21
	bl	_mp_int_copy
	bl	_REQUIRE
LBB0_41:
	bl	_CLEANUP_TEMP
LBB0_42:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_OK,4,2                      ; @MP_OK
	.comm	_MP_UNDEF,4,2                   ; @MP_UNDEF
	.comm	_MP_NEG,8,3                     ; @MP_NEG
	.comm	_MP_ZPOS,8,3                    ; @MP_ZPOS
.subsections_via_symbols
