	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_lcm                     ## -- Begin function buffer_lcm
	.p2align	4, 0x90
_buffer_lcm:                            ## @buffer_lcm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.3:
	movq	%rdx, %r8
	movq	%rsi, %rdx
	movq	%rdi, %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_7
LBB0_8:
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_11
LBB0_1:
	testq	%rsi, %rsi
	movl	$8192, %eax                     ## imm = 0x2000
	cmovneq	%rsi, %rax
	popq	%rbp
	retq
LBB0_9:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_11:
	movq	%rsi, %rax
	mulq	%rcx
	seto	%cl
	cmpq	%r8, %rax
	ja	LBB0_13
## %bb.12:
	testb	%cl, %cl
	je	LBB0_14
LBB0_13:
	movq	%rdi, %rax
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffer_lcm                     ; -- Begin function buffer_lcm
	.p2align	2
_buffer_lcm:                            ; @buffer_lcm
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x1, LBB0_6
; %bb.2:
	mov	x9, x1
	mov	x8, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	mov	x8, x9
	udiv	x9, x10, x9
	msub	x9, x9, x8, x10
	cbnz	x9, LBB0_3
; %bb.4:
	udiv	x8, x0, x8
	umulh	x9, x1, x8
	cmp	xzr, x9
	cset	w9, ne
	mul	x8, x1, x8
	cmp	x8, x2
	b.hi	LBB0_6
; %bb.5:
	cbz	w9, LBB0_7
LBB0_6:
	mov	x8, x0
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
	mov	w8, #8192
	cmp	x1, #0
	csel	x0, x8, x1, eq
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
