	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cuio_getptr                    ## -- Begin function cuio_getptr
	.p2align	4, 0x90
_cuio_getptr:                           ## @cuio_getptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testl	%esi, %esi
	js	LBB0_10
## %bb.1:
	movl	(%rdi), %r9d
	xorl	%r10d, %r10d
	testl	%r9d, %r9d
	movl	$0, %r8d
	cmovgl	%r9d, %r8d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, %r8
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rcx
	movl	(%rcx,%r10,4), %ecx
	cmpl	%ecx, %esi
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	subl	%ecx, %esi
	jns	LBB0_2
LBB0_10:
	popq	%rbp
	retq
LBB0_6:
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.7:
	testl	%esi, %esi
	jne	LBB0_10
## %bb.8:
	decl	%r8d
	movq	8(%rdi), %rax
	movl	(%rax,%r8,4), %esi
	movl	%r8d, %eax
	jmp	LBB0_9
LBB0_4:
	movl	%r10d, %eax
LBB0_9:
	movl	%esi, (%rdx)
	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	_cuio_getptr                    ; -- Begin function cuio_getptr
	.p2align	2
_cuio_getptr:                           ; @cuio_getptr
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	ldr	w10, [x8]
	cmp	w10, #0
	csel	w9, w10, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x8, #8]
	ldr	w11, [x11, x0, lsl #2]
	subs	w11, w1, w11
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	mov	x1, x11
	b.pl	LBB0_2
LBB0_5:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #-1
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.7:
	cbnz	w1, LBB0_10
; %bb.8:
	sub	w0, w9, #1
	ldr	x8, [x8, #8]
	ldr	w1, [x8, w0, uxtw #2]
LBB0_9:
	str	w1, [x2]
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
