	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_get_framesize_compressed
_v4l2_get_framesize_compressed:         ## @v4l2_get_framesize_compressed
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_ctx_to_m2mctx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rax), %edi
	callq	_av_codec_is_decoder
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	imull	%r14d, %ebx
	leal	(%rbx,%rbx,2), %ecx
	leal	(%rbx,%rbx,2), %eax
	addl	$3, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	subl	$-128, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%r14d, %edi
	movl	$32, %esi
	callq	_FFALIGN
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_FFALIGN
                                        ## kill: def $eax killed $eax def $rax
	imull	%r14d, %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %edi
	addl	$3, %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$2, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FFALIGN                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_v4l2_get_framesize_compressed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_get_framesize_compressed
_v4l2_get_framesize_compressed:         ; @v4l2_get_framesize_compressed
	.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	x20, x2
	mov	x19, x1
	bl	_ctx_to_m2mctx
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8]
	bl	_av_codec_is_decoder
	cbz	x0, LBB0_3
; %bb.2:
	mul	w8, w19, w20
	add	w8, w8, w8, lsl #1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	w0, w8, #128
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	mov	w1, #32
	bl	_FFALIGN
	mov	x20, x0
	mov	x0, x19
	mov	w1, #32
	bl	_FFALIGN
	mul	w8, w20, w0
	add	w8, w8, w8, lsl #1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	mov	w1, #4096
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FFALIGN
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_v4l2_get_framesize_compressed
.subsections_via_symbols
