	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_flags_timer_expired
_event_flags_timer_expired:             ## @event_flags_timer_expired
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_vcos_assert
	movq	%r15, %rdi
	callq	_vcos_mutex_lock
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, %rcx
	je	LBB0_3
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rbx, %rcx
	jne	LBB0_9
## %bb.5:
	movq	%rax, %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_3:
	leaq	16(%r15), %rcx
	xorl	%eax, %eax
LBB0_6:
	movq	(%rbx), %rdx
	movq	8(%rbx), %r14
	movq	%rdx, (%rcx)
	testq	%rdx, %rdx
	jne	LBB0_10
## %bb.7:
	movq	%rax, 8(%r15)
LBB0_10:
	movq	%r15, %rdi
	callq	_waiter_list_valid
	movq	%rax, %rdi
	callq	_vcos_assert
	movq	%r15, %rdi
	callq	_vcos_mutex_unlock
	testq	%r14, %r14
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__vcos_thread_sem_post          ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_event_flags_timer_expired
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_flags_timer_expired
_event_flags_timer_expired:             ; @event_flags_timer_expired
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_vcos_assert
	mov	x0, x19
	bl	_vcos_mutex_lock
	mov	x9, x19
	ldr	x10, [x9, #16]!
	cbz	x10, LBB0_5
; %bb.1:
	cmp	x10, x20
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x10
	ldr	x10, [x10]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x10, x20
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x8
	b	LBB0_7
LBB0_5:
	mov	x21, #0
	b	LBB0_9
LBB0_6:
	mov	x8, #0
LBB0_7:
	ldp	x10, x21, [x20]
	str	x10, [x9]
	cbnz	x10, LBB0_9
; %bb.8:
	str	x8, [x19, #8]
LBB0_9:
	mov	x0, x19
	bl	_waiter_list_valid
	bl	_vcos_assert
	mov	x0, x19
	bl	_vcos_mutex_unlock
	cbz	x21, LBB0_11
; %bb.10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__vcos_thread_sem_post
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_event_flags_timer_expired
.subsections_via_symbols
