	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_GetFreePing                 ## -- Begin function CL_GetFreePing
	.p2align	4, 0x90
_CL_GetFreePing:                        ## @CL_GetFreePing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cl_pinglist@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	movq	_MAX_PINGREQUESTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$500, %ecx                      ## imm = 0x1F4
	jge	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	addq	$16, %r12
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	subl	4(%r12), %eax
	cmpl	$499, %eax                      ## imm = 0x1F3
	jg	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_11:
	movq	$0, 8(%r12)
	jmp	LBB0_12
LBB0_7:
	movq	(%r15), %r12
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r13d, %r13d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	subl	4(%rbx), %eax
	cmpl	%r15d, %eax
	cmovgq	%rbx, %r12
	cmovgl	%eax, %r15d
	incl	%r13d
	addq	$16, %rbx
	cmpl	(%r14), %r13d
	jl	LBB0_9
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cl_pinglist,8,3                ## @cl_pinglist
	.comm	_MAX_PINGREQUESTS,4,2           ## @MAX_PINGREQUESTS
	.comm	_INT_MIN,4,2                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_GetFreePing                 ; -- Begin function CL_GetFreePing
	.p2align	2
_CL_GetFreePing:                        ; @CL_GetFreePing
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _cl_pinglist@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cl_pinglist@GOTPAGEOFF]
	ldr	x19, [x21]
Lloh2:
	adrp	x20, _MAX_PINGREQUESTS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_PINGREQUESTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #500
	b.ge	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	add	x19, x19, #16
	cmp	w22, w8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
	cbnz	w9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_Sys_Milliseconds
	ldr	w8, [x19, #4]
	sub	w8, w0, w8
	cmp	w8, #499
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	b	LBB0_3
LBB0_8:
	str	xzr, [x19, #8]
	b	LBB0_12
LBB0_9:
	ldr	x19, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w21, #0
Lloh4:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	mov	x23, x19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_Sys_Milliseconds
	ldr	w8, [x23, #4]
	sub	w8, w0, w8
	cmp	w8, w22
	csel	x19, x23, x19, gt
	csel	w22, w8, w22, gt
	add	w21, w21, #1
	add	x23, x23, #16
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cl_pinglist,8,3                ; @cl_pinglist
	.comm	_MAX_PINGREQUESTS,4,2           ; @MAX_PINGREQUESTS
	.comm	_INT_MIN,4,2                    ; @INT_MIN
.subsections_via_symbols
