	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frac_add
_frac_add:                              ## @frac_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	(%rdi), %esi
	movl	4(%rdi), %ecx
	js	LBB0_1
## %bb.3:
	cmpl	%ecx, %esi
	jl	LBB0_6
## %bb.4:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	cltq
	addq	%rax, 8(%rdi)
	jmp	LBB0_5
LBB0_1:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	cltq
	addq	8(%rdi), %rax
	movq	%rax, 8(%rdi)
	xorl	%esi, %esi
	testl	%edx, %edx
	jns	LBB0_6
## %bb.2:
	addl	%ecx, %edx
	decq	%rax
	movq	%rax, 8(%rdi)
LBB0_5:
	movl	%edx, %esi
LBB0_6:
	movl	%esi, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_frac_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frac_add
_frac_add:                              ; @frac_add
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	adds	w8, w8, w1
	b.mi	LBB0_4
; %bb.1:
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	sdiv	w10, w8, w9
	ldr	x11, [x0, #8]
	add	x11, x11, w10, sxtw
	str	x11, [x0, #8]
	msub	w8, w10, w9, w8
LBB0_3:
	str	w8, [x0]
	ret
LBB0_4:
	sdiv	w11, w8, w9
	ldr	x10, [x0, #8]
	add	x10, x10, w11, sxtw
	str	x10, [x0, #8]
	msub	w8, w11, w9, w8
	tbnz	w8, #31, LBB0_6
; %bb.5:
	str	wzr, [x0]
	ret
LBB0_6:
	add	w8, w8, w9
	sub	x9, x10, #1
	str	x9, [x0, #8]
	str	w8, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_frac_add
.subsections_via_symbols
