	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilcs_response
_ilcs_response:                         ## @ilcs_response
	.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
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_vcos_mutex_lock
	movq	_ILCS_MAX_WAITING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %rbx
	leal	-1(%rax), %ecx
	shlq	$5, %rcx
	addq	%rbx, %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$32, %rbx
	cmpq	%r14, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, (%rbx)
	jne	LBB0_5
## %bb.9:
	movq	%rdx, %r13
	jmp	LBB0_7
LBB0_1:
	movq	%rdx, %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%rdx, %r13
	movl	%eax, %r14d
	movq	%rcx, %rbx
LBB0_7:
	movq	%r12, %rdi
	callq	_vcos_mutex_unlock
	cmpl	(%r13), %r14d
	jne	LBB0_8
## %bb.10:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_assert                    ## TAILCALL
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	cmpl	%r15d, %edx
	cmovgel	%r15d, %edx
	movl	%r15d, (%rax)
	movq	24(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	addq	$16, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_event_signal              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ILCS_MAX_WAITING,4,2           ## @ILCS_MAX_WAITING
	.no_dead_strip	_ilcs_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilcs_response
_ilcs_response:                         ; @ilcs_response
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_vcos_mutex_lock
Lloh0:
	adrp	x23, _ILCS_MAX_WAITING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ILCS_MAX_WAITING@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
	ldr	x24, [x21, #8]
	sub	w9, w8, #1
	add	x9, x24, x9, lsl #5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x24, x24, #32
	cmp	x8, x25
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24, #24]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x24]
	cmp	x10, x22
	b.ne	LBB0_2
	b	LBB0_7
LBB0_5:
	mov	w25, #0
	mov	x24, #0
	b	LBB0_7
LBB0_6:
	mov	x25, x8
	mov	x24, x9
LBB0_7:
	mov	x0, x21
	bl	_vcos_mutex_unlock
	ldr	w8, [x23]
	cmp	w25, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vcos_assert
LBB0_9:
	ldr	x8, [x24, #8]
	ldr	w9, [x8]
	cmp	w9, w20
	csel	w2, w9, w20, lt
	str	w20, [x8]
	ldr	x0, [x24, #24]
	mov	x1, x19
	bl	_memcpy
	add	x0, x24, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vcos_event_signal
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ILCS_MAX_WAITING,4,2           ; @ILCS_MAX_WAITING
	.no_dead_strip	_ilcs_response
.subsections_via_symbols
