	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcd
_gcd:                                   ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %eax
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	je	LBB0_10
## %bb.2:
	callq	_ABS
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_ABS
	movl	%eax, %edx
	orl	%ebx, %edx
	xorl	%ecx, %ecx
	testb	$1, %dl
	jne	LBB0_5
## %bb.3:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ebx
	sarl	%eax
	incl	%ecx
	movl	%eax, %edx
	orl	%ebx, %edx
	testb	$1, %dl
	je	LBB0_4
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	sarl	%ebx
	testb	$1, %dl
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %esi
	sarl	%eax
	testb	$1, %sil
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	subl	%esi, %eax
	negl	%eax
	sarl	%eax
	movl	%edx, %ebx
	subl	%esi, %ebx
	cmovgel	%esi, %eax
	sarl	%ebx
	cmpl	%esi, %edx
	cmovll	%edx, %ebx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	testl	%ebx, %ebx
	jg	LBB0_6
## %bb.9:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcd
_gcd:                                   ; @gcd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	mov	w0, #1
	cbz	w8, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	w1, LBB0_11
; %bb.2:
	mov	x0, x8
	bl	_ABS
	mov	x19, x0
	mov	x0, x20
	bl	_ABS
	orr	w8, w0, w19
	tbnz	w8, #0, LBB0_6
; %bb.3:
	mov	w8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	asr	w19, w19, #1
	asr	w0, w0, #1
	add	w8, w8, #1
	orr	w9, w0, w19
	tbz	w9, #0, LBB0_4
; %bb.5:
	cmp	w19, #1
	b.ge	LBB0_7
	b	LBB0_10
LBB0_6:
	mov	w8, #0
	cmp	w19, #1
	b.lt	LBB0_10
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x9, x19
	asr	w19, w19, #1
	tbz	w9, #0, LBB0_7
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x10, x0
	asr	w0, w0, #1
	tbz	w10, #0, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w11, w10, w9
	subs	w12, w9, w10
	asr	w12, w12, #1
	asr	w11, w11, #1
	csel	w19, w9, w12, lt
	csel	w0, w11, w10, lt
	cmp	w19, #0
	b.gt	LBB0_7
LBB0_10:
	lsl	w0, w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gcd
.subsections_via_symbols
