	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_vout_try_format
_omap_vout_try_format:                  ## @omap_vout_try_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_VID_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VID_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movq	_VID_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VID_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp
	movl	%eax, 4(%rbx)
	movq	_NUM_OUTPUT_FORMATS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_omap_formats@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdx,%rsi,8), %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_3
## %bb.5:
	movl	%ecx, %esi
	jmp	LBB0_6
LBB0_1:
	movq	_omap_formats@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
LBB0_6:
	xorl	%edi, %edi
	cmpl	%ecx, %esi
	cmovnel	%esi, %edi
	movq	(%rdx,%rdi,8), %rcx
	movq	%rcx, 8(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 32(%rbx)
	leaq	-130(%rcx), %rdx
	cmpq	$4, %rdx
	ja	LBB0_7
## %bb.8:
	leaq	l_switch.table.omap_vout_try_format(%rip), %rdx
	movq	-1040(%rdx,%rcx,8), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_YUYV_BPP@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 24(%rbx)
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	movl	%eax, 16(%rbx)
	imull	(%rbx), %eax
	movl	%eax, 20(%rbx)
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VID_MIN_HEIGHT,8,3             ## @VID_MIN_HEIGHT
	.comm	_VID_MAX_HEIGHT,8,3             ## @VID_MAX_HEIGHT
	.comm	_VID_MIN_WIDTH,8,3              ## @VID_MIN_WIDTH
	.comm	_VID_MAX_WIDTH,8,3              ## @VID_MAX_WIDTH
	.comm	_NUM_OUTPUT_FORMATS,4,2         ## @NUM_OUTPUT_FORMATS
	.comm	_omap_formats,8,3               ## @omap_formats
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,8,3       ## @V4L2_COLORSPACE_SRGB
	.comm	_YUYV_BPP,4,2                   ## @YUYV_BPP
	.comm	_RGB565_BPP,4,2                 ## @RGB565_BPP
	.comm	_RGB24_BPP,4,2                  ## @RGB24_BPP
	.comm	_RGB32_BPP,4,2                  ## @RGB32_BPP
	.no_dead_strip	_omap_vout_try_format
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.omap_vout_try_format
l_switch.table.omap_vout_try_format:
	.quad	_RGB565_BPP
	.quad	_RGB565_BPP
	.quad	_RGB32_BPP
	.quad	_RGB24_BPP
	.quad	_RGB32_BPP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_vout_try_format
_omap_vout_try_format:                  ; @omap_vout_try_format
	.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, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _VID_MIN_HEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VID_MIN_HEIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VID_MAX_HEIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VID_MAX_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _VID_MIN_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VID_MIN_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _VID_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VID_MAX_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [x19, #4]
Lloh12:
	adrp	x8, _NUM_OUTPUT_FORMATS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NUM_OUTPUT_FORMATS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x11, [x19, #8]
Lloh15:
	adrp	x9, _omap_formats@GOTPAGE
Lloh16:
	ldr	x9, [x9, _omap_formats@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	cmp	x11, x12
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x10, x8
	b	LBB0_6
LBB0_5:
	mov	w10, #0
Lloh18:
	adrp	x9, _omap_formats@GOTPAGE
Lloh19:
	ldr	x9, [x9, _omap_formats@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
LBB0_6:
	cmp	w10, w8
	csel	w8, wzr, w10, eq
	ldr	x8, [x9, w8, uxtw #3]
	str	x8, [x19, #8]
Lloh21:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19, #32]
	sub	x8, x8, #130
	cmp	x8, #4
	b.hi	LBB0_8
; %bb.7:
Lloh24:
	adrp	x9, l_switch.table.omap_vout_try_format@PAGE
Lloh25:
	add	x9, x9, l_switch.table.omap_vout_try_format@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	b	LBB0_9
LBB0_8:
Lloh26:
	adrp	x8, _YUYV_BPP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _YUYV_BPP@GOTPAGEOFF]
LBB0_9:
Lloh28:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	str	x9, [x19, #24]
	ldr	w8, [x8]
	mul	w9, w8, w0
	ldr	w10, [x19]
	mul	w10, w10, w9
	stp	w9, w10, [x19, #16]
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_VID_MIN_HEIGHT,8,3             ; @VID_MIN_HEIGHT
	.comm	_VID_MAX_HEIGHT,8,3             ; @VID_MAX_HEIGHT
	.comm	_VID_MIN_WIDTH,8,3              ; @VID_MIN_WIDTH
	.comm	_VID_MAX_WIDTH,8,3              ; @VID_MAX_WIDTH
	.comm	_NUM_OUTPUT_FORMATS,4,2         ; @NUM_OUTPUT_FORMATS
	.comm	_omap_formats,8,3               ; @omap_formats
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,8,3       ; @V4L2_COLORSPACE_SRGB
	.comm	_YUYV_BPP,4,2                   ; @YUYV_BPP
	.comm	_RGB565_BPP,4,2                 ; @RGB565_BPP
	.comm	_RGB24_BPP,4,2                  ; @RGB24_BPP
	.comm	_RGB32_BPP,4,2                  ; @RGB32_BPP
	.no_dead_strip	_omap_vout_try_format
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.omap_vout_try_format
l_switch.table.omap_vout_try_format:
	.quad	_RGB565_BPP
	.quad	_RGB565_BPP
	.quad	_RGB32_BPP
	.quad	_RGB24_BPP
	.quad	_RGB32_BPP

.subsections_via_symbols
