	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpia2_match_video_size         ## -- Begin function cpia2_match_video_size
	.p2align	4, 0x90
_cpia2_match_video_size:                ## @cpia2_match_video_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_STV_IMAGE_VGA_COLS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_4
## %bb.1:
	movq	_STV_IMAGE_VGA_ROWS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_4
## %bb.2:
	movq	_VIDEOSIZE_VGA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_STV_IMAGE_CIF_COLS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_7
## %bb.5:
	movq	_STV_IMAGE_CIF_ROWS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_7
## %bb.6:
	movq	_VIDEOSIZE_CIF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_STV_IMAGE_QVGA_COLS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_10
## %bb.8:
	movq	_STV_IMAGE_QVGA_ROWS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_10
## %bb.9:
	movq	_VIDEOSIZE_QVGA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	cmpl	$288, %edi                      ## imm = 0x120
	jl	LBB0_13
## %bb.11:
	cmpl	$216, %esi
	jl	LBB0_13
## %bb.12:
	movq	_VIDEOSIZE_288_216@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	cmpl	$256, %edi                      ## imm = 0x100
	jl	LBB0_16
## %bb.14:
	cmpl	$192, %esi
	jl	LBB0_16
## %bb.15:
	movq	_VIDEOSIZE_256_192@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	cmpl	$224, %edi
	jl	LBB0_19
## %bb.17:
	cmpl	$168, %esi
	jl	LBB0_19
## %bb.18:
	movq	_VIDEOSIZE_224_168@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	cmpl	$192, %edi
	jl	LBB0_22
## %bb.20:
	cmpl	$144, %esi
	jl	LBB0_22
## %bb.21:
	movq	_VIDEOSIZE_192_144@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_22:
	movq	_STV_IMAGE_QCIF_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_STV_IMAGE_QCIF_ROWS@GOTPCREL(%rip), %rdx
	movl	$-1, %r8d
	movl	$-1, %eax
	cmpl	%esi, (%rdx)
	jg	LBB0_24
## %bb.23:
	movq	_VIDEOSIZE_QCIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	cmpl	%edi, %ecx
	cmovgl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV_IMAGE_VGA_COLS,4,2         ## @STV_IMAGE_VGA_COLS
	.comm	_STV_IMAGE_VGA_ROWS,4,2         ## @STV_IMAGE_VGA_ROWS
	.comm	_VIDEOSIZE_VGA,4,2              ## @VIDEOSIZE_VGA
	.comm	_STV_IMAGE_CIF_COLS,4,2         ## @STV_IMAGE_CIF_COLS
	.comm	_STV_IMAGE_CIF_ROWS,4,2         ## @STV_IMAGE_CIF_ROWS
	.comm	_VIDEOSIZE_CIF,4,2              ## @VIDEOSIZE_CIF
	.comm	_STV_IMAGE_QVGA_COLS,4,2        ## @STV_IMAGE_QVGA_COLS
	.comm	_STV_IMAGE_QVGA_ROWS,4,2        ## @STV_IMAGE_QVGA_ROWS
	.comm	_VIDEOSIZE_QVGA,4,2             ## @VIDEOSIZE_QVGA
	.comm	_VIDEOSIZE_288_216,4,2          ## @VIDEOSIZE_288_216
	.comm	_VIDEOSIZE_256_192,4,2          ## @VIDEOSIZE_256_192
	.comm	_VIDEOSIZE_224_168,4,2          ## @VIDEOSIZE_224_168
	.comm	_VIDEOSIZE_192_144,4,2          ## @VIDEOSIZE_192_144
	.comm	_STV_IMAGE_QCIF_COLS,4,2        ## @STV_IMAGE_QCIF_COLS
	.comm	_STV_IMAGE_QCIF_ROWS,4,2        ## @STV_IMAGE_QCIF_ROWS
	.comm	_VIDEOSIZE_QCIF,4,2             ## @VIDEOSIZE_QCIF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpia2_match_video_size         ; -- Begin function cpia2_match_video_size
	.p2align	2
