	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_state_transition      ## -- Begin function ilclient_state_transition
	.p2align	4, 0x90
_ilclient_state_transition:             ## @ilclient_state_transition
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	$-1, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r13,%r12,8)
	leaq	1(%r12), %r12
	jne	LBB0_1
## %bb.2:
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_11
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.4:
	movq	_ILCLIENT_ERROR_UNPOPULATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, %ecx
	decq	%rcx
	cmpq	$3, %rcx
	jae	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %edx
	movl	%r12d, %ecx
	andl	$3, %ecx
	subq	%rcx, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rcx,8), %rsi
	orl	%eax, 4(%rsi)
	movq	8(%r13,%rcx,8), %rsi
	orl	%eax, 4(%rsi)
	movq	16(%r13,%rcx,8), %rsi
	orl	%eax, 4(%rsi)
	movq	24(%r13,%rcx,8), %rsi
	orl	%eax, 4(%rsi)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_7
LBB0_8:
	testb	$3, %r12b
	je	LBB0_11
## %bb.9:
	leaq	(,%rcx,8), %rcx
	addq	%r13, %rcx
	movl	%r12d, %edx
	andl	$3, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	orl	%eax, 4(%rdi)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_47
## %bb.12:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	shrl	$13, %eax
	movzbl	%al, %eax
	incl	%eax
	movq	(%r13,%rbx,8), %rcx
	movl	%eax, (%rcx)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_13
## %bb.14:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	movl	%r12d, %eax
	andl	$1, %eax
	subq	%rax, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ecx, %eax
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%eax, %rbx
	movq	(%r13,%rbx,8), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_random_wait
	movq	(%r13,%rbx,8), %rdi
	addq	$12, %rdi
	movq	_ILCLIENT_EVENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VCOS_OR_CONSUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	leaq	-60(%rbp), %r8
	callq	_vcos_event_flags_get
	movq	(%r13,%rbx,8), %rax
	movl	8(%rax), %edi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_OMX_SendCommand
	xorl	%edi, %edi
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vc_assert
	incl	%r14d
	cmpl	%r14d, %r12d
	je	LBB0_33
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %eax
	xorl	%ecx, %ecx
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=1
	testb	$1, %r12b
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r13,%rcx,8), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$-1, %eax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%eax, %rsi
	movq	(%r13,%rsi,8), %rsi
	cmpl	%edx, (%rsi)
	jg	LBB0_31
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	$-1, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=2
	leal	1(%rcx), %eax
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %r15
	je	LBB0_27
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rcx,8), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movslq	%eax, %rsi
	movq	(%r13,%rsi,8), %rsi
	cmpl	%edx, (%rsi)
	jle	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	%ecx, %eax
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	8(%r13,%rcx,8), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=2
	movslq	%eax, %rsi
	movq	(%r13,%rsi,8), %rsi
	cmpl	%edx, (%rsi)
	jg	LBB0_25
	jmp	LBB0_26
LBB0_33:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_random_wait
	movl	%r12d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_37
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	movq	_OMX_CommandStateSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ilclient_wait_for_command_complete
	testq	%rax, %rax
	jns	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	xorl	%edi, %edi
	callq	_vc_assert
	jmp	LBB0_36
LBB0_47:
	xorl	%eax, %eax
	callq	_random_wait
LBB0_37:
	movq	_OMX_StateLoaded@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_46
## %bb.38:
	testl	%r12d, %r12d
	je	LBB0_46
## %bb.39:
	movq	_ILCLIENT_ERROR_UNPOPULATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%r12d, %ecx
	decq	%rcx
	cmpq	$3, %rcx
	jae	LBB0_41
## %bb.40:
	xorl	%ecx, %ecx
	jmp	LBB0_43
LBB0_41:
	movl	%r12d, %edx
	movl	%r12d, %ecx
	andl	$3, %ecx
	subq	%rcx, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rcx,8), %rsi
	andl	%eax, 4(%rsi)
	movq	8(%r13,%rcx,8), %rsi
	andl	%eax, 4(%rsi)
	movq	16(%r13,%rcx,8), %rsi
	andl	%eax, 4(%rsi)
	movq	24(%r13,%rcx,8), %rsi
	andl	%eax, 4(%rsi)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_42
LBB0_43:
	testb	$3, %r12b
	je	LBB0_46
## %bb.44:
	leaq	(,%rcx,8), %rcx
	addq	%r13, %rcx
	andl	$3, %r12d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	andl	%eax, 4(%rsi)
	incq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_45
