	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_enum_framesizes
_coda_enum_framesizes:                  ## @coda_enum_framesizes
	.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	%rdx, %r14
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_CODA_INST_ENCODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	cmpq	$0, 40(%r14)
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %rdi
	callq	_coda_format_normalize_yuv
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.6:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_q_data
	movl	8(%rbx), %edi
	movq	(%r14), %rsi
	movq	(%rax), %rdx
	jmp	LBB0_8
LBB0_7:
	movl	8(%rbx), %edi
	movq	(%r14), %rdx
LBB0_8:
	callq	_coda_find_codec
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	_V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movq	_MIN_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 24(%r14)
	movl	$1, 8(%r14)
	movq	_MIN_H@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r14)
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	$1, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CODA_INST_ENCODER,8,3          ## @CODA_INST_ENCODER
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FRMSIZE_TYPE_CONTINUOUS,4,2 ## @V4L2_FRMSIZE_TYPE_CONTINUOUS
	.comm	_MIN_W,4,2                      ## @MIN_W
	.comm	_MIN_H,4,2                      ## @MIN_H
	.no_dead_strip	_coda_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_enum_framesizes
_coda_enum_framesizes:                  ; @coda_enum_framesizes
	.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, x2
	mov	x0, x1
	bl	_fh_to_ctx
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CODA_INST_ENCODER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CODA_INST_ENCODER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_coda_format_normalize_yuv
Lloh7:
	adrp	x8, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	cmp	x0, x1
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_q_data
	ldr	w8, [x20, #8]
	ldr	x1, [x19]
	ldr	x2, [x0]
	mov	x0, x8
	b	LBB0_9
LBB0_8:
	ldr	w0, [x20, #8]
	ldr	x2, [x19]
LBB0_9:
	bl	_coda_find_codec
	mov	x8, x0
	cbz	x0, LBB0_2
; %bb.10:
	mov	w0, #0
Lloh13:
	adrp	x9, _V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_FRMSIZE_TYPE_CONTINUOUS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x19, #32]
Lloh16:
	adrp	x9, _MIN_W@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MIN_W@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _MIN_H@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MIN_H@GOTPAGEOFF]
	ldp	w8, w11, [x8]
	stp	w11, w9, [x19, #24]
Lloh21:
	ldr	w9, [x10]
	stp	w8, w9, [x19, #16]
	movi.2s	v0, #1
	str	d0, [x19, #8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CODA_INST_ENCODER,8,3          ; @CODA_INST_ENCODER
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FRMSIZE_TYPE_CONTINUOUS,4,2 ; @V4L2_FRMSIZE_TYPE_CONTINUOUS
	.comm	_MIN_W,4,2                      ; @MIN_W
	.comm	_MIN_H,4,2                      ; @MIN_H
	.no_dead_strip	_coda_enum_framesizes
.subsections_via_symbols