_cpia2_match_video_size:                ; @cpia2_match_video_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _STV_IMAGE_VGA_COLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV_IMAGE_VGA_COLS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _STV_IMAGE_VGA_ROWS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STV_IMAGE_VGA_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w1, #0, le
	b.le	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _STV_IMAGE_CIF_COLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STV_IMAGE_CIF_COLS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _STV_IMAGE_CIF_ROWS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STV_IMAGE_CIF_ROWS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w1, #0, le
	b.le	LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _STV_IMAGE_QVGA_COLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STV_IMAGE_QVGA_COLS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _STV_IMAGE_QVGA_ROWS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STV_IMAGE_QVGA_ROWS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w1, #0, le
	b.le	LBB0_8
; %bb.3:
	cmp	w0, #288
	b.lt	LBB0_9
; %bb.4:
	cmp	w1, #216
	b.lt	LBB0_9
; %bb.5:
Lloh18:
	adrp	x8, _VIDEOSIZE_288_216@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIDEOSIZE_288_216@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh21:
	adrp	x8, _VIDEOSIZE_VGA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIDEOSIZE_VGA@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh24:
	adrp	x8, _VIDEOSIZE_CIF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIDEOSIZE_CIF@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh27:
	adrp	x8, _VIDEOSIZE_QVGA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIDEOSIZE_QVGA@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ret
LBB0_9:
	cmp	w0, #256
	b.lt	LBB0_12
; %bb.10:
	cmp	w1, #192
	b.lt	LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, _VIDEOSIZE_256_192@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VIDEOSIZE_256_192@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ret
LBB0_12:
	cmp	w0, #224
	b.lt	LBB0_15
; %bb.13:
	cmp	w1, #168
	b.lt	LBB0_15
; %bb.14:
Lloh33:
	adrp	x8, _VIDEOSIZE_224_168@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VIDEOSIZE_224_168@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ret
LBB0_15:
	cmp	w0, #192
	b.lt	LBB0_18
; %bb.16:
	cmp	w1, #144
	b.lt	LBB0_18
; %bb.17:
Lloh36:
	adrp	x8, _VIDEOSIZE_192_144@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VIDEOSIZE_192_144@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ret
LBB0_18:
Lloh39:
	adrp	x8, _STV_IMAGE_QCIF_COLS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _STV_IMAGE_QCIF_COLS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _STV_IMAGE_QCIF_ROWS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _STV_IMAGE_QCIF_ROWS@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w9, w1
	ccmp	w8, w0, #0, le
Lloh45:
	adrp	x8, _VIDEOSIZE_QCIF@GOTPAGE
Lloh46:
	ldr	x8, [x8, _VIDEOSIZE_QCIF@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	csinv	w0, w8, wzr, le
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_STV_IMAGE_VGA_COLS,4,2         ; @STV_IMAGE_VGA_COLS
	.comm	_STV_IMAGE_VGA_ROWS,4,2         ; @STV_IMAGE_VGA_ROWS
	.comm	_VIDEOSIZE_VGA,4,2              ; @VIDEOSIZE_VGA
	.comm	_STV_IMAGE_CIF_COLS,4,2         ; @STV_IMAGE_CIF_COLS
	.comm	_STV_IMAGE_CIF_ROWS,4,2         ; @STV_IMAGE_CIF_ROWS
	.comm	_VIDEOSIZE_CIF,4,2              ; @VIDEOSIZE_CIF
	.comm	_STV_IMAGE_QVGA_COLS,4,2        ; @STV_IMAGE_QVGA_COLS
	.comm	_STV_IMAGE_QVGA_ROWS,4,2        ; @STV_IMAGE_QVGA_ROWS
	.comm	_VIDEOSIZE_QVGA,4,2             ; @VIDEOSIZE_QVGA
	.comm	_VIDEOSIZE_288_216,4,2          ; @VIDEOSIZE_288_216
	.comm	_VIDEOSIZE_256_192,4,2          ; @VIDEOSIZE_256_192
	.comm	_VIDEOSIZE_224_168,4,2          ; @VIDEOSIZE_224_168
	.comm	_VIDEOSIZE_192_144,4,2          ; @VIDEOSIZE_192_144
	.comm	_STV_IMAGE_QCIF_COLS,4,2        ; @STV_IMAGE_QCIF_COLS
	.comm	_STV_IMAGE_QCIF_ROWS,4,2        ; @STV_IMAGE_QCIF_ROWS
	.comm	_VIDEOSIZE_QCIF,4,2             ; @VIDEOSIZE_QCIF
.subsections_via_symbols
