	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_qsv_get_continuous_buffer
_ff_qsv_get_continuous_buffer:          ## @ff_qsv_get_continuous_buffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ff_decode_frame_props
	movl	8(%r14), %edi
	movl	%edi, 28(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.2:
	movl	$128, %esi
	callq	_FFALIGN
	jmp	LBB0_3
LBB0_5:
	movl	$128, %esi
	callq	_FFALIGN
	addl	%eax, %eax
LBB0_3:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 4(%rcx)
	movq	%r15, %rdi
	callq	_av_buffer_pool_get
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%rax), %r15
	movq	8(%rbx), %rax
	movq	%r15, (%rax)
	movq	(%rbx), %rax
	movslq	(%rax), %r12
	movl	4(%r14), %edi
	movl	$64, %esi
	callq	_FFALIGN
	cltq
	imulq	%r12, %rax
	addq	%r15, %rax
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_ff_attach_decode_data
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported pixel format.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ff_qsv_get_continuous_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_qsv_get_continuous_buffer
_ff_qsv_get_continuous_buffer:          ; @ff_qsv_get_continuous_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_ff_decode_frame_props
	ldp	w9, w0, [x20, #4]
	ldr	w8, [x20]
	stp	w9, w0, [x19, #24]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.2:
	mov	w1, #128
	bl	_FFALIGN
	b	LBB0_4
LBB0_3:
	mov	w1, #128
	bl	_FFALIGN
	lsl	w0, w0, #1
LBB0_4:
	ldr	x8, [x19]
	stp	w0, w0, [x8]
	mov	x0, x21
	bl	_av_buffer_pool_get
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x21, [x8]
	ldp	x9, x8, [x19]
	str	x21, [x8]
	ldrsw	x22, [x9]
	ldr	w0, [x20, #4]
	mov	w1, #64
	bl	_FFALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	madd	x8, x8, x22, x21
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
	mov	x0, x19
	bl	_ff_attach_decode_data
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported pixel format.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ff_qsv_get_continuous_buffer
.subsections_via_symbols
