	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ## @vidioc_try_fmt_vid_cap
	.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, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_USBVISION_SUPPORTED_PALETTES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	movq	_usbvision_v4l2_format@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdi), %rsi
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$16, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	cmpl	%eax, %ecx
	je	LBB0_6
LBB0_7:
	movl	8(%rbx), %edi
	movq	_MIN_FRAME_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_FRAME_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RESTRICT_TO_RANGE
	movl	12(%rbx), %edi
	movq	_MIN_FRAME_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_FRAME_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RESTRICT_TO_RANGE
	movl	8(%r14), %eax
	imull	8(%rbx), %eax
	movl	%eax, 16(%rbx)
	imull	12(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	_V4L2_COLORSPACE_SMPTE170M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movups	(%rdi), %xmm0
	movups	%xmm0, (%r14)
	movl	(%rdx), %eax
	cmpl	%eax, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBVISION_SUPPORTED_PALETTES,4,2 ## @USBVISION_SUPPORTED_PALETTES
	.comm	_usbvision_v4l2_format,8,3      ## @usbvision_v4l2_format
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIN_FRAME_WIDTH,4,2            ## @MIN_FRAME_WIDTH
	.comm	_MAX_FRAME_WIDTH,4,2            ## @MAX_FRAME_WIDTH
	.comm	_MIN_FRAME_HEIGHT,4,2           ## @MIN_FRAME_HEIGHT
	.comm	_MAX_FRAME_HEIGHT,4,2           ## @MAX_FRAME_HEIGHT
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ## @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.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
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x10, _USBVISION_SUPPORTED_PALETTES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _USBVISION_SUPPORTED_PALETTES@GOTPAGEOFF]
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x11, [x19]
Lloh2:
	adrp	x12, _usbvision_v4l2_format@GOTPAGE
Lloh3:
	ldr	x12, [x12, _usbvision_v4l2_format@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cmp	x11, x13
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x12, x12, #16
	cmp	x8, x9
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	mov	w9, #0
	cmp	w9, w8
	b.eq	LBB0_7
LBB0_5:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _MIN_FRAME_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIN_FRAME_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MAX_FRAME_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_FRAME_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_RESTRICT_TO_RANGE
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x8, _MIN_FRAME_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIN_FRAME_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _MAX_FRAME_HEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_FRAME_HEIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_RESTRICT_TO_RANGE
	mov	w0, #0
	ldr	w8, [x20, #8]
	ldp	w9, w10, [x19, #8]
	mul	w8, w8, w9
	mul	w9, w10, w8
	stp	w8, w9, [x19, #16]
Lloh17:
	adrp	x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_COLORSPACE_SMPTE170M@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	b	LBB0_8
LBB0_6:
	ldr	q0, [x12]
	str	q0, [x20]
	ldr	w8, [x10]
	cmp	w9, w8
	b.ne	LBB0_5
LBB0_7:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_USBVISION_SUPPORTED_PALETTES,4,2 ; @USBVISION_SUPPORTED_PALETTES
	.comm	_usbvision_v4l2_format,8,3      ; @usbvision_v4l2_format
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIN_FRAME_WIDTH,4,2            ; @MIN_FRAME_WIDTH
	.comm	_MAX_FRAME_WIDTH,4,2            ; @MAX_FRAME_WIDTH
	.comm	_MIN_FRAME_HEIGHT,4,2           ; @MIN_FRAME_HEIGHT
	.comm	_MAX_FRAME_HEIGHT,4,2           ; @MAX_FRAME_HEIGHT
	.comm	_V4L2_COLORSPACE_SMPTE170M,4,2  ; @V4L2_COLORSPACE_SMPTE170M
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
