	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function good_xy_ring
_good_xy_ring:                          ## @good_xy_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r8
	movl	(%rdi), %r9d
	movslq	%ecx, %r10
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.8:
	movslq	%edx, %rdx
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r8,%rcx,8), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%r9, %rcx
	jae	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_2
LBB0_1:
	movl	$1, %eax
LBB0_2:
	movl	4(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.3:
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movslq	%esi, %rax
	movq	(%r8,%rax,8), %rsi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rsi,%rcx,8), %rax
	movq	(%rax,%r10,8), %rax
	cmpq	%rdx, %rcx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_good_xy_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function good_xy_ring
_good_xy_ring:                          ; @good_xy_ring
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x9, [x0, #8]
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x11, #0
	sxtw	x12, w2
	sxtw	x13, w3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9, x11, lsl #3]
	ldr	x8, [x8, x12, lsl #3]
	ldr	x8, [x8, x13, lsl #3]
	add	x11, x11, #1
	cmp	x11, x10
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w8, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w8, #1
LBB0_5:
	ldr	w10, [x0, #4]
	cmp	w10, #1
	ccmp	w8, #0, #4, ge
	b.eq	LBB0_9
; %bb.6:
	mov	x8, #0
	ldr	x9, [x9, w1, sxtw #3]
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
	sxtw	x11, w3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x8, lsl #3]
	ldr	x12, [x12, x11, lsl #3]
	add	x8, x8, #1
	cmp	x8, x10
	ccmp	w12, #0, #4, lo
	b.ne	LBB0_7
; %bb.8:
	mov	x8, x12
LBB0_9:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_good_xy_ring
.subsections_via_symbols
