	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VMR9_SendSampleData
_VMR9_SendSampleData:                   ## @VMR9_SendSampleData
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r12), %r13
	leaq	16(%r13), %r14
	movq	_FORMAT_VideoInfo@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_IsEqualIID
	testq	%rax, %rax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_FORMAT_VideoInfo2@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_IsEqualIID
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:
	movq	8(%r13), %r14
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	4(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	8(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	12(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	16(%r14), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leal	24(%r14), %edi
	movl	$4, %esi
	callq	_debugstr_an
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	20(%r14), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	4(%r14), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %r15d
	leaq	12(%r12), %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.9(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	8(%r12), %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	_D3DLOCK_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_IDirect3DSurface9_LockRect
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.11(%rip), %rdi
	movl	%r13d, %esi
	callq	_ERR
	jmp	LBB0_13
LBB0_4:
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.5:
	movslq	%r15d, %rdi
	movslq	-48(%rbp), %rax
	imulq	%rax, %rdi
	addq	-56(%rbp), %rdi
	subq	%rax, %rdi
	movl	16(%r14), %eax
	imull	%r13d, %eax
	movq	%rdi, -56(%rbp)
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%rbx, %rsi
	callq	_memcpy
	decl	%r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %eax
	imull	%r13d, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rdx
	addq	%rdx, %rbx
	movq	-56(%rbp), %rdi
	movslq	-48(%rbp), %rax
	subq	%rax, %rdi
	movq	%rdi, -56(%rbp)
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	decl	%r15d
	jne	LBB0_6
	jmp	LBB0_12
LBB0_14:
	movq	%r13, %rdi
	callq	_debugstr_guid
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movq	_VFW_E_RUNTIME_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_13
LBB0_7:
	movl	-48(%rbp), %esi
	movl	16(%r14), %eax
	imull	%r13d, %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	cmpl	%edx, %esi
	jne	LBB0_8
## %bb.11:
	movq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.12(%rip), %rdi
	callq	_WARN
	testl	%r15d, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_12
## %bb.9:
	movq	-56(%rbp), %rdi
	movl	16(%r14), %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	imull	%r13d, %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movl	16(%r14), %eax
	movl	%eax, %ecx
	imull	%r13d, %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rcx
	addq	%rcx, %rbx
	movslq	-48(%rbp), %rdi
	addq	-56(%rbp), %rdi
	movq	%rdi, -56(%rbp)
	decl	%r15d
	jne	LBB0_10
LBB0_12:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_IDirect3DSurface9_UnlockRect
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	%rbx, %rdx
	callq	_IVMRImagePresenter9_PresentImage
	movl	%eax, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p %p %d\n"

	.comm	_FORMAT_VideoInfo,4,2           ## @FORMAT_VideoInfo
	.comm	_FORMAT_VideoInfo2,4,2          ## @FORMAT_VideoInfo2
L_.str.1:                               ## @.str.1
	.asciz	"Unknown type %s\n"

	.comm	_VFW_E_RUNTIME_ERROR,4,2        ## @VFW_E_RUNTIME_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"biSize = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"biWidth = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"biHeight = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"biPlanes = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"biBitCount = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"biCompression = %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"biSizeImage = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Src Rect: %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"Dst Rect: %s\n"

	.comm	_D3DLOCK_DISCARD,4,2            ## @D3DLOCK_DISCARD
L_.str.11:                              ## @.str.11
	.asciz	"IDirect3DSurface9_LockRect failed (%x)\n"

L_.str.12:                              ## @.str.12
	.asciz	"Slow path! %u/%u\n"

	.no_dead_strip	_VMR9_SendSampleData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VMR9_SendSampleData
_VMR9_SendSampleData:                   ; @VMR9_SendSampleData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	stp	x2, x22, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x23, [x20, #16]
	add	x24, x23, #16
Lloh2:
	adrp	x1, _FORMAT_VideoInfo@GOTPAGE
Lloh3:
	ldr	x1, [x1, _FORMAT_VideoInfo@GOTPAGEOFF]
	mov	x0, x24
	bl	_IsEqualIID
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, _FORMAT_VideoInfo2@GOTPAGE
Lloh5:
	ldr	x1, [x1, _FORMAT_VideoInfo2@GOTPAGEOFF]
	mov	x0, x24
	bl	_IsEqualIID
	cbz	x0, LBB0_8
LBB0_2:
	ldr	x24, [x23, #8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [x24, #4]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [x24, #8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	w8, [x24, #12]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	ldr	w8, [x24, #16]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	add	w0, w24, #24
	mov	w1, #4
	bl	_debugstr_an
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
	ldr	w8, [x24, #20]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TRACE
	ldp	w25, w26, [x24, #4]
	add	x0, x20, #12
	bl	_wine_dbgstr_rect
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_TRACE
	add	x0, x20, #8
	bl	_wine_dbgstr_rect
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.10@PAGE
Lloh23:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_TRACE
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _D3DLOCK_DISCARD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _D3DLOCK_DISCARD@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x1, sp, #32
	mov	x2, #0
	bl	_IDirect3DSurface9_LockRect
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x0, l_.str.11@PAGE
Lloh28:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x23
	bl	_ERR
	b	LBB0_15
LBB0_4:
	subs	w23, w26, #1
	b.lt	LBB0_9
; %bb.5:
	sxtw	x8, w26
	ldr	x9, [sp, #32]
	ldrsw	x10, [sp, #40]
	madd	x8, x10, x8, x9
	ldr	w9, [x24, #16]
	sub	x0, x8, x10
	str	x0, [sp, #32]
	mul	w8, w9, w25
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_memcpy
	cbz	w23, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24, #16]
	mul	w8, w8, w25
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	add	x21, x21, w2, sxtw
	ldr	x8, [sp, #32]
	ldrsw	x9, [sp, #40]
	sub	w23, w23, #1
	sub	x0, x8, x9
	str	x0, [sp, #32]
	b	LBB0_6
LBB0_8:
	mov	x0, x23
	bl	_debugstr_guid
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh31:
	adrp	x8, _VFW_E_RUNTIME_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VFW_E_RUNTIME_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w23, [x8]
	b	LBB0_15
LBB0_9:
	ldr	w1, [sp, #40]
	ldr	w8, [x24, #16]
	mul	w8, w8, w25
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	cmp	w1, w2
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [sp, #32]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	b	LBB0_14
LBB0_11:
Lloh34:
	adrp	x0, l_.str.12@PAGE
Lloh35:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_WARN
	cbz	w26, LBB0_14
; %bb.12:
	ldr	x0, [sp, #32]
	ldr	w8, [x24, #16]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	mul	w8, w8, w25
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x24, #16]
	mul	w9, w8, w25
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x21, x21, w9, sxtw
	ldr	x9, [sp, #32]
	ldrsw	x10, [sp, #40]
	add	x0, x9, x10
	str	x0, [sp, #32]
	cbnz	w26, LBB0_13
LBB0_14:
	ldr	w0, [x19]
	bl	_IDirect3DSurface9_UnlockRect
	ldp	w1, w0, [x20]
	mov	x2, x19
	bl	_IVMRImagePresenter9_PresentImage
	mov	x23, x0
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p %p %d\n"

	.comm	_FORMAT_VideoInfo,4,2           ; @FORMAT_VideoInfo
	.comm	_FORMAT_VideoInfo2,4,2          ; @FORMAT_VideoInfo2
l_.str.1:                               ; @.str.1
	.asciz	"Unknown type %s\n"

	.comm	_VFW_E_RUNTIME_ERROR,4,2        ; @VFW_E_RUNTIME_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"biSize = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"biWidth = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"biHeight = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"biPlanes = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"biBitCount = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"biCompression = %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"biSizeImage = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Src Rect: %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"Dst Rect: %s\n"

	.comm	_D3DLOCK_DISCARD,4,2            ; @D3DLOCK_DISCARD
l_.str.11:                              ; @.str.11
	.asciz	"IDirect3DSurface9_LockRect failed (%x)\n"

l_.str.12:                              ; @.str.12
	.asciz	"Slow path! %u/%u\n"

	.no_dead_strip	_VMR9_SendSampleData
.subsections_via_symbols
