	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_generic_event_flags_set   ## -- Begin function vcos_generic_event_flags_set
	.p2align	4, 0x90
_vcos_generic_event_flags_set:          ## @vcos_generic_event_flags_set
	.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	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_vcos_assert
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_vcos_mutex_lock
	movq	_VCOS_OR@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.1:
	orl	%r15d, (%r13)
	jmp	LBB0_5
LBB0_2:
	movq	_VCOS_AND@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	andl	%r15d, (%r13)
	jmp	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_5:
	movq	16(%r13), %r15
	testq	%r15, %r15
	je	LBB0_14
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %rbx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	orl	%eax, %r12d
	movq	%r13, %rdi
	callq	_waiter_list_valid
	movq	%rax, %rdi
	callq	_vcos_assert
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movl	(%r13), %eax
	movl	%eax, 16(%r15)
	movl	32(%r15), %edi
	callq	__vcos_thread_sem_post
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	(%r13), %edx
	andl	%eax, %edx
	movq	8(%r15), %rcx
	xorl	%esi, %esi
	cmpl	%eax, %edx
	sete	%sil
	movq	_VCOS_AND@GOTPCREL(%rip), %rdi
	testq	%rcx, (%rdi)
	cmovel	%edx, %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_VCOS_CONSUME@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rcx
	movl	$0, %ecx
	cmovel	%ecx, %eax
	movq	24(%r15), %rcx
	movq	%rcx, (%rbx)
	cmpq	$0, 24(%r15)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, 8(%r13)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	24(%r15), %rbx
	movq	%r15, %r14
	jmp	LBB0_12
LBB0_13:
	notl	%r12d
	andl	%r12d, (%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_OR,8,3                    ## @VCOS_OR
	.comm	_VCOS_AND,8,3                   ## @VCOS_AND
	.comm	_VCOS_CONSUME,4,2               ## @VCOS_CONSUME
	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_generic_event_flags_set   ; -- Begin function vcos_generic_event_flags_set
	.p2align	2
_vcos_generic_event_flags_set:          ; @vcos_generic_event_flags_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_vcos_assert
	add	x20, x19, #4
	mov	x0, x20
	bl	_vcos_mutex_lock
Lloh0:
	adrp	x8, _VCOS_OR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_OR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _VCOS_AND@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VCOS_AND@GOTPAGEOFF]
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	orr	w8, w8, w21
	str	w8, [x19]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x23]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19]
	and	w8, w8, w21
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
	bl	_vcos_assert
LBB0_5:
	mov	x21, x19
	ldr	x27, [x21, #16]!
	cbz	x27, LBB0_13
; %bb.6:
	mov	w22, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _VCOS_CONSUME@GOTPAGE
Lloh6:
	ldr	x25, [x25, _VCOS_CONSUME@GOTPAGEOFF]
Lloh7:
	adrp	x26, _VCOS_SUCCESS@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VCOS_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	orr	w22, w8, w22
	mov	x0, x19
	bl	_waiter_list_valid
	bl	_vcos_assert
	ldr	w8, [x26]
	str	w8, [x27, #36]
	ldr	w8, [x19]
	str	w8, [x27, #16]
	ldr	w0, [x27, #32]
	bl	__vcos_thread_sem_post
	ldr	x27, [x21]
	cbz	x27, LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	ldr	w8, [x27]
	and	w10, w8, w9
	ldr	x9, [x27, #8]
	ldr	x11, [x23]
	cmp	w10, w8
	cset	w12, eq
	tst	x11, x9
	csel	w10, w10, w12, eq
	cbz	w10, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x10, [x25]
	tst	x9, x10
	csel	w8, wzr, w8, eq
	ldr	x9, [x27, #24]
	str	x9, [x21]
	ldr	x9, [x27, #24]
	cbnz	x9, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x24, [x19, #8]
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x27, #24
	mov	x24, x27
	ldr	x27, [x21]
	cbnz	x27, LBB0_8
LBB0_12:
	ldr	w8, [x19]
	bic	w8, w8, w22
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_OR,8,3                    ; @VCOS_OR
	.comm	_VCOS_AND,8,3                   ; @VCOS_AND
	.comm	_VCOS_CONSUME,4,2               ; @VCOS_CONSUME
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
.subsections_via_symbols
