	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_find_handle               ## -- Begin function cx18_find_handle
	.p2align	4, 0x90
_cx18_find_handle:                      ## @cx18_find_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CX18_MAX_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	(%rdi), %rdx
	movq	_CX18_INVALID_TASK_HANDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$4, %rcx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rcx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rdx,%rdi)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdx,%rdi), %rax
	cmpq	%rsi, %rax
	je	LBB0_5
## %bb.7:
	popq	%rbp
	retq
LBB0_1:
	movq	_CX18_INVALID_TASK_HANDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	retq
LBB0_6:
	movq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_MAX_STREAMS,4,2           ## @CX18_MAX_STREAMS
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ## @CX18_INVALID_TASK_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_find_handle               ; -- Begin function cx18_find_handle
	.p2align	2
_cx18_find_handle:                      ; @cx18_find_handle
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CX18_MAX_STREAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_MAX_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_6
; %bb.1:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _CX18_INVALID_TASK_HANDLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CX18_INVALID_TASK_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x10]
	add	x9, x9, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x0
	b.eq	LBB0_2
; %bb.5:
	mov	x0, x10
	ret
LBB0_6:
Lloh6:
	adrp	x8, _CX18_INVALID_TASK_HANDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX18_INVALID_TASK_HANDLE@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_MAX_STREAMS,4,2           ; @CX18_MAX_STREAMS
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ; @CX18_INVALID_TASK_HANDLE
.subsections_via_symbols
