	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt
_vidioc_try_fmt:                        ## @vidioc_try_fmt
	.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	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_rga_fmt_find
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 20(%rbx)
LBB0_2:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movl	(%rbx), %ecx
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jle	LBB0_4
## %bb.3:
	movl	%edx, (%rbx)
	movl	%edx, %ecx
LBB0_4:
	movl	4(%rbx), %edx
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	jle	LBB0_6
## %bb.5:
	movl	%esi, 4(%rbx)
	movl	%esi, %edx
LBB0_6:
	movq	_MIN_WIDTH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %ecx
	jge	LBB0_8
## %bb.7:
	movl	%esi, (%rbx)
	movl	%esi, %ecx
LBB0_8:
	movq	_MIN_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	jge	LBB0_10
## %bb.9:
	movl	%esi, 4(%rbx)
	movl	%esi, %edx
LBB0_10:
	movq	(%rax), %rdi
	movq	_RGA_COLOR_FMT_YUV422SP@GOTPCREL(%rip), %r8
	movl	%ecx, %esi
	cmpq	(%r8), %rdi
	jge	LBB0_12
## %bb.11:
	movl	8(%rax), %esi
	imull	%ecx, %esi
	sarl	$3, %esi
LBB0_12:
	movl	%esi, 8(%rbx)
	imull	%edx, %ecx
	imull	8(%rax), %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_formats,8,3                    ## @formats
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.comm	_MIN_WIDTH,4,2                  ## @MIN_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ## @MIN_HEIGHT
	.comm	_RGA_COLOR_FMT_YUV422SP,8,3     ## @RGA_COLOR_FMT_YUV422SP
	.no_dead_strip	_vidioc_try_fmt
.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
_vidioc_try_fmt:                        ; @vidioc_try_fmt
	.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, x2
	bl	_rga_fmt_find
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _formats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _formats@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	w8, [x0, #12]
	str	w8, [x19, #20]
LBB0_2:
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.3:
	str	w9, [x19]
	mov	x8, x9
LBB0_4:
	ldr	w9, [x19, #4]
Lloh9:
	adrp	x10, _MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_6
; %bb.5:
	str	w10, [x19, #4]
	mov	x9, x10
LBB0_6:
Lloh12:
	adrp	x10, _MIN_WIDTH@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MIN_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ge	LBB0_8
; %bb.7:
	str	w10, [x19]
	mov	x8, x10
LBB0_8:
Lloh15:
	adrp	x10, _MIN_HEIGHT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MIN_HEIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_10
; %bb.9:
	str	w10, [x19, #4]
	mov	x9, x10
LBB0_10:
	ldr	x11, [x0]
Lloh18:
	adrp	x10, _RGA_COLOR_FMT_YUV422SP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RGA_COLOR_FMT_YUV422SP@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x10]
	mov	x10, x8
	cmp	x11, x12
	b.ge	LBB0_12
; %bb.11:
	ldr	w10, [x0, #8]
	mul	w10, w10, w8
	asr	w10, w10, #3
LBB0_12:
	str	w10, [x19, #8]
	ldr	w10, [x0, #8]
	mul	w8, w8, w9
	mul	w8, w8, w10
	asr	w8, w8, #3
	str	w8, [x19, #12]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_formats,8,3                    ; @formats
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.comm	_MIN_WIDTH,4,2                  ; @MIN_WIDTH
	.comm	_MIN_HEIGHT,4,2                 ; @MIN_HEIGHT
	.comm	_RGA_COLOR_FMT_YUV422SP,8,3     ; @RGA_COLOR_FMT_YUV422SP
	.no_dead_strip	_vidioc_try_fmt
.subsections_via_symbols
