	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsv_process_data            ## -- Begin function ff_qsv_process_data
	.p2align	4, 0x90
_ff_qsv_process_data:                   ## @ff_qsv_process_data
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -64(%rbp)
	movdqa	%xmm0, -80(%rbp)
	cmpl	$0, 4(%r8)
	je	LBB0_21
## %bb.1:
	movq	(%rbx), %rcx
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_4
LBB0_5:
	cmpl	$0, 4(%r14)
	jne	LBB0_7
LBB0_6:
	movl	$720, 4(%r14)                   ## imm = 0x2D0
LBB0_7:
	leaq	-80(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_qsv_decode_header
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	movq	%r15, %r12
	movq	(%rbx), %r15
	movl	-64(%rbp), %edi
	callq	_ff_qsv_map_fourcc
	cmpq	%rax, %r15
	movq	%r12, %r15
	movq	%r13, %r12
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_11
## %bb.9:
	movslq	(%r14), %rax
	cmpq	%rax, -80(%rbp)
	jne	LBB0_11
## %bb.10:
	movslq	4(%r14), %rax
	cmpq	%rax, -72(%rbp)
	je	LBB0_15
LBB0_11:
	movq	$0, -96(%rbp)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	$1, 8(%rbx)
	decq	%rax
	movq	%rax, 16(%rbx)
	leaq	-96(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_qsv_decode
	jmp	LBB0_20
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qsv_decode                     ## TAILCALL
LBB0_2:
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$0, (%r14)
	jne	LBB0_5
LBB0_4:
	movl	$1280, (%r14)                   ## imm = 0x500
	cmpl	$0, 4(%r14)
	jne	LBB0_7
	jmp	LBB0_6
LBB0_13:
	movl	$0, 8(%rbx)
	movl	-64(%rbp), %edi
	callq	_ff_qsv_map_fourcc
	movl	%eax, 8(%r14)
	movslq	%eax, %rdx
	movq	%rdx, (%rbx)
	pshufd	$232, -80(%rbp), %xmm0          ## xmm0 = mem[0,2,2,3]
	movq	%xmm0, (%r14)
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_qsv_decode_preinit
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	movl	$0, 12(%rbx)
LBB0_15:
	cmpl	$0, 12(%rbx)
	jne	LBB0_18
## %bb.16:
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qsv_decode_init
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:
	movl	$1, 12(%rbx)
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_qsv_decode
	jmp	LBB0_20
LBB0_19:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ecx, 8(%r14)
	movslq	%ecx, %rcx
	movq	%rcx, (%rbx)
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NV12,4,2            ## @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_qsv_process_data            ; -- Begin function ff_qsv_process_data
	.p2align	2
_ff_qsv_process_data:                   ; @ff_qsv_process_data
	.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	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	w8, [x4, #4]
	cbz	w8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _AV_PIX_FMT_NV12@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NV12@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh3:
	adrp	x24, _AV_PIX_FMT_NONE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x9, x10
	csel	w3, w8, w9, eq
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.2:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_4
LBB0_3:
	mov	w8, #720
	str	w8, [x20, #4]
LBB0_4:
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_qsv_decode_header
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	x25, [x19]
	ldr	w0, [sp, #32]
	bl	_ff_qsv_map_fourcc
	cmp	x25, x0
	b.ne	LBB0_8
; %bb.6:
	ldrsw	x8, [x20]
	ldr	x9, [sp, #16]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldrsw	x8, [x20, #4]
	ldr	x9, [sp, #24]
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_8:
	str	xzr, [sp, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.9:
	mov	w9, #1
	str	w9, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #16]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_qsv_decode
	b	LBB0_19
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, 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
	b	_qsv_decode
LBB0_11:
	mov	w8, #1280
	str	w8, [x20]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_4
	b	LBB0_3
LBB0_12:
	str	wzr, [x19, #8]
	ldr	w0, [sp, #32]
	bl	_ff_qsv_map_fourcc
	mov	x2, x0
	str	w2, [x20, #8]
	sxtw	x8, w0
	str	x8, [x19]
	ldr	q0, [sp, #16]
	xtn.2s	v0, v0
	str	d0, [x20]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_qsv_decode_preinit
	tbnz	w0, #31, LBB0_18
; %bb.13:
	str	wzr, [x19, #12]
LBB0_14:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_17
; %bb.15:
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_qsv_decode_init
	tbnz	w0, #31, LBB0_18
; %bb.16:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_qsv_decode
	b	LBB0_19
LBB0_18:
	ldr	x8, [x24]
	str	w8, [x20, #8]
	sxtw	x8, w8
	str	x8, [x19]
LBB0_19:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NV12,4,2            ; @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
.subsections_via_symbols
