	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilcs_task
_ilcs_task:                             ## @ilcs_task
	.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	%rdi, %r12
	movl	48(%rdi), %edi
	callq	*64(%r12)
	movq	(%r12), %rax
	movq	_CLOSED_CALLBACK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jge	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ilcs_process_message
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jl	LBB0_1
LBB0_3:
	movl	48(%r12), %edi
	callq	*56(%r12)
	leaq	40(%r12), %rdi
	callq	_vcos_event_delete
	leaq	36(%r12), %rdi
	callq	_vchiu_queue_delete
	leaq	32(%r12), %rdi
	callq	_vcos_timer_delete
	movq	_ILCS_MAX_WAITING@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%r13, %rdi
	callq	_vcos_event_delete
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	leaq	20(%r12), %rdi
	callq	_vcos_event_delete
	leaq	16(%r12), %rdi
	callq	_vcos_semaphore_delete
	leaq	12(%r12), %rdi
	callq	_vcos_mutex_delete
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_vcos_abort
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOSED_CALLBACK,8,3            ## @CLOSED_CALLBACK
	.comm	_ILCS_MAX_WAITING,4,2           ## @ILCS_MAX_WAITING
	.comm	_vcos_free,4,2                  ## @vcos_free
	.no_dead_strip	_ilcs_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilcs_task
_ilcs_task:                             ; @ilcs_task
	.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
	mov	x19, x0
	ldr	x8, [x0, #64]
	ldr	w0, [x0, #48]
	blr	x8
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _CLOSED_CALLBACK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CLOSED_CALLBACK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_ilcs_process_message
	ldr	x8, [x19]
	b	LBB0_1
LBB0_3:
	ldr	x8, [x19, #56]
	ldr	w0, [x19, #48]
	blr	x8
	add	x0, x19, #40
	bl	_vcos_event_delete
	add	x0, x19, #36
	bl	_vchiu_queue_delete
	add	x0, x19, #32
	bl	_vcos_timer_delete
Lloh2:
	adrp	x21, _ILCS_MAX_WAITING@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ILCS_MAX_WAITING@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x22
	bl	_vcos_event_delete
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	add	x0, x19, #20
	bl	_vcos_event_delete
	add	x0, x19, #16
	bl	_vcos_semaphore_delete
	add	x0, x19, #12
	bl	_vcos_mutex_delete
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_vcos_abort
LBB0_8:
	mov	x0, #0
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOSED_CALLBACK,8,3            ; @CLOSED_CALLBACK
	.comm	_ILCS_MAX_WAITING,4,2           ; @ILCS_MAX_WAITING
	.comm	_vcos_free,4,2                  ; @vcos_free
	.no_dead_strip	_ilcs_task
.subsections_via_symbols
