	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_init                  ## -- Begin function ilclient_init
	.p2align	4, 0x90
_ilclient_init:                         ## @ilclient_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rsi
	movl	$24, %edi
	callq	_vcos_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_VCOS_LOG_CATEGORY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_VCOS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vcos_log_set_level
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_register
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, %rdi
	addq	$16, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_vc_assert
	movq	%rbx, %rdi
	callq	_ilclient_lock_events
	movq	$0, 8(%rbx)
	movq	_NUM_EVENTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.2:
	movq	(%rbx), %rdx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rdx)
	movq	%rsi, 8(%rdx)
	incq	%rcx
	movslq	(%rax), %rdi
	movq	%rdx, %rsi
	addq	$16, %rdx
	cmpq	%rdi, %rcx
	jl	LBB0_3
## %bb.4:
	addq	$-16, %rdx
	movq	%rdx, 8(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_ilclient_unlock_events
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ilclient"

	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_WARN,4,2              ## @VCOS_LOG_WARN
L_.str.1:                               ## @.str.1
	.asciz	"il:event"

	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
	.comm	_NUM_EVENTS,4,2                 ## @NUM_EVENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_init                  ; -- Begin function ilclient_init
	.p2align	2
_ilclient_init:                         ; @ilclient_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #24
	bl	_vcos_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x20, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _VCOS_LOG_WARN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VCOS_LOG_WARN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_vcos_log_set_level
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_register
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x0, x19, #16
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_vcos_semaphore_create
Lloh11:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_vc_assert
	mov	x0, x19
	bl	_ilclient_lock_events
	str	xzr, [x19, #8]
Lloh14:
	adrp	x8, _NUM_EVENTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NUM_EVENTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x9, #0
	mov	x11, #0
	ldr	x12, [x19]
	mov	w10, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x12]
	str	x11, [x12, #8]
	add	x9, x9, #1
	ldrsw	x13, [x8]
	mov	x11, x12
	add	x12, x12, #16
	cmp	x9, x13
	b.lt	LBB0_3
; %bb.4:
	sub	x8, x12, #16
	str	x8, [x19, #8]
LBB0_5:
	mov	x0, x19
	bl	_ilclient_unlock_events
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ilclient"

	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_WARN,4,2              ; @VCOS_LOG_WARN
l_.str.1:                               ; @.str.1
	.asciz	"il:event"

	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
	.comm	_NUM_EVENTS,4,2                 ; @NUM_EVENTS
.subsections_via_symbols
