	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_fold_gcd                  ## -- Begin function tree_fold_gcd
	.p2align	4, 0x90
_tree_fold_gcd:                         ## @tree_fold_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
	movl	%esi, %ebx
	movl	%edi, %r15d
	callq	_TREE_TYPE
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_TREE_CODE
	movq	_INTEGER_CST@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_gcc_assert
	movl	%ebx, %edi
	callq	_TREE_CODE
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_gcc_assert
	movl	%r15d, %edi
	callq	_integer_zerop
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %r15d
	jmp	LBB0_10
LBB0_2:
	movl	%ebx, %edi
	callq	_integer_zerop
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movl	%r15d, %edi
	callq	_tree_int_cst_sgn
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_MULT_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	movl	$-1, %esi
	callq	_build_int_cst
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_fold_build2
	movl	%eax, %r15d
LBB0_5:
	movl	%ebx, %edi
	callq	_tree_int_cst_sgn
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movq	_MULT_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	movl	$-1, %esi
	callq	_build_int_cst
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fold_build2
	movl	%eax, %ebx
LBB0_7:
	movq	_FLOOR_MOD_EXPR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edx
	movl	%ebx, %r15d
	movl	(%r12), %edi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_fold_build2
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TREE_INT_CST_LOW
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_TREE_INT_CST_HIGH
	testl	%eax, %eax
	jne	LBB0_8
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEGER_CST,8,3                ## @INTEGER_CST
	.comm	_MULT_EXPR,4,2                  ## @MULT_EXPR
	.comm	_FLOOR_MOD_EXPR,4,2             ## @FLOOR_MOD_EXPR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_fold_gcd                  ; -- Begin function tree_fold_gcd
	.p2align	2
_tree_fold_gcd:                         ; @tree_fold_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	x21, x1
	mov	x19, x0
	bl	_TREE_TYPE
	mov	x20, x0
	mov	x0, x19
	bl	_TREE_CODE
Lloh0:
	adrp	x22, _INTEGER_CST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INTEGER_CST@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_gcc_assert
	mov	x0, x21
	bl	_TREE_CODE
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_gcc_assert
	mov	x0, x19
	bl	_integer_zerop
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x21
	b	LBB0_10
LBB0_2:
	mov	x0, x21
	bl	_integer_zerop
	cbnz	x0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_tree_int_cst_sgn
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _MULT_EXPR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MULT_EXPR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x20
	mov	w1, #-1
	bl	_build_int_cst
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_fold_build2
	mov	x19, x0
LBB0_5:
	mov	x0, x21
	bl	_tree_int_cst_sgn
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _MULT_EXPR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MULT_EXPR@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x20
	mov	w1, #-1
	bl	_build_int_cst
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_fold_build2
	mov	x21, x0
LBB0_7:
Lloh8:
	adrp	x22, _FLOOR_MOD_EXPR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FLOOR_MOD_EXPR@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, x19
	mov	x19, x21
	ldr	w0, [x22]
	mov	x1, x20
	mov	x3, x21
	bl	_fold_build2
	mov	x21, x0
	bl	_TREE_INT_CST_LOW
	cbnz	w0, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_TREE_INT_CST_HIGH
	cbnz	w0, LBB0_8
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEGER_CST,8,3                ; @INTEGER_CST
	.comm	_MULT_EXPR,4,2                  ; @MULT_EXPR
	.comm	_FLOOR_MOD_EXPR,4,2             ; @FLOOR_MOD_EXPR
.subsections_via_symbols
