	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_mode
_valid_mode:                            ## @valid_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %eax
	cmpq	$16, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_VIDEO_PALETTE_YUV422@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_2
LBB0_17:
	popq	%rbp
	retq
LBB0_2:
	cmpq	$16, %rsi
	jne	LBB0_4
## %bb.3:
	movq	_VIDEO_PALETTE_YUYV@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_4:
	movq	_colorspace_conv@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.6:
	cmpq	$8, %rsi
	jne	LBB0_8
## %bb.7:
	movq	_VIDEO_PALETTE_GREY@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_8:
	cmpq	$16, %rsi
	jne	LBB0_10
## %bb.9:
	movq	_VIDEO_PALETTE_RGB555@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_10:
	cmpq	$16, %rsi
	jne	LBB0_12
## %bb.11:
	movq	_VIDEO_PALETTE_RGB565@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_12:
	cmpq	$24, %rsi
	jne	LBB0_14
## %bb.13:
	movq	_VIDEO_PALETTE_RGB24@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_14:
	cmpq	$32, %rsi
	jne	LBB0_16
## %bb.15:
	movq	_VIDEO_PALETTE_RGB32@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_17
LBB0_16:
	movq	_VIDEO_PALETTE_UYVY@GOTPCREL(%rip), %rax
	xorq	(%rax), %rdi
	xorq	$16, %rsi
	xorl	%eax, %eax
	orq	%rsi, %rdi
	sete	%al
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_PALETTE_YUV422,8,3       ## @VIDEO_PALETTE_YUV422
	.comm	_VIDEO_PALETTE_YUYV,8,3         ## @VIDEO_PALETTE_YUYV
	.comm	_colorspace_conv,8,3            ## @colorspace_conv
	.comm	_VIDEO_PALETTE_GREY,8,3         ## @VIDEO_PALETTE_GREY
	.comm	_VIDEO_PALETTE_RGB555,8,3       ## @VIDEO_PALETTE_RGB555
	.comm	_VIDEO_PALETTE_RGB565,8,3       ## @VIDEO_PALETTE_RGB565
	.comm	_VIDEO_PALETTE_RGB24,8,3        ## @VIDEO_PALETTE_RGB24
	.comm	_VIDEO_PALETTE_RGB32,8,3        ## @VIDEO_PALETTE_RGB32
	.comm	_VIDEO_PALETTE_UYVY,8,3         ## @VIDEO_PALETTE_UYVY
	.no_dead_strip	_valid_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_mode
_valid_mode:                            ; @valid_mode
	.cfi_startproc
; %bb.0:
	cmp	x1, #16
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _VIDEO_PALETTE_YUV422@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_PALETTE_YUV422@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	ret
LBB0_3:
	cmp	x1, #16
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _VIDEO_PALETTE_YUYV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_PALETTE_YUYV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	ret
LBB0_6:
Lloh6:
	adrp	x8, _colorspace_conv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _colorspace_conv@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	cmp	x1, #8
	b.ne	LBB0_11
; %bb.8:
Lloh9:
	adrp	x8, _VIDEO_PALETTE_GREY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIDEO_PALETTE_GREY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #1
	ret
LBB0_10:
	mov	w0, #0
	ret
LBB0_11:
	cmp	x1, #16
	b.ne	LBB0_14
; %bb.12:
Lloh12:
	adrp	x8, _VIDEO_PALETTE_RGB555@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIDEO_PALETTE_RGB555@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #1
	ret
LBB0_14:
	cmp	x1, #16
	b.ne	LBB0_17
; %bb.15:
Lloh15:
	adrp	x8, _VIDEO_PALETTE_RGB565@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIDEO_PALETTE_RGB565@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #1
	ret
LBB0_17:
	cmp	x1, #24
	b.ne	LBB0_20
; %bb.18:
Lloh18:
	adrp	x8, _VIDEO_PALETTE_RGB24@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIDEO_PALETTE_RGB24@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #1
	ret
LBB0_20:
	cmp	x1, #32
	b.ne	LBB0_23
; %bb.21:
Lloh21:
	adrp	x8, _VIDEO_PALETTE_RGB32@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIDEO_PALETTE_RGB32@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_23
; %bb.22:
	mov	w0, #1
	ret
LBB0_23:
	cmp	x1, #16
Lloh24:
	adrp	x8, _VIDEO_PALETTE_UYVY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIDEO_PALETTE_UYVY@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ccmp	x8, x0, #0, eq
	cset	w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_PALETTE_YUV422,8,3       ; @VIDEO_PALETTE_YUV422
	.comm	_VIDEO_PALETTE_YUYV,8,3         ; @VIDEO_PALETTE_YUYV
	.comm	_colorspace_conv,8,3            ; @colorspace_conv
	.comm	_VIDEO_PALETTE_GREY,8,3         ; @VIDEO_PALETTE_GREY
	.comm	_VIDEO_PALETTE_RGB555,8,3       ; @VIDEO_PALETTE_RGB555
	.comm	_VIDEO_PALETTE_RGB565,8,3       ; @VIDEO_PALETTE_RGB565
	.comm	_VIDEO_PALETTE_RGB24,8,3        ; @VIDEO_PALETTE_RGB24
	.comm	_VIDEO_PALETTE_RGB32,8,3        ; @VIDEO_PALETTE_RGB32
	.comm	_VIDEO_PALETTE_UYVY,8,3         ; @VIDEO_PALETTE_UYVY
	.no_dead_strip	_valid_mode
.subsections_via_symbols
