	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_next_sg
_moxart_next_sg:                        ## @moxart_next_sg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rsi
	movq	16(%rdi), %rdx
	addq	$4, %rdx
	movq	%rdx, 16(%rdi)
	leaq	-1(%rsi), %rax
	movq	%rax, (%rdi)
	cmpq	$2, %rsi
	jl	LBB0_4
## %bb.1:
	movl	(%rdx), %esi
	movl	%esi, 8(%rdi)
	movl	12(%rdi), %edx
	subl	(%rcx), %edx
	jle	LBB0_4
## %bb.2:
	cmpl	%esi, %edx
	jge	LBB0_4
## %bb.3:
	movl	%edx, 8(%rdi)
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_moxart_next_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_next_sg
_moxart_next_sg:                        ; @moxart_next_sg
	.cfi_startproc
; %bb.0:
	ldp	x10, x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x8]
	add	x10, x10, #4
	str	x10, [x0, #16]
	ldr	x11, [x0]
	sub	x8, x11, #1
	str	x8, [x0]
	cmp	x11, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	w10, [x10]
	str	w10, [x0, #8]
	ldr	w11, [x0, #12]
	ldr	w9, [x9]
	sub	w9, w11, w9
	cmp	w9, #1
	ccmp	w9, w10, #0, ge
	b.ge	LBB0_3
; %bb.2:
	str	w9, [x0, #8]
LBB0_3:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_moxart_next_sg
.subsections_via_symbols
