	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dshow_check_event_queue
_dshow_check_event_queue:               ## @dshow_check_event_queue
	.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	%rdi, %r14
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
	callq	_IMediaEvent_GetEvent
	movq	_E_ABORT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movl	$-1, %r15d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rsi
	movq	_EC_ERRORABORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	cmovel	%r15d, %ebx
	movq	_EC_DEVICE_LOST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	cmovel	%r15d, %ebx
	movq	_EC_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	cmovel	%r15d, %ebx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	callq	_IMediaEvent_FreeEventParams
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_IMediaEvent_GetEvent
	cmpq	(%r12), %rax
	jne	LBB0_2
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_ABORT,8,3                    ## @E_ABORT
	.comm	_EC_COMPLETE,8,3                ## @EC_COMPLETE
	.comm	_EC_DEVICE_LOST,8,3             ## @EC_DEVICE_LOST
	.comm	_EC_ERRORABORT,8,3              ## @EC_ERRORABORT
	.no_dead_strip	_dshow_check_event_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dshow_check_event_queue
_dshow_check_event_queue:               ; @dshow_check_event_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x1, sp
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w4, #0
	bl	_IMediaEvent_GetEvent
	mov	w20, #0
Lloh0:
	adrp	x21, _E_ABORT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E_ABORT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x22, _EC_COMPLETE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EC_COMPLETE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _EC_DEVICE_LOST@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EC_DEVICE_LOST@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EC_ERRORABORT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EC_ERRORABORT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp]
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x1, x10
	ccmp	x1, x9, #4, ne
	ccmp	x1, x8, #4, ne
	csinv	w20, w20, wzr, ne
	ldp	w3, w2, [sp, #8]
	mov	x0, x19
	bl	_IMediaEvent_FreeEventParams
	mov	x1, sp
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #0
	bl	_IMediaEvent_GetEvent
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E_ABORT,8,3                    ; @E_ABORT
	.comm	_EC_COMPLETE,8,3                ; @EC_COMPLETE
	.comm	_EC_DEVICE_LOST,8,3             ; @EC_DEVICE_LOST
	.comm	_EC_ERRORABORT,8,3              ; @EC_ERRORABORT
	.no_dead_strip	_dshow_check_event_queue
.subsections_via_symbols
