	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_try_format
_rvin_try_format:                       ## @rvin_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_vin_to_source
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	%r14, %rdi
	callq	_v4l2_subdev_alloc_pad_config
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-56(%rbp), %rbx
	movl	16(%r13), %esi
	movq	%r12, %rdi
	callq	_rvin_format_from_pixel
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_RVIN_DEFAULT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
LBB0_4:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_v4l2_fill_mbus_format
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	movq	%rbx, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_6
## %bb.5:
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_13
LBB0_6:
	movq	%r13, %rdi
	callq	_v4l2_fill_pix_format
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsi)
	movq	8(%r13), %rax
	movq	%rax, 8(%rsi)
	movl	4(%r13), %eax
	movl	%eax, (%rsi)
	movslq	(%r13), %rcx
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_9
## %bb.8:
	addl	%eax, %eax
	movl	%eax, (%rsi)
LBB0_9:
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_11
## %bb.10:
	movl	%ecx, %eax
	movl	%ecx, (%r13)
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rvin_format_align
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	8(%r13), %rax
	movq	%rax, 8(%rbx)
	movl	4(%r13), %eax
	movl	%eax, (%rbx)
LBB0_13:
	movq	%r15, %rdi
	callq	_v4l2_subdev_free_pad_config
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ## @RVIN_DEFAULT_FORMAT
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.no_dead_strip	_rvin_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_try_format
_rvin_try_format:                       ; @rvin_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_vin_to_source
	mov	x24, x0
	str	x22, [sp]
	str	wzr, [sp, #8]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	str	w8, [sp, #12]
	bl	_v4l2_subdev_alloc_pad_config
	cbz	x0, LBB0_13
; %bb.1:
	mov	x22, x0
	mov	x8, sp
	add	x25, x8, #8
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_rvin_format_from_pixel
	cbnz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _RVIN_DEFAULT_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RVIN_DEFAULT_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_3:
	ldr	w2, [x21]
	mov	x0, x25
	mov	x1, x20
	bl	_v4l2_fill_mbus_format
	ldr	x26, [x20, #8]
	ldp	w28, w27, [x20]
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _set_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x24
	mov	x3, x22
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
LBB0_5:
	mov	x0, x20
	mov	x1, x25
	bl	_v4l2_fill_pix_format
	cbz	x23, LBB0_8
; %bb.6:
	stp	xzr, xzr, [x23, #16]
	ldr	x8, [x20, #8]
	str	x8, [x23, #8]
	ldr	w8, [x20, #4]
	str	w8, [x23]
	ldrsw	x9, [x20]
Lloh12:
	adrp	x10, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.7:
	lsl	w8, w8, #1
	str	w8, [x23]
LBB0_8:
Lloh15:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w28, w8
	b.eq	LBB0_10
; %bb.9:
	str	w28, [x20]
LBB0_10:
	str	x26, [x20, #8]
	str	w27, [x20, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_rvin_format_align
	cbz	x19, LBB0_12
; %bb.11:
	stp	xzr, xzr, [x19, #16]
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldr	w8, [x20, #4]
	str	w8, [x19]
LBB0_12:
	mov	x0, x22
	bl	_v4l2_subdev_free_pad_config
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ; @RVIN_DEFAULT_FORMAT
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.no_dead_strip	_rvin_try_format
.subsections_via_symbols
