	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_gcd                     ## -- Begin function mp_int_gcd
	.p2align	4, 0x90
_mp_int_gcd:                            ## @mp_int_gcd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	testq	%rdx, %rdx
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r12, %rdi
	callq	_CMPZ
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_CMPZ
	movl	%ebx, %ecx
	orl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_MP_UNDEF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	$3, %edi
	callq	_DECLARE_TEMP
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$1, %edi
	callq	_TEMP
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_MP_ZPOS@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rbx, (%rax)
	movq	(%r14), %rbx
	movl	$1, %edi
	callq	_TEMP
	movq	%rbx, (%rax)
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_s_dp2k
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_s_dp2k
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MIN
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_s_qdiv
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_s_qdiv
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_mp_int_is_odd
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mp_int_neg
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_6:
	movq	%r12, %rdi
LBB0_4:
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp_int_abs                     ## TAILCALL
LBB0_9:
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_TEMP
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
LBB0_10:
	movl	%eax, %edi
	callq	_REQUIRE
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_neg
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %edi
	callq	_REQUIRE
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %r12
	movl	$1, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_mp_int_sub
	movl	%eax, %edi
	callq	_REQUIRE
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CMPZ
	testl	%eax, %eax
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rbx
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_s_dp2k
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_s_qdiv
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %rdi
	callq	_CMPZ
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_TEMP
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%edi, %edi
	callq	_TEMP
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mp_int_copy
	jmp	LBB0_14
LBB0_15:
	xorl	%edi, %edi
	callq	_TEMP
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_mp_int_abs
	movl	%eax, %edi
	callq	_REQUIRE
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_s_qmul
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_MP_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REQUIRE
LBB0_17:
	xorl	%eax, %eax
	callq	_CLEANUP_TEMP
	movq	_MP_OK@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_UNDEF,4,2                   ## @MP_UNDEF
	.comm	_MP_ZPOS,8,3                    ## @MP_ZPOS
	.comm	_MP_MEMORY,4,2                  ## @MP_MEMORY
	.comm	_MP_OK,4,2                      ## @MP_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mp_int_gcd                     ; -- Begin function mp_int_gcd
	.p2align	2
_mp_int_gcd:                            ; @mp_int_gcd
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	ccmp	x2, #0, #4, ne
	cset	w0, ne
	bl	_assert
	mov	x0, x21
	bl	_CMPZ
	mov	x22, x0
	mov	x0, x20
	bl	_CMPZ
	orr	w8, w22, w0
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MP_UNDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP_UNDEF@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	cbz	w22, LBB0_6
; %bb.3:
	cbz	w0, LBB0_7
; %bb.4:
	mov	w0, #3
	bl	_DECLARE_TEMP
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_copy
	bl	_REQUIRE
	mov	w0, #1
	bl	_TEMP
	mov	x1, x0
	mov	x0, x20
	bl	_mp_int_copy
	bl	_REQUIRE
Lloh2:
	adrp	x20, _MP_ZPOS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MP_ZPOS@GOTPAGEOFF]
	ldr	x21, [x20]
	mov	w0, #0
	bl	_TEMP
	str	x21, [x0]
	ldr	x20, [x20]
	mov	w0, #1
	bl	_TEMP
	str	x20, [x0]
	mov	w0, #0
	bl	_TEMP
	bl	_s_dp2k
	mov	x20, x0
	mov	w0, #1
	bl	_TEMP
	bl	_s_dp2k
	mov	x1, x0
	mov	x0, x20
	bl	_MIN
	mov	x20, x0
	mov	w0, #0
	bl	_TEMP
	mov	x1, x20
	bl	_s_qdiv
	mov	w0, #1
	bl	_TEMP
	mov	x1, x20
	bl	_s_qdiv
	mov	w0, #0
	bl	_TEMP
	bl	_mp_int_is_odd
	cbz	x0, LBB0_9
; %bb.5:
	mov	w0, #1
	bl	_TEMP
	mov	x21, x0
	mov	w0, #2
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_neg
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	b	LBB0_8
LBB0_7:
	mov	x0, x21
LBB0_8:
	mov	x1, x19
	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
	b	_mp_int_abs
LBB0_9:
	bl	_TEMP
	mov	x21, x0
	mov	w0, #2
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_copy
LBB0_10:
	bl	_REQUIRE
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_neg
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_REQUIRE
	mov	w0, #0
	bl	_TEMP
	mov	x21, x0
	mov	w0, #1
	bl	_TEMP
	mov	x22, x0
	mov	w0, #2
	bl	_TEMP
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_mp_int_sub
	bl	_REQUIRE
	mov	w0, #2
	bl	_TEMP
	bl	_CMPZ
	cbz	w0, LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #2
	bl	_TEMP
	mov	x21, x0
	mov	w0, #2
	bl	_TEMP
	bl	_s_dp2k
	mov	x1, x0
	mov	x0, x21
	bl	_s_qdiv
	mov	w0, #2
	bl	_TEMP
	bl	_CMPZ
	mov	x22, x0
	mov	w0, #2
	bl	_TEMP
	mov	x21, x0
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #0
	bl	_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_mp_int_copy
	b	LBB0_12
LBB0_15:
	bl	_TEMP
	mov	x1, x19
	bl	_mp_int_abs
	bl	_REQUIRE
	mov	x0, x19
	mov	x1, x20
	bl	_s_qmul
	cbnz	w0, LBB0_17
; %bb.16:
Lloh4:
	adrp	x8, _MP_MEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MP_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_REQUIRE
LBB0_17:
	bl	_CLEANUP_TEMP
Lloh7:
	adrp	x8, _MP_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_UNDEF,4,2                   ; @MP_UNDEF
	.comm	_MP_ZPOS,8,3                    ; @MP_ZPOS
	.comm	_MP_MEMORY,4,2                  ; @MP_MEMORY
	.comm	_MP_OK,4,2                      ; @MP_OK
.subsections_via_symbols
