	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_video_param_jpeg
_init_video_param_jpeg:                 ## @init_video_param_jpeg
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_AV_PIX_FMT_QSV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movl	8(%r14), %r15d
LBB0_2:
	movl	88(%r14), %edi
	callq	_ff_qsv_codec_id_to_mfx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, (%rbx)
	movq	16(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	%rax, 8(%rbx)
LBB0_6:
	movl	144(%rbx), %eax
	movl	%eax, 136(%rbx)
	movl	%r15d, %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r12
	leaq	128(%rbx), %rsi
	movl	%r15d, %edi
	callq	_ff_qsv_map_pixfmt
	xorps	%xmm0, %xmm0
	movups	%xmm0, 112(%rbx)
	movl	76(%r14), %edi
	movdqu	72(%r14), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 92(%rbx)
	movq	_MFX_CHROMAFORMAT_YUV420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	%eax, 44(%rbx)
	xorl	%ecx, %ecx
	cmpl	$9, %eax
	setge	%cl
	movl	%ecx, 48(%rbx)
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 80(%rbx)
	movl	72(%r14), %edi
	movl	$16, %esi
	callq	_FFALIGN
	movq	%rax, 72(%rbx)
	movq	64(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movdqu	(%rax), %xmm0
	movdqu	%xmm0, 72(%rbx)
LBB0_9:
	movq	48(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_12
## %bb.10:
	movq	56(%r14), %rcx
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.11:
	movq	%rcx, 56(%rbx)
	jmp	LBB0_13
LBB0_3:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_12:
	movq	32(%r14), %rax
	movq	%rax, 56(%rbx)
	movq	40(%r14), %rax
LBB0_13:
	movq	%rax, 64(%rbx)
	movl	$1, 16(%rbx)
	movl	24(%r14), %edi
	movl	$1, %esi
	movl	$100, %edx
	callq	_av_clip
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_QSV,8,3             ## @AV_PIX_FMT_QSV
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.comm	_MFX_CHROMAFORMAT_YUV420,4,2    ## @MFX_CHROMAFORMAT_YUV420
	.no_dead_strip	_init_video_param_jpeg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_video_param_jpeg
_init_video_param_jpeg:                 ; @init_video_param_jpeg
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _AV_PIX_FMT_QSV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_QSV@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x20, #8]
LBB0_2:
	ldr	w0, [x20, #88]
	bl	_ff_qsv_codec_id_to_mfx
	tbnz	w0, #31, LBB0_12
; %bb.3:
	str	w0, [x19]
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	str	x8, [x19, #8]
LBB0_5:
	ldr	w8, [x19, #144]
	str	w8, [x19, #136]
	mov	x0, x21
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_12
; %bb.6:
	mov	x22, x0
	add	x1, x19, #128
	mov	x0, x21
	bl	_ff_qsv_map_pixfmt
	stp	xzr, xzr, [x19, #112]
	ldp	w8, w0, [x20, #72]
	stp	w8, w0, [x19, #100]
	ldr	d0, [x20, #80]
	stur	d0, [x19, #92]
Lloh3:
	adrp	x8, _MFX_CHROMAFORMAT_YUV420@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MFX_CHROMAFORMAT_YUV420@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #88]
	ldr	x8, [x22]
	ldr	w8, [x8]
	stp	w8, w8, [x19, #40]
	cmp	w8, #8
	cset	w8, gt
	str	w8, [x19, #48]
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x19, #80]
	ldr	w0, [x20, #72]
	mov	w1, #16
	bl	_FFALIGN
	str	x0, [x19, #72]
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	x8, x9, [x8]
	stp	x8, x9, [x19, #72]
LBB0_8:
	ldr	x8, [x20, #48]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x9, [x20, #56]
	cmp	x9, #1
	b.ge	LBB0_11
LBB0_10:
	ldp	x9, x8, [x20, #32]
LBB0_11:
	stp	x9, x8, [x19, #56]
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	w0, [x20, #24]
	mov	w1, #1
	mov	w2, #100
	bl	_av_clip
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_QSV,8,3             ; @AV_PIX_FMT_QSV
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.comm	_MFX_CHROMAFORMAT_YUV420,4,2    ; @MFX_CHROMAFORMAT_YUV420
	.no_dead_strip	_init_video_param_jpeg
.subsections_via_symbols
