	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qsv_retrieve_enc_jpeg_params
_qsv_retrieve_enc_jpeg_params:          ## @qsv_retrieve_enc_jpeg_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rsi), %edi
	addq	$4, %rsi
	callq	_MFXVideoENCODE_GetVideoParam
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	8(%rbx), %eax
	imull	4(%rbx), %eax
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	12(%rbx), %eax
	imull	16(%rbx), %eax
	shll	$2, %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ff_qsv_print_error             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error calling GetVideoParam"

	.no_dead_strip	_qsv_retrieve_enc_jpeg_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qsv_retrieve_enc_jpeg_params
_qsv_retrieve_enc_jpeg_params:          ; @qsv_retrieve_enc_jpeg_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #20]
	add	x1, x1, #4
	bl	_MFXVideoENCODE_GetVideoParam
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldp	w8, w9, [x19, #4]
	mul	w8, w9, w8
	mov	w9, #1000
	mul	w9, w8, w9
	str	w9, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
	ldp	w8, w9, [x19, #12]
	mul	w8, w8, w9
	lsl	w8, w8, #2
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ff_qsv_print_error
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error calling GetVideoParam"

	.no_dead_strip	_qsv_retrieve_enc_jpeg_params
.subsections_via_symbols