LBB0_46:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_StateLoaded,8,3            ## @OMX_StateLoaded
	.comm	_ILCLIENT_ERROR_UNPOPULATED,4,2 ## @ILCLIENT_ERROR_UNPOPULATED
	.comm	_ILCLIENT_EVENT_ERROR,4,2       ## @ILCLIENT_EVENT_ERROR
	.comm	_VCOS_OR_CONSUME,4,2            ## @VCOS_OR_CONSUME
	.comm	_OMX_CommandStateSet,4,2        ## @OMX_CommandStateSet
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ilclient_state_transition      ; -- Begin function ilclient_state_transition
	.p2align	2
_ilclient_state_transition:             ; @ilclient_state_transition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	w21, #-1
	mov	x8, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	add	w21, w21, #1
	cbnz	x9, LBB0_1
; %bb.2:
Lloh0:
	adrp	x22, _OMX_StateLoaded@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OMX_StateLoaded@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x20
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _ILCLIENT_ERROR_UNPOPULATED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ILCLIENT_ERROR_UNPOPULATED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x9, x21
	mov	x10, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	w12, [x11, #4]
	orr	w12, w12, w8
	str	w12, [x11, #4]
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	cbz	w21, LBB0_20
; %bb.6:
	mov	x23, x21
	mov	x24, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	ubfx	w8, w0, #13, #8
	add	w8, w8, #1
	ldr	x9, [x24], #8
	str	w8, [x9]
	subs	x23, x23, #1
	b.ne	LBB0_7
; %bb.8:
	mov	w24, #0
Lloh5:
	adrp	x25, _ILCLIENT_EVENT_ERROR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ILCLIENT_EVENT_ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x26, _VCOS_OR_CONSUME@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VCOS_OR_CONSUME@GOTPAGEOFF]
Lloh9:
	adrp	x23, _OMX_CommandStateSet@GOTPAGE
Lloh10:
	ldr	x23, [x23, _OMX_CommandStateSet@GOTPAGEOFF]
Lloh11:
	adrp	x27, _OMX_ErrorNone@GOTPAGE
Lloh12:
	ldr	x27, [x27, _OMX_ErrorNone@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sbfiz	x28, x9, #3, #32
	ldr	x8, [x19, x28]
	str	wzr, [x8]
	bl	_random_wait
	ldr	x8, [x19, x28]
	add	x0, x8, #12
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x4, sp, #12
	mov	w3, #0
	bl	_vcos_event_flags_get
	ldr	x8, [x19, x28]
	ldr	w0, [x8, #8]
	ldr	w1, [x23]
	mov	x2, x20
	mov	x3, #0
	bl	_OMX_SendCommand
	ldr	x8, [x27]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	add	w24, w24, #1
	cmp	w21, w24
	b.eq	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x8, #0
	mov	w9, #-1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x9, x8
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x8, #1
	cmp	x21, x8
	b.eq	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x19, x8, lsl #3]
	ldr	w10, [x10]
	cbz	w10, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	cmn	w9, #1
	b.eq	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x11, [x19, w9, sxtw #3]
	ldr	w11, [x11]
	cmp	w11, w10
	b.gt	LBB0_11
	b	LBB0_12
LBB0_16:
	bl	_random_wait
	mov	x24, x21
	mov	x25, x19
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x25, x25, #8
	subs	x24, x24, #1
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	w1, [x23]
	mov	x2, x20
	bl	_ilclient_wait_for_command_complete
	tbz	x0, #63, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #0
	bl	_vc_assert
	b	LBB0_17
LBB0_20:
	bl	_random_wait
LBB0_21:
	ldr	x8, [x22]
	cmp	x8, x20
	ccmp	w21, #0, #4, eq
	b.eq	LBB0_24
; %bb.22:
Lloh13:
	adrp	x8, _ILCLIENT_ERROR_UNPOPULATED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ILCLIENT_ERROR_UNPOPULATED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mvn	w8, w8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19], #8
	ldr	w10, [x9, #4]
	and	w10, w10, w8
	str	w10, [x9, #4]
	subs	x21, x21, #1
	b.ne	LBB0_23
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_StateLoaded,8,3            ; @OMX_StateLoaded
	.comm	_ILCLIENT_ERROR_UNPOPULATED,4,2 ; @ILCLIENT_ERROR_UNPOPULATED
	.comm	_ILCLIENT_EVENT_ERROR,4,2       ; @ILCLIENT_EVENT_ERROR
	.comm	_VCOS_OR_CONSUME,4,2            ; @VCOS_OR_CONSUME
	.comm	_OMX_CommandStateSet,4,2        ; @OMX_CommandStateSet
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
.subsections_via_symbols
