	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsv_decode_frame
_qsv_decode_frame:                      ## @qsv_decode_frame
	.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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	cmpl	$0, (%rcx)
	je	LBB0_6
## %bb.1:
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	24(%rbx), %edi
	callq	_av_fifo_space
	cmpl	$11, %eax
	ja	LBB0_3
## %bb.2:
	movq	%r14, %r15
	movl	24(%rbx), %r14d
	movl	%r14d, %edi
	callq	_av_fifo_size
                                        ## kill: def $eax killed $eax def $rax
	leal	12(%rax), %esi
	movl	%r14d, %edi
	movq	%r15, %r14
	callq	_av_fifo_realloc2
	testl	%eax, %eax
	js	LBB0_4
LBB0_3:
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_av_packet_ref
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	24(%rbx), %edi
	leaq	-72(%rbp), %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
LBB0_6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	je	LBB0_7
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	jmp	LBB0_20
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_7:
	leaq	16(%rbx), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	jg	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%rbx), %edi
	callq	_av_fifo_size
	cmpl	$11, %eax
	jbe	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_ff_qsv_process_data
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	subl	%r15d, (%rbx)
	addl	%r15d, 4(%rbx)
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	callq	_av_packet_unref
LBB0_20:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %r15d
	testl	%r15d, %r15d
	jne	LBB0_20
## %bb.11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_ff_qsv_process_data
	movl	%eax, %r15d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qsv_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsv_decode_frame
_qsv_decode_frame:                      ; @qsv_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0]
	ldr	w8, [x3]
	cbz	w8, LBB0_5
; %bb.1:
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	w0, [x23, #24]
	bl	_av_fifo_space
	cmp	w0, #11
	b.hi	LBB0_3
; %bb.2:
	ldr	w24, [x23, #24]
	mov	x0, x24
	bl	_av_fifo_size
	add	w1, w0, #12
	mov	x0, x24
	bl	_av_fifo_realloc2
	tbnz	w0, #31, LBB0_7
LBB0_3:
	mov	x0, sp
	mov	x1, x19
	bl	_av_packet_ref
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w0, [x23, #24]
	mov	x1, sp
	mov	w2, #12
	mov	x3, #0
	bl	_av_fifo_generic_write
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
LBB0_6:
	ldr	w25, [x19]
	b	LBB0_18
LBB0_7:
	mov	x25, x0
	b	LBB0_18
LBB0_8:
	add	x24, x23, #16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, #0
	b.gt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x23, #24]
	bl	_av_fifo_size
	cmp	w0, #11
	b.ls	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_av_packet_unref
	ldr	w0, [x23, #24]
	mov	x1, x23
	mov	w2, #12
	mov	x3, #0
	bl	_av_fifo_generic_read
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_ff_qsv_process_data
	mov	x25, x0
	tbnz	w0, #31, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x24]
	cbnz	x8, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w8, w9, [x23]
	sub	w8, w8, w25
	add	w9, w9, w25
	stp	w8, w9, [x23]
	b	LBB0_9
LBB0_17:
	mov	x0, x23
	bl	_av_packet_unref
LBB0_18:
	mov	x0, x25
	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
	add	sp, sp, #96
	ret
LBB0_19:
	ldr	w25, [x19]
	cbnz	w25, LBB0_18
; %bb.20:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_ff_qsv_process_data
	mov	x25, x0
	b	LBB0_18
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qsv_decode_frame
.subsections_via_symbols
