	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dshow_read_packet
_dshow_read_packet:                     ## @dshow_read_packet
	.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	8(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_12:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_INFINITE@GOTPCREL(%rip), %r12
	movq	_AVFMT_FLAG_NONBLOCK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %edi
	movl	(%r12), %esi
	callq	_WaitForSingleObject
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ResetEvent
	movl	20(%rbx), %edi
	callq	_ReleaseMutex
	movl	16(%rbx), %edi
	callq	_dshow_check_event_queue
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rsi
	movl	(%r12), %ecx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_WaitForMultipleObjects
	cmpl	$0, (%rbx)
	je	LBB0_2
	jmp	LBB0_12
LBB0_3:
	movups	8(%rdi), %xmm0
	movups	%xmm0, (%r14)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	callq	_av_free
	movl	8(%r14), %eax
	movq	24(%rbx), %rcx
	movq	(%r14), %rdx
	subl	%eax, (%rcx,%rdx,4)
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ResetEvent
	movl	20(%rbx), %edi
	callq	_ReleaseMutex
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.4:
	movl	8(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,4,2                   ## @INFINITE
	.comm	_AVFMT_FLAG_NONBLOCK,4,2        ## @AVFMT_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dshow_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dshow_read_packet
_dshow_read_packet:                     ; @dshow_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_3:
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x22, _INFINITE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INFINITE@GOTPAGEOFF]
	mov	w23, #1
Lloh4:
	adrp	x24, _AVFMT_FLAG_NONBLOCK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AVFMT_FLAG_NONBLOCK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x21]
	ldr	w8, [x21]
	cbnz	w8, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #20]
	ldr	w1, [x22]
	bl	_WaitForSingleObject
	ldr	x0, [x21, #32]
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
	bl	_ResetEvent
	ldr	w0, [x21, #20]
	bl	_ReleaseMutex
	ldr	w0, [x21, #16]
	bl	_dshow_check_event_queue
	tbnz	x0, #63, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21, #8]
	ldr	w3, [x22]
	mov	w0, #2
	mov	w2, #0
	bl	_WaitForMultipleObjects
	ldr	w8, [x21]
	cbz	w8, LBB0_5
	b	LBB0_1
LBB0_9:
	ldur	q0, [x0, #8]
	str	q0, [x19]
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	str	x8, [x21, #32]
	bl	_av_free
	ldr	x8, [x21, #24]
	ldr	x9, [x19]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldr	w11, [x19, #8]
	sub	w10, w10, w11
	str	w10, [x8, x9]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
	bl	_ResetEvent
	ldr	w0, [x21, #20]
	bl	_ReleaseMutex
	ldr	w8, [x21]
	cbnz	w8, LBB0_1
; %bb.10:
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
	.comm	_AVFMT_FLAG_NONBLOCK,4,2        ; @AVFMT_FLAG_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dshow_read_packet
.subsections_via_symbols
