	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_init_hvsample         ## -- Begin function ff_mjpeg_init_hvsample
	.p2align	4, 0x90
_ff_mjpeg_init_hvsample:                ## @ff_mjpeg_init_hvsample
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_AV_CODEC_ID_LJPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	movq	_AV_PIX_FMT_BGR0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_5:
	movq	_AV_PIX_FMT_YUV444P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_AV_PIX_FMT_YUVJ444P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:
	movl	$2, (%r15)
	movb	-28(%rbp), %cl
	movl	$2, %eax
	shrl	%cl, %eax
	movl	$2, %edx
	movl	%eax, 4(%r15)
	movl	%eax, 8(%r15)
	movl	$2, (%r14)
	movb	-32(%rbp), %cl
	shrl	%cl, %edx
	movl	%edx, 4(%r14)
	movl	%edx, 8(%r14)
	jmp	LBB0_9
LBB0_7:
	movl	$2, 8(%r15)
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, (%r15)
	movl	$1, 8(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	jmp	LBB0_9
LBB0_4:
	movl	$1, 12(%r14)
	movl	$1, 12(%r15)
	movl	$1, 8(%r14)
	movl	$1, 8(%r15)
	movl	$1, 4(%r14)
	movl	$1, 4(%r15)
	movl	$1, (%r14)
	movl	$1, (%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_LJPEG,8,3          ## @AV_CODEC_ID_LJPEG
	.comm	_AV_PIX_FMT_BGR0,8,3            ## @AV_PIX_FMT_BGR0
	.comm	_AV_PIX_FMT_BGRA,8,3            ## @AV_PIX_FMT_BGRA
	.comm	_AV_PIX_FMT_BGR24,8,3           ## @AV_PIX_FMT_BGR24
	.comm	_AV_PIX_FMT_YUV444P,8,3         ## @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_YUVJ444P,8,3        ## @AV_PIX_FMT_YUVJ444P
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_init_hvsample         ; -- Begin function ff_mjpeg_init_hvsample
	.p2align	2
_ff_mjpeg_init_hvsample:                ; @ff_mjpeg_init_hvsample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldp	x8, x9, [x21]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _AV_CODEC_ID_LJPEG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CODEC_ID_LJPEG@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _AV_PIX_FMT_BGR0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PIX_FMT_BGR0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_PIX_FMT_BGRA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_PIX_FMT_BGRA@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #12]
	str	w8, [x20, #12]
	str	w8, [x19, #8]
	str	w8, [x20, #8]
	str	w8, [x19, #4]
	str	w8, [x20, #4]
	str	w8, [x19]
	str	w8, [x20]
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x9, _AV_PIX_FMT_YUV444P@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_PIX_FMT_YUV444P@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _AV_PIX_FMT_YUVJ444P@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_PIX_FMT_YUVJ444P@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #2
	str	w8, [x20, #8]
	movi.2s	v0, #2
	str	d0, [x20]
	mov	w8, #1
	str	w8, [x19, #8]
	movi.2s	v0, #1
	str	d0, [x19]
	b	LBB0_6
LBB0_5:
	mov	w8, #2
	ldr	w9, [sp, #8]
	lsr	w9, w8, w9
	stp	w8, w9, [x20]
	str	w9, [x20, #8]
	ldr	w9, [sp, #12]
	lsr	w9, w8, w9
	stp	w8, w9, [x19]
	str	w9, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_LJPEG,8,3          ; @AV_CODEC_ID_LJPEG
	.comm	_AV_PIX_FMT_BGR0,8,3            ; @AV_PIX_FMT_BGR0
	.comm	_AV_PIX_FMT_BGRA,8,3            ; @AV_PIX_FMT_BGRA
	.comm	_AV_PIX_FMT_BGR24,8,3           ; @AV_PIX_FMT_BGR24
	.comm	_AV_PIX_FMT_YUV444P,8,3         ; @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_YUVJ444P,8,3        ; @AV_PIX_FMT_YUVJ444P
.subsections_via_symbols
