	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mda_next_tuple                 ## -- Begin function mda_next_tuple
	.p2align	4, 0x90
_mda_next_tuple:                        ## @mda_next_tuple
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r8
	leal	-1(%rdi), %r9d
	movl	(%rsi,%r9,4), %eax
	incl	%eax
	cltd
	idivl	(%r8,%r9,4)
	movl	%edx, (%rsi,%r9,4)
	testl	%r9d, %r9d
	je	LBB0_6
## %bb.3:
	movl	%edi, %eax
	leaq	(%rsi,%rax,4), %r10
	addq	$-4, %r10
	addl	$-2, %edi
	leaq	(%r8,%rdi,4), %r8
	leaq	(%rsi,%rdi,4), %rcx
	movl	%r9d, %r11d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r10,%rdi,4)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx,%rdi,4), %eax
	incl	%eax
	cltd
	idivl	(%r8,%rdi,4)
	movl	%edx, (%rcx,%rdi,4)
	decq	%rdi
	movl	%r11d, %eax
	addl	%edi, %eax
	jne	LBB0_4
LBB0_6:
	xorl	%r9d, %r9d
	cmpl	$1, (%rsi)
	sbbl	%r9d, %r9d
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r9d
	jmp	LBB0_8
LBB0_7:
	addl	%edi, %r9d
LBB0_8:
	movl	%r9d, %eax
	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	_mda_next_tuple                 ; -- Begin function mda_next_tuple
	.p2align	2
_mda_next_tuple:                        ; @mda_next_tuple
	.cfi_startproc
; %bb.0:
	subs	w8, w0, #1
	b.lt	LBB0_6
; %bb.1:
	lsl	x9, x8, #2
	ldr	w10, [x1, x9]
	add	w10, w10, #1
	ldr	w11, [x2, x9]
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
	str	w10, [x1, x9]
	b.eq	LBB0_5
; %bb.2:
	mov	x9, #0
	add	x10, x1, w0, uxtw #2
	sub	x10, x10, #4
	sub	w11, w0, #2
	lsl	x12, x11, #2
	add	x11, x2, x12
	add	x12, x1, x12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x9, lsl #2]
	cbnz	w13, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x13, x9, #2
	ldr	w14, [x12, x13]
	add	w14, w14, #1
	ldr	w15, [x11, x13]
	sdiv	w16, w14, w15
	msub	w14, w16, w15, w14
	str	w14, [x12, x13]
	sub	x9, x9, #1
	cmn	w8, w9
	b.ne	LBB0_3
LBB0_5:
	ldr	w8, [x1]
	cmp	w8, #0
	csetm	w0, eq
	ret
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	add	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
